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