| @@ -1,242 +1,242 @@ | | | @@ -1,242 +1,242 @@ |
1 | # $NetBSD: Makefile,v 1.193 2013/01/03 10:11:34 dholland Exp $ | | 1 | # $NetBSD: Makefile,v 1.194 2013/01/17 13:29:59 manu Exp $ |
2 | | | 2 | |
3 | .include "license.mk" | | 3 | .include "license.mk" |
4 | .include "Makefile.common" | | 4 | .include "Makefile.common" |
5 | | | 5 | |
6 | COMMENT= Practical Extraction and Report Language | | 6 | COMMENT= Practical Extraction and Report Language |
7 | PKGREVISION= 2 | | 7 | PKGREVISION= 3 |
8 | | | 8 | |
9 | CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \ | | 9 | CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \ |
10 | p5-CGI-2.66{,nb*} p5-CGI-2.75{,nb*} p5-CGI-2.75.[0-2] \ | | 10 | p5-CGI-2.66{,nb*} p5-CGI-2.75{,nb*} p5-CGI-2.75.[0-2] \ |
11 | p5-Tie-File-0.96{,nb*} \ | | 11 | p5-Tie-File-0.96{,nb*} \ |
12 | p5-Memoize-1.01{,nb*} \ | | 12 | p5-Memoize-1.01{,nb*} \ |
13 | p5-I18N-LangTags<0.35 \ | | 13 | p5-I18N-LangTags<0.35 \ |
14 | p5-Locale-Maketext-1.[0-9]*{,nb*} \ | | 14 | p5-Locale-Maketext-1.[0-9]*{,nb*} \ |
15 | p5-Locale-Maketext-Simple<0.21 \ | | 15 | p5-Locale-Maketext-Simple<0.21 \ |
16 | p5-Digest<=1.16 \ | | 16 | p5-Digest<=1.16 \ |
17 | p5-Digest-MD5<=2.39 \ | | 17 | p5-Digest-MD5<=2.39 \ |
18 | p5-Digest-SHA<2.48 | | 18 | p5-Digest-SHA<2.48 |
19 | | | 19 | |
20 | SUPERSEDES+= p5-Tie-File<0.97 | | 20 | SUPERSEDES+= p5-Tie-File<0.97 |
21 | SUPERSEDES+= p5-Memoize<1.02 | | 21 | SUPERSEDES+= p5-Memoize<1.02 |
22 | SUPERSEDES+= p5-I18N-LangTags<=0.35 | | 22 | SUPERSEDES+= p5-I18N-LangTags<=0.35 |
23 | SUPERSEDES+= p5-Locale-Maketext<=1.15 | | 23 | SUPERSEDES+= p5-Locale-Maketext<=1.15 |
24 | | | 24 | |
25 | .include "../../mk/bsd.prefs.mk" | | 25 | .include "../../mk/bsd.prefs.mk" |
26 | | | 26 | |
27 | # Determine the Perl API version from the patchlevel.h file from the | | 27 | # Determine the Perl API version from the patchlevel.h file from the |
28 | # source distribution. | | 28 | # source distribution. |
29 | # | | 29 | # |
30 | PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh} | | 30 | PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh} |
31 | PERL5_API_VERS_cmd= \ | | 31 | PERL5_API_VERS_cmd= \ |
32 | if ${TEST} -f ${WRKSRC}/patchlevel.h; then \ | | 32 | if ${TEST} -f ${WRKSRC}/patchlevel.h; then \ |
33 | ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\ | | 33 | ${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\ |
34 | /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ | | 34 | /\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \ |
35 | /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ | | 35 | /\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \ |
36 | END { printf "%s%s%s\n", R, r, s }' \ | | 36 | END { printf "%s%s%s\n", R, r, s }' \ |
37 | ${WRKSRC}/patchlevel.h; \ | | 37 | ${WRKSRC}/patchlevel.h; \ |
38 | else \ | | 38 | else \ |
39 | ${ECHO} "unknown"; \ | | 39 | ${ECHO} "unknown"; \ |
40 | fi | | 40 | fi |
41 | | | 41 | |
42 | .include "dirs.mk" | | 42 | .include "dirs.mk" |
43 | | | 43 | |
44 | .include "../../mk/compiler.mk" | | 44 | .include "../../mk/compiler.mk" |
45 | | | 45 | |
46 | HAS_CONFIGURE= yes | | 46 | HAS_CONFIGURE= yes |
47 | CONFIGURE_SCRIPT= ./Configure | | 47 | CONFIGURE_SCRIPT= ./Configure |
48 | CONFIGURE_ARGS+= -sde | | 48 | CONFIGURE_ARGS+= -sde |
49 | MAKE_ENV+= LC_ALL="C" | | 49 | MAKE_ENV+= LC_ALL="C" |
50 | | | 50 | |
51 | TEST_TARGET= test | | 51 | TEST_TARGET= test |
52 | | | 52 | |
53 | # Policy.sh generation | | 53 | # Policy.sh generation |
54 | # (see comments in files/Policy.sh) | | 54 | # (see comments in files/Policy.sh) |
55 | SUBST_CLASSES+= policysh | | 55 | SUBST_CLASSES+= policysh |
56 | SUBST_STAGE.policysh= pre-configure | | 56 | SUBST_STAGE.policysh= pre-configure |
57 | SUBST_FILES.policysh= Policy.sh | | 57 | SUBST_FILES.policysh= Policy.sh |
58 | SUBST_VARS.policysh+= MACHINE_ARCH | | 58 | SUBST_VARS.policysh+= MACHINE_ARCH |
59 | SUBST_VARS.policysh+= LOWER_OPSYS | | 59 | SUBST_VARS.policysh+= LOWER_OPSYS |
60 | SUBST_VARS.policysh+= OBJECT_FMT | | 60 | SUBST_VARS.policysh+= OBJECT_FMT |
61 | SUBST_VARS.policysh+= CC | | 61 | SUBST_VARS.policysh+= CC |
62 | SUBST_VARS.policysh+= CFLAGS | | 62 | SUBST_VARS.policysh+= CFLAGS |
63 | SUBST_VARS.policysh+= LDFLAGS | | 63 | SUBST_VARS.policysh+= LDFLAGS |
64 | SUBST_VARS.policysh+= COMPILER_RPATH_FLAG | | 64 | SUBST_VARS.policysh+= COMPILER_RPATH_FLAG |
65 | SUBST_VARS.policysh+= PERL5_PREFIX | | 65 | SUBST_VARS.policysh+= PERL5_PREFIX |
66 | SUBST_VARS.policysh+= PERL5_SITEPREFIX | | 66 | SUBST_VARS.policysh+= PERL5_SITEPREFIX |
67 | SUBST_VARS.policysh+= PERL5_VENDORPREFIX | | 67 | SUBST_VARS.policysh+= PERL5_VENDORPREFIX |
68 | SUBST_VARS.policysh+= PERL5_PERLBASE | | 68 | SUBST_VARS.policysh+= PERL5_PERLBASE |
69 | SUBST_VARS.policysh+= PERL5_SITEBASE | | 69 | SUBST_VARS.policysh+= PERL5_SITEBASE |
70 | SUBST_VARS.policysh+= PERL5_SITEBIN | | 70 | SUBST_VARS.policysh+= PERL5_SITEBIN |
71 | SUBST_VARS.policysh+= PERL5_VENDORBASE | | 71 | SUBST_VARS.policysh+= PERL5_VENDORBASE |
72 | SUBST_VARS.policysh+= PERL5_PRIVLIB | | 72 | SUBST_VARS.policysh+= PERL5_PRIVLIB |
73 | SUBST_VARS.policysh+= PERL5_SITELIB | | 73 | SUBST_VARS.policysh+= PERL5_SITELIB |
74 | SUBST_VARS.policysh+= PERL5_VENDORLIB | | 74 | SUBST_VARS.policysh+= PERL5_VENDORLIB |
75 | SUBST_VARS.policysh+= PKGMANDIR | | 75 | SUBST_VARS.policysh+= PKGMANDIR |
76 | SUBST_VARS.policysh+= LOCALBASE | | 76 | SUBST_VARS.policysh+= LOCALBASE |
77 | SUBST_VARS.policysh+= PTHREAD_LDFLAGS | | 77 | SUBST_VARS.policysh+= PTHREAD_LDFLAGS |
78 | | | 78 | |
79 | .if ${OPSYS} == "Darwin" | | 79 | .if ${OPSYS} == "Darwin" |
80 | # | | 80 | # |
81 | # The Perl build attempts to work around case-insensitivity problems on | | 81 | # The Perl build attempts to work around case-insensitivity problems on |
82 | # HFS filesystems by using GNUmakefiles, so we need to use GNU make. | | 82 | # HFS filesystems by using GNUmakefiles, so we need to use GNU make. |
83 | # | | 83 | # |
84 | USE_TOOLS+= gmake | | 84 | USE_TOOLS+= gmake |
85 | .endif | | 85 | .endif |
86 | | | 86 | |
87 | # | | 87 | # |
88 | # For the moment disable the building of a shared libperl.dylib on Darwin | | 88 | # For the moment disable the building of a shared libperl.dylib on Darwin |
89 | # => 9.0 as it breaks the build. This should just be considered a temporary | | 89 | # => 9.0 as it breaks the build. This should just be considered a temporary |
90 | # work around until the actual problem can be fixed as this worked for | | 90 | # work around until the actual problem can be fixed as this worked for |
91 | # Darwin < 9.0. | | 91 | # Darwin < 9.0. |
92 | # | | 92 | # |
93 | .if empty(MACHINE_PLATFORM:MDarwin-9.*-*) | | 93 | .if empty(MACHINE_PLATFORM:MDarwin-9.*-*) |
94 | CONFIGURE_ARGS+= -Duseshrplib | | 94 | CONFIGURE_ARGS+= -Duseshrplib |
95 | .endif | | 95 | .endif |
96 | | | 96 | |
97 | # Perl embeds the full paths to the following tools in several installed | | 97 | # Perl embeds the full paths to the following tools in several installed |
98 | # files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used. | | 98 | # files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used. |
99 | # | | 99 | # |
100 | USE_TOOLS+= hostname ln sed test | | 100 | USE_TOOLS+= hostname ln sed test |
101 | SUBST_VARS.policysh+= TOOLS_HOSTNAME_CMD | | 101 | SUBST_VARS.policysh+= TOOLS_HOSTNAME_CMD |
102 | SUBST_VARS.policysh+= TOOLS_LN | | 102 | SUBST_VARS.policysh+= TOOLS_LN |
103 | TOOLS_ALIASES.sed+= ${TOOLS_SED:T} | | 103 | TOOLS_ALIASES.sed+= ${TOOLS_SED:T} |
104 | SUBST_VARS.policysh+= TOOLS_SED | | 104 | SUBST_VARS.policysh+= TOOLS_SED |
105 | SUBST_VARS.policysh+= TOOLS_SH | | 105 | SUBST_VARS.policysh+= TOOLS_SH |
106 | SUBST_VARS.policysh+= TOOLS_TEST | | 106 | SUBST_VARS.policysh+= TOOLS_TEST |
107 | SUBST_VARS.policysh+= FALSE | | 107 | SUBST_VARS.policysh+= FALSE |
108 | | | 108 | |
109 | # Nail down the needed libraries for each platform here to avoid hidden | | 109 | # Nail down the needed libraries for each platform here to avoid hidden |
110 | # dependencies. If this isn't defined, then use the perl defaults for the | | 110 | # dependencies. If this isn't defined, then use the perl defaults for the |
111 | # particular operating system. | | 111 | # particular operating system. |
112 | # | | 112 | # |
113 | LIBSWANTED.Darwin= m c | | 113 | LIBSWANTED.Darwin= m c |
114 | LIBSWANTED.DragonFly= m crypt | | 114 | LIBSWANTED.DragonFly= m crypt |
115 | LIBSWANTED.FreeBSD= m crypt | | 115 | LIBSWANTED.FreeBSD= m crypt |
116 | LIBSWANTED.HPUX= cl pthread $$libswanted # see Perl's README.hpux | | 116 | LIBSWANTED.HPUX= cl pthread $$libswanted # see Perl's README.hpux |
117 | LIBSWANTED.IRIX= m crypt | | 117 | LIBSWANTED.IRIX= m crypt |
118 | LIBSWANTED.Interix= m dl | | 118 | LIBSWANTED.Interix= m dl |
119 | LIBSWANTED.Linux= m crypt dl nsl | | 119 | LIBSWANTED.Linux= m crypt dl nsl |
120 | LIBSWANTED.MirBSD= m crypt | | 120 | LIBSWANTED.MirBSD= m crypt |
121 | LIBSWANTED.NetBSD= m crypt | | 121 | LIBSWANTED.NetBSD= m crypt |
122 | LIBSWANTED.OpenBSD= m crypt | | 122 | LIBSWANTED.OpenBSD= m crypt |
123 | LIBSWANTED.SunOS= m crypt dl socket nsl | | 123 | LIBSWANTED.SunOS= m crypt dl socket nsl |
124 | LIBSWANTED.AIX= m crypt dl socket nsl bind c | | 124 | LIBSWANTED.AIX= m crypt dl socket nsl bind c |
125 | LIBSWANTED= ${LIBSWANTED.${OPSYS}} | | 125 | LIBSWANTED= ${LIBSWANTED.${OPSYS}} |
126 | SUBST_VARS.policysh+= LIBSWANTED | | 126 | SUBST_VARS.policysh+= LIBSWANTED |
127 | | | 127 | |
128 | # Nail down the directories in which the system libraries may be found. | | 128 | # Nail down the directories in which the system libraries may be found. |
129 | # If this isn't defined, then use the perl defaults for the particular | | 129 | # If this isn't defined, then use the perl defaults for the particular |
130 | # operating system. | | 130 | # operating system. |
131 | # | | 131 | # |
132 | SYSLIBPATH.Darwin= /usr/lib | | 132 | SYSLIBPATH.Darwin= /usr/lib |
133 | SYSLIBPATH.DragonFly= /usr/lib | | 133 | SYSLIBPATH.DragonFly= /usr/lib |
134 | SYSLIBPATH.FreeBSD= /usr/lib | | 134 | SYSLIBPATH.FreeBSD= /usr/lib |
135 | SYSLIBPATH.Interix= /usr/lib | | 135 | SYSLIBPATH.Interix= /usr/lib |
136 | SYSLIBPATH.MirBSD= /usr/lib | | 136 | SYSLIBPATH.MirBSD= /usr/lib |
137 | SYSLIBPATH.NetBSD= /usr/lib | | 137 | SYSLIBPATH.NetBSD= /usr/lib |
138 | SYSLIBPATH.OpenBSD= /usr/lib | | 138 | SYSLIBPATH.OpenBSD= /usr/lib |
139 | SYSLIBPATH.SunOS= /usr/lib | | 139 | SYSLIBPATH.SunOS= /usr/lib |
140 | SYSLIBPATH.AIX= /usr/lib | | 140 | SYSLIBPATH.AIX= /usr/lib |
141 | SYSLIBPATH= ${SYSLIBPATH.${OPSYS}} | | 141 | SYSLIBPATH= ${SYSLIBPATH.${OPSYS}} |
142 | SUBST_VARS.policysh+= SYSLIBPATH | | 142 | SUBST_VARS.policysh+= SYSLIBPATH |
143 | | | 143 | |
144 | .include "../../mk/dlopen.buildlink3.mk" | | 144 | .include "../../mk/dlopen.buildlink3.mk" |
145 | .include "options.mk" | | 145 | .include "options.mk" |
146 | | | 146 | |
147 | .if !empty(MACHINE_PLATFORM:MMirBSD*) | | 147 | .if !empty(MACHINE_PLATFORM:MMirBSD*) |
148 | SUBST_CLASSES+= mirbsd-paths | | 148 | SUBST_CLASSES+= mirbsd-paths |
149 | SUBST_STAGE.mirbsd-paths= pre-configure | | 149 | SUBST_STAGE.mirbsd-paths= pre-configure |
150 | SUBST_FILES.mirbsd-paths= hints/mirbsd.sh | | 150 | SUBST_FILES.mirbsd-paths= hints/mirbsd.sh |
151 | SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g' | | 151 | SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g' |
152 | SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD. | | 152 | SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD. |
153 | .endif | | 153 | .endif |
154 | | | 154 | |
155 | # Remove a spurious workdir reference | | 155 | # Remove a spurious workdir reference |
156 | SUBST_CLASSES+= rm | | 156 | SUBST_CLASSES+= rm |
157 | SUBST_STAGE.rm= pre-install | | 157 | SUBST_STAGE.rm= pre-install |
158 | SUBST_FILES.rm= lib/Config_heavy.pl | | 158 | SUBST_FILES.rm= lib/Config_heavy.pl |
159 | SUBST_MESSAGE.rm= Do not use tools version of rm. | | 159 | SUBST_MESSAGE.rm= Do not use tools version of rm. |
160 | SUBST_SED.rm= -e "s!^rm_try='/.*/\\.tools/bin/rm -f!rm_try='/bin/rm -f!" | | 160 | SUBST_SED.rm= -e "s!^rm_try='/.*/\\.tools/bin/rm -f!rm_try='/bin/rm -f!" |
161 | | | 161 | |
162 | # Replace our perl as the interpreter | | 162 | # Replace our perl as the interpreter |
163 | REPLACE_PERL+= lib/File/DosGlob.pm | | 163 | REPLACE_PERL+= lib/File/DosGlob.pm |
164 | REPLACE_PERL+= lib/unicore/mktables | | 164 | REPLACE_PERL+= lib/unicore/mktables |
165 | REPLACE_PERL+= lib/version.pm | | 165 | REPLACE_PERL+= lib/version.pm |
166 | REPLACE_PERL+= dist/bignum/lib/Math/BigFloat/Trace.pm | | 166 | REPLACE_PERL+= dist/bignum/lib/Math/BigFloat/Trace.pm |
167 | REPLACE_PERL+= dist/bignum/lib/Math/BigInt/Trace.pm | | 167 | REPLACE_PERL+= dist/bignum/lib/Math/BigInt/Trace.pm |
168 | REPLACE_PERL+= dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp | | 168 | REPLACE_PERL+= dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp |
169 | | | 169 | |
170 | # And replace a perl interpreter during the pre-install stage | | 170 | # And replace a perl interpreter during the pre-install stage |
171 | # I think this may be a bootstrap script, so can't use REPLACE_PERL | | 171 | # I think this may be a bootstrap script, so can't use REPLACE_PERL |
172 | # because that is acted upon already in the pre-configure stage | | 172 | # because that is acted upon already in the pre-configure stage |
173 | SUBST_CLASSES+= miniperl | | 173 | SUBST_CLASSES+= miniperl |
174 | SUBST_STAGE.miniperl= pre-install | | 174 | SUBST_STAGE.miniperl= pre-install |
175 | SUBST_FILES.miniperl= lib/ExtUtils/xsubpp | | 175 | SUBST_FILES.miniperl= lib/ExtUtils/xsubpp |
176 | SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:" | | 176 | SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:" |
177 | | | 177 | |
178 | .if ${PKGSRC_COMPILER} == "xlc" | | 178 | .if ${PKGSRC_COMPILER} == "xlc" |
179 | SUBST_CLASSES+= cpprun | | 179 | SUBST_CLASSES+= cpprun |
180 | SUBST_STAGE.cpprun= pre-install | | 180 | SUBST_STAGE.cpprun= pre-install |
181 | SUBST_FILES.cpprun= lib/Config_heavy.pl | | 181 | SUBST_FILES.cpprun= lib/Config_heavy.pl |
182 | . if !empty(PKG_OPTIONS:Mthreads) | | 182 | . if !empty(PKG_OPTIONS:Mthreads) |
183 | SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc_r -E'/" | | 183 | SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc_r -E'/" |
184 | . else | | 184 | . else |
185 | SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc -E'/" | | 185 | SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc -E'/" |
186 | . endif | | 186 | . endif |
187 | .endif | | 187 | .endif |
188 | | | 188 | |
189 | # Some platforms may want the directory mode not to be 0755. This | | 189 | # Some platforms may want the directory mode not to be 0755. This |
190 | # is, unfortunately, hardcoded in quite a few places in Perl, so | | 190 | # is, unfortunately, hardcoded in quite a few places in Perl, so |
191 | # let's substitute what pkgsrc says instead. | | 191 | # let's substitute what pkgsrc says instead. |
192 | # | | 192 | # |
193 | SUBST_CLASSES+= dirmode | | 193 | SUBST_CLASSES+= dirmode |
194 | SUBST_STAGE.dirmode= post-patch | | 194 | SUBST_STAGE.dirmode= post-patch |
195 | SUBST_FILES.dirmode= installhtml install_lib.pl \ | | 195 | SUBST_FILES.dirmode= installhtml install_lib.pl \ |
196 | dist/ExtUtils-Install/lib/ExtUtils/Install.pm | | 196 | dist/ExtUtils-Install/lib/ExtUtils/Install.pm |
197 | SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" | | 197 | SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d" |
198 | | | 198 | |
199 | post-extract: | | 199 | post-extract: |
200 | cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh | | 200 | cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh |
201 | cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \ | | 201 | cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \ |
202 | ${WRKSRC}/cpan/DB_File/hints/netbsd.pl | | 202 | ${WRKSRC}/cpan/DB_File/hints/netbsd.pl |
203 | | | 203 | |
204 | pre-configure: | | 204 | pre-configure: |
205 | cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \; | | 205 | cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \; |
206 | | | 206 | |
207 | post-build: | | 207 | post-build: |
208 | ${SED} -e "s,@PERL5@,"${PERL5:Q}",g" \ | | 208 | ${SED} -e "s,@PERL5@,"${PERL5:Q}",g" \ |
209 | -e "s,@SH@,"${SH:Q}",g" \ | | 209 | -e "s,@SH@,"${SH:Q}",g" \ |
210 | -e "s,@PKGMANDIR@,"${PKGMANDIR}",g" \ | | 210 | -e "s,@PKGMANDIR@,"${PKGMANDIR}",g" \ |
211 | ${FILESDIR}/perllink.in > ${WRKDIR}/perllink.sh | | 211 | ${FILESDIR}/perllink.in > ${WRKDIR}/perllink.sh |
212 | | | 212 | |
213 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | | 213 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 |
214 | PERL5_PACKLIST_DIR_cmd= . ${WRKSRC}/config.sh; echo $$installarchlib | | 214 | PERL5_PACKLIST_DIR_cmd= . ${WRKSRC}/config.sh; echo $$installarchlib |
215 | PERL5_PACKLIST_DIR= ${PERL5_PACKLIST_DIR_cmd:sh} | | 215 | PERL5_PACKLIST_DIR= ${PERL5_PACKLIST_DIR_cmd:sh} |
216 | PERL5_PACKLIST= .packlist | | 216 | PERL5_PACKLIST= .packlist |
217 | PERL5_PACKLIST_DESTDIR= no | | 217 | PERL5_PACKLIST_DESTDIR= no |
218 | FILES_SUBST+= PERL5_COMMENT=\# | | 218 | FILES_SUBST+= PERL5_COMMENT=\# |
219 | FILES_SUBST+= PERL5_PACKLIST= | | 219 | FILES_SUBST+= PERL5_PACKLIST= |
220 | | | 220 | |
221 | post-install: perl5-post-install | | 221 | post-install: perl5-post-install |
222 | | | 222 | |
223 | perl5-post-install: | | 223 | perl5-post-install: |
224 | ${RUN}if ${TEST} -x ${DESTDIR}${PREFIX}/bin/a2p; then \ | | 224 | ${RUN}if ${TEST} -x ${DESTDIR}${PREFIX}/bin/a2p; then \ |
225 | strip ${DESTDIR}${PREFIX}/bin/a2p; \ | | 225 | strip ${DESTDIR}${PREFIX}/bin/a2p; \ |
226 | fi | | 226 | fi |
227 | ${INSTALL_SCRIPT} ${WRKDIR}/perllink.sh \ | | 227 | ${INSTALL_SCRIPT} ${WRKDIR}/perllink.sh \ |
228 | ${DESTDIR}${PERL5_PERLBASE}/bin/perllink | | 228 | ${DESTDIR}${PERL5_PERLBASE}/bin/perllink |
229 | ${INSTALL_MAN} ${FILESDIR}/perllink.1 \ | | 229 | ${INSTALL_MAN} ${FILESDIR}/perllink.1 \ |
230 | ${DESTDIR}${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1 | | 230 | ${DESTDIR}${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1 |
231 | ${RM} -f ${DESTDIR}${PREFIX}/bin/perllink \ | | 231 | ${RM} -f ${DESTDIR}${PREFIX}/bin/perllink \ |
232 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1 | | 232 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1 |
233 | ${LN} -s ${PERL5_PERLBASE}/bin/perllink \ | | 233 | ${LN} -s ${PERL5_PERLBASE}/bin/perllink \ |
234 | ${DESTDIR}${PREFIX}/bin/perllink | | 234 | ${DESTDIR}${PREFIX}/bin/perllink |
235 | ${LN} -s ${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1 \ | | 235 | ${LN} -s ${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1 \ |
236 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1 | | 236 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1 |
237 | .if ${OPSYS} == "Haiku" | | 237 | .if ${OPSYS} == "Haiku" |
238 | ${CHMOD} a+x ${DESTDIR}${PREFIX}/bin/perl | | 238 | ${CHMOD} a+x ${DESTDIR}${PREFIX}/bin/perl |
239 | .endif | | 239 | .endif |
240 | | | 240 | |
241 | .include "packlist.mk" | | 241 | .include "packlist.mk" |
242 | .include "../../mk/bsd.pkg.mk" | | 242 | .include "../../mk/bsd.pkg.mk" |