]> git.ipfire.org Git - ipfire-3.x.git/blob - pkgs/core/perl/perl.nm
naoki: Initial checkin.
[ipfire-3.x.git] / pkgs / core / perl / perl.nm
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
25 include ../../Config
26
27 PKG_NAME = perl
28 PKG_VER = 5.10.0
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
37 PKG_DEPS += zlib
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
53 PKG_PATCHES += $(THISAPP)-page-1.patch
54 PKG_PATCHES += $(THISAPP)-security_fix-1.patch
55
56 define QUALITY_AGENT_WHITELIST_RPATH
57 /usr/lib/perl5/*/auto/DB_File/DB_File.so \
58 /usr/lib/perl5/*/auto/Time/HiRes/HiRes.so \
59 /usr/lib/perl5/*/auto/Compress/Raw/Zlib/Zlib.so
60 endef
61
62 include ../../Rules
63
64 ###############################################################################
65 # Installation Details
66 ###############################################################################
67
68 $(STAGE_PREPARE): $(OBJECTS)
69 @$(PRE_PREPARE)
70 cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
71
72 $(DO_PATCHES)
73
74 cd $(DIR_APP) && sed -i 's/command /command[ -]/' makedepend.SH
75
76 @$(POST_PREPARE)
77
78 $(STAGE_BUILD): $(STAGE_PREPARE)
79 @$(PRE_BUILD)
80
81 cd $(DIR_APP) && sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
82 -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
83 -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
84 ext/Compress/Raw/Zlib/config.in
85
86 cd $(DIR_APP) && ./configure.gnu --prefix=/usr \
87 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 \
88 -Dpager="/usr/bin/less -isR"
89
90 cd $(DIR_APP) && make #$(PARALLELISMFLAGS)
91
92 @$(POST_BUILD)