]>
Commit | Line | Data |
---|---|---|
166a6c21 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
a7c97434 | 25 | include $(PKGROOT)/Include |
166a6c21 MT |
26 | |
27 | PKG_NAME = perl | |
c220bd27 | 28 | PKG_VER = 5.12.2 |
166a6c21 MT |
29 | PKG_REL = 0 |
30 | ||
31 | PKG_MAINTAINER = | |
32 | PKG_GROUP = Development/Languages | |
33 | PKG_URL = http://www.perl.org/ | |
34 | PKG_LICENSE = GPL+ or Artistic and GPLv2+ or Artistic | |
35 | PKG_SUMMARY = Practical Extraction and Report Language. | |
36 | ||
7093f90d | 37 | PKG_BUILD_DEPS+= db-devel gcc-c++ gdbm-devel iana-etc procps zlib-devel |
166a6c21 MT |
38 | |
39 | define PKG_DESCRIPTION | |
40 | Perl is a high-level programming language with roots in C, sed, awk \ | |
41 | and shell scripting. Perl is good at handling processes and files, \ | |
42 | and is especially good at handling text. Perl's hallmarks are \ | |
43 | practicality and efficiency. While it is used to do a lot of \ | |
44 | different things, Perl's most common applications are system \ | |
45 | administration utilities and web programming. A large proportion of \ | |
46 | the CGI scripts on the web are written in Perl. You need the perl \ | |
47 | package installed on your system so that your system can handle Perl \ | |
48 | scripts. | |
49 | endef | |
50 | ||
51 | PKG_TARBALL = $(THISAPP).tar.gz | |
52 | ||
faf914ca MT |
53 | define QUALITY_AGENT_WHITELIST_RPATH |
54 | /lib | |
55 | /usr/lib | |
cdd4579c | 56 | /usr/lib/perl5/CORE |
faf914ca MT |
57 | endef |
58 | ||
17c0ee8a | 59 | define STAGE_PREPARE_CMDS |
166a6c21 | 60 | cd $(DIR_APP) && sed -i 's/command /command[ -]/' makedepend.SH |
17c0ee8a | 61 | endef |
166a6c21 | 62 | |
17c0ee8a | 63 | define STAGE_BUILD |
166a6c21 MT |
64 | cd $(DIR_APP) && sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \ |
65 | -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \ | |
66 | -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \ | |
faf914ca | 67 | cpan/Compress-Raw-Zlib/config.in |
166a6c21 | 68 | |
c857cefa MT |
69 | cd $(DIR_APP) && \ |
70 | sh ./Configure -des \ | |
71 | -Doptimize="$(CFLAGS)" \ | |
cdd4579c MT |
72 | -Dccdlflags="-Wl,--enable-new-dtags" \ |
73 | -Dversion=$(PKG_VER) \ | |
74 | -Dmyhostname=localhost \ | |
75 | -Dperladmin=root@localhost \ | |
76 | -Dcc="gcc" \ | |
77 | -Dcf_by="$(DISTRO_VENDOR)" \ | |
c857cefa | 78 | -Dprefix=/usr \ |
cdd4579c MT |
79 | -Dvendorprefix=/usr \ |
80 | -Dsiteprefix="/usr/local" \ | |
81 | -Dsitelib="/usr/local/share/perl5" \ | |
82 | -Dsitearch="/usr/local/lib/perl5" \ | |
83 | -Dprivlib="/usr/share/perl5" \ | |
84 | -Dvendorlib="/usr/share/perl5/vendor_perl" \ | |
85 | -Darchlib="/usr/lib/perl5" \ | |
86 | -Dvendorarch="/usr/lib/perl5/vendor_perl" \ | |
87 | -Darchname=$(PKG_ARCH)-linux-thread-multi \ | |
88 | -Dpager="/usr/bin/less -isr" \ | |
c857cefa MT |
89 | -Dman1dir=/usr/share/man/man1 \ |
90 | -Dman3dir=/usr/share/man/man3 \ | |
c857cefa MT |
91 | -Duseshrplib \ |
92 | -Dusethreads \ | |
93 | -Duseithreads \ | |
94 | -Duselargefiles \ | |
c857cefa MT |
95 | -Dd_semctl_semun \ |
96 | -Di_db \ | |
97 | -Ui_ndbm \ | |
98 | -Di_gdbm \ | |
99 | -Di_shadow \ | |
100 | -Di_syslog \ | |
101 | -Dman3ext=3pm \ | |
102 | -Duseperlio \ | |
103 | -Dinstallusrbinperl=n \ | |
104 | -Ubincompat5005 \ | |
105 | -Uversiononly \ | |
106 | -Dd_gethostent_r_proto \ | |
107 | -Ud_endhostent_r_proto \ | |
108 | -Ud_sethostent_r_proto \ | |
109 | -Ud_endprotoent_r_proto \ | |
110 | -Ud_setprotoent_r_proto \ | |
111 | -Ud_endservent_r_proto \ | |
cdd4579c MT |
112 | -Ud_setservent_r_proto \ |
113 | -Dscriptdir="/usr/bin" | |
166a6c21 | 114 | |
c857cefa | 115 | cd $(DIR_APP) && make $(PARALLELISMFLAGS) |
17c0ee8a | 116 | endef |
51dccdc9 SS |
117 | |
118 | define STAGE_TEST | |
119 | cd $(DIR_APP) && make test | |
120 | endef | |
cdd4579c MT |
121 | |
122 | define STAGE_INSTALL_CMDS | |
123 | # Remove precreated directories | |
124 | rm -rfv $(BUILDROOT)/usr/local | |
125 | endef |