2013-02-28 01:50:44 +01:00
|
|
|
# $NetBSD: Makefile,v 1.196 2013/02/28 00:50:44 obache Exp $
|
2009-06-11 12:35:07 +02:00
|
|
|
|
|
|
|
.include "license.mk"
|
2010-08-27 07:27:37 +02:00
|
|
|
.include "Makefile.common"
|
2001-06-07 06:25:31 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
COMMENT= Practical Extraction and Report Language
|
2013-01-17 14:29:59 +01:00
|
|
|
PKGREVISION= 3
|
1997-10-06 16:51:03 +02:00
|
|
|
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
CONFLICTS= perl-base-[0-9]* perl-thread-[0-9]* \
|
2010-08-27 07:27:37 +02:00
|
|
|
p5-CGI-2.66{,nb*} p5-CGI-2.75{,nb*} p5-CGI-2.75.[0-2] \
|
|
|
|
p5-Tie-File-0.96{,nb*} \
|
2010-09-05 10:29:51 +02:00
|
|
|
p5-Memoize-1.01{,nb*} \
|
2010-12-29 23:25:17 +01:00
|
|
|
p5-I18N-LangTags<0.35 \
|
2010-09-05 10:29:51 +02:00
|
|
|
p5-Locale-Maketext-1.[0-9]*{,nb*} \
|
2010-12-29 23:25:17 +01:00
|
|
|
p5-Locale-Maketext-Simple<0.21 \
|
|
|
|
p5-Digest<=1.16 \
|
|
|
|
p5-Digest-MD5<=2.39 \
|
2010-09-05 10:29:51 +02:00
|
|
|
p5-Digest-SHA<2.48
|
2010-08-27 07:27:37 +02:00
|
|
|
|
|
|
|
SUPERSEDES+= p5-Tie-File<0.97
|
|
|
|
SUPERSEDES+= p5-Memoize<1.02
|
2010-12-29 23:25:17 +01:00
|
|
|
SUPERSEDES+= p5-I18N-LangTags<=0.35
|
2010-09-05 10:29:51 +02:00
|
|
|
SUPERSEDES+= p5-Locale-Maketext<=1.15
|
2002-12-23 17:10:45 +01:00
|
|
|
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Determine the Perl API version from the patchlevel.h file from the
|
|
|
|
# source distribution.
|
|
|
|
#
|
2006-04-09 08:34:32 +02:00
|
|
|
PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh}
|
|
|
|
PERL5_API_VERS_cmd= \
|
2006-01-15 08:40:30 +01:00
|
|
|
if ${TEST} -f ${WRKSRC}/patchlevel.h; then \
|
|
|
|
${AWK} '/\#define[ ]*PERL_API_REVISION/ { R = $$3 }\
|
|
|
|
/\#define[ ]*PERL_API_VERSION/ { r = "."$$3 } \
|
|
|
|
/\#define[ ]*PERL_API_SUBVERSION/ { s = "."$$3 } \
|
|
|
|
END { printf "%s%s%s\n", R, r, s }' \
|
|
|
|
${WRKSRC}/patchlevel.h; \
|
|
|
|
else \
|
|
|
|
${ECHO} "unknown"; \
|
|
|
|
fi
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
.include "dirs.mk"
|
2004-01-05 23:15:14 +01:00
|
|
|
|
2013-02-27 15:02:22 +01:00
|
|
|
#
|
|
|
|
# ld='g++' in hints/cygwin.sh
|
|
|
|
#
|
|
|
|
.if ${OPSYS} == "Cygwin"
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
2004-01-08 19:03:04 +01:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2001-09-05 19:13:40 +02:00
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
|
|
|
CONFIGURE_ARGS+= -sde
|
2005-06-24 08:43:43 +02:00
|
|
|
MAKE_ENV+= LC_ALL="C"
|
2000-08-30 21:46:47 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
TEST_TARGET= test
|
2004-01-06 18:17:53 +01:00
|
|
|
|
2010-08-19 22:47:09 +02:00
|
|
|
# Policy.sh generation
|
|
|
|
# (see comments in files/Policy.sh)
|
|
|
|
SUBST_CLASSES+= policysh
|
|
|
|
SUBST_STAGE.policysh= pre-configure
|
|
|
|
SUBST_FILES.policysh= Policy.sh
|
|
|
|
SUBST_VARS.policysh+= MACHINE_ARCH
|
|
|
|
SUBST_VARS.policysh+= LOWER_OPSYS
|
2012-11-07 03:46:19 +01:00
|
|
|
SUBST_VARS.policysh+= OBJECT_FMT
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= CC
|
|
|
|
SUBST_VARS.policysh+= CFLAGS
|
2012-11-07 04:58:00 +01:00
|
|
|
SUBST_VARS.policysh+= LDFLAGS
|
2012-11-07 03:46:19 +01:00
|
|
|
SUBST_VARS.policysh+= COMPILER_RPATH_FLAG
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= PERL5_PREFIX
|
|
|
|
SUBST_VARS.policysh+= PERL5_SITEPREFIX
|
|
|
|
SUBST_VARS.policysh+= PERL5_VENDORPREFIX
|
|
|
|
SUBST_VARS.policysh+= PERL5_PERLBASE
|
|
|
|
SUBST_VARS.policysh+= PERL5_SITEBASE
|
2011-05-16 09:59:04 +02:00
|
|
|
SUBST_VARS.policysh+= PERL5_SITEBIN
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= PERL5_VENDORBASE
|
|
|
|
SUBST_VARS.policysh+= PERL5_PRIVLIB
|
|
|
|
SUBST_VARS.policysh+= PERL5_SITELIB
|
|
|
|
SUBST_VARS.policysh+= PERL5_VENDORLIB
|
|
|
|
SUBST_VARS.policysh+= PKGMANDIR
|
|
|
|
SUBST_VARS.policysh+= LOCALBASE
|
|
|
|
SUBST_VARS.policysh+= PTHREAD_LDFLAGS
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2013-02-28 01:50:44 +01:00
|
|
|
.if ${OPSYS} == "Darwin" || ${OPSYS} == "Cygwin"
|
2005-06-24 08:43:43 +02:00
|
|
|
#
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
# The Perl build attempts to work around case-insensitivity problems on
|
2005-06-24 08:43:43 +02:00
|
|
|
# HFS filesystems by using GNUmakefiles, so we need to use GNU make.
|
|
|
|
#
|
|
|
|
USE_TOOLS+= gmake
|
2013-02-28 01:50:44 +01:00
|
|
|
MAKE_FILE= GNUmakefile
|
2004-05-05 05:14:33 +02:00
|
|
|
.endif
|
|
|
|
|
2007-11-18 01:42:50 +01:00
|
|
|
#
|
|
|
|
# For the moment disable the building of a shared libperl.dylib on Darwin
|
|
|
|
# => 9.0 as it breaks the build. This should just be considered a temporary
|
|
|
|
# work around until the actual problem can be fixed as this worked for
|
|
|
|
# Darwin < 9.0.
|
|
|
|
#
|
|
|
|
.if empty(MACHINE_PLATFORM:MDarwin-9.*-*)
|
|
|
|
CONFIGURE_ARGS+= -Duseshrplib
|
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
# Perl embeds the full paths to the following tools in several installed
|
|
|
|
# files, so make sure the paths to the ones in ${TOOLS_DIR} aren't used.
|
|
|
|
#
|
2005-06-30 15:07:39 +02:00
|
|
|
USE_TOOLS+= hostname ln sed test
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= TOOLS_HOSTNAME_CMD
|
|
|
|
SUBST_VARS.policysh+= TOOLS_LN
|
2008-02-09 14:58:46 +01:00
|
|
|
TOOLS_ALIASES.sed+= ${TOOLS_SED:T}
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= TOOLS_SED
|
|
|
|
SUBST_VARS.policysh+= TOOLS_SH
|
|
|
|
SUBST_VARS.policysh+= TOOLS_TEST
|
|
|
|
SUBST_VARS.policysh+= FALSE
|
2005-06-24 08:43:43 +02:00
|
|
|
|
2001-09-05 19:13:40 +02:00
|
|
|
# Nail down the needed libraries for each platform here to avoid hidden
|
2001-09-17 20:11:36 +02:00
|
|
|
# dependencies. If this isn't defined, then use the perl defaults for the
|
|
|
|
# particular operating system.
|
2001-09-05 19:13:40 +02:00
|
|
|
#
|
2005-06-24 08:43:43 +02:00
|
|
|
LIBSWANTED.Darwin= m c
|
2005-08-22 19:40:20 +02:00
|
|
|
LIBSWANTED.DragonFly= m crypt
|
2003-05-27 23:57:25 +02:00
|
|
|
LIBSWANTED.FreeBSD= m crypt
|
2010-08-19 22:47:09 +02:00
|
|
|
LIBSWANTED.HPUX= cl pthread $$libswanted # see Perl's README.hpux
|
2003-09-13 19:05:08 +02:00
|
|
|
LIBSWANTED.IRIX= m crypt
|
2005-06-24 08:43:43 +02:00
|
|
|
LIBSWANTED.Interix= m dl
|
2007-12-22 22:03:31 +01:00
|
|
|
LIBSWANTED.Linux= m crypt dl nsl
|
2011-01-23 20:07:24 +01:00
|
|
|
LIBSWANTED.MirBSD= m crypt
|
2001-09-05 19:13:40 +02:00
|
|
|
LIBSWANTED.NetBSD= m crypt
|
2005-03-24 03:33:08 +01:00
|
|
|
LIBSWANTED.OpenBSD= m crypt
|
2001-10-21 08:56:30 +02:00
|
|
|
LIBSWANTED.SunOS= m crypt dl socket nsl
|
2010-08-19 22:47:09 +02:00
|
|
|
LIBSWANTED.AIX= m crypt dl socket nsl bind c
|
2005-06-24 08:43:43 +02:00
|
|
|
LIBSWANTED= ${LIBSWANTED.${OPSYS}}
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= LIBSWANTED
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2001-09-12 20:58:57 +02:00
|
|
|
# Nail down the directories in which the system libraries may be found.
|
|
|
|
# If this isn't defined, then use the perl defaults for the particular
|
|
|
|
# operating system.
|
2001-09-05 19:13:40 +02:00
|
|
|
#
|
2005-06-24 08:43:43 +02:00
|
|
|
SYSLIBPATH.Darwin= /usr/lib
|
2005-08-22 19:40:20 +02:00
|
|
|
SYSLIBPATH.DragonFly= /usr/lib
|
2005-06-24 08:43:43 +02:00
|
|
|
SYSLIBPATH.FreeBSD= /usr/lib
|
|
|
|
SYSLIBPATH.Interix= /usr/lib
|
2011-01-23 20:07:24 +01:00
|
|
|
SYSLIBPATH.MirBSD= /usr/lib
|
2001-09-05 19:13:40 +02:00
|
|
|
SYSLIBPATH.NetBSD= /usr/lib
|
2005-03-24 03:33:08 +01:00
|
|
|
SYSLIBPATH.OpenBSD= /usr/lib
|
2001-09-17 20:04:42 +02:00
|
|
|
SYSLIBPATH.SunOS= /usr/lib
|
2008-12-20 14:08:00 +01:00
|
|
|
SYSLIBPATH.AIX= /usr/lib
|
2005-06-24 08:43:43 +02:00
|
|
|
SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_VARS.policysh+= SYSLIBPATH
|
2001-10-01 09:05:10 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
2012-11-02 22:22:10 +01:00
|
|
|
.include "options.mk"
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2011-01-30 22:31:42 +01:00
|
|
|
.if !empty(MACHINE_PLATFORM:MMirBSD*)
|
|
|
|
SUBST_CLASSES+= mirbsd-paths
|
|
|
|
SUBST_STAGE.mirbsd-paths= pre-configure
|
|
|
|
SUBST_FILES.mirbsd-paths= hints/mirbsd.sh
|
|
|
|
SUBST_SED.mirbsd-paths= -e 's,/usr/mpkg,${PREFIX},g'
|
|
|
|
SUBST_MESSAGE.mirbsd-paths= Do not use non-pkgsrc paths on MirBSD.
|
|
|
|
.endif
|
|
|
|
|
2008-10-10 23:58:43 +02:00
|
|
|
# Remove a spurious workdir reference
|
|
|
|
SUBST_CLASSES+= rm
|
|
|
|
SUBST_STAGE.rm= pre-install
|
|
|
|
SUBST_FILES.rm= lib/Config_heavy.pl
|
2012-10-20 12:41:46 +02:00
|
|
|
SUBST_MESSAGE.rm= Do not use tools version of rm.
|
2010-08-27 07:27:37 +02:00
|
|
|
SUBST_SED.rm= -e "s!^rm_try='/.*/\\.tools/bin/rm -f!rm_try='/bin/rm -f!"
|
2008-10-10 23:58:43 +02:00
|
|
|
|
|
|
|
# Replace our perl as the interpreter
|
|
|
|
REPLACE_PERL+= lib/File/DosGlob.pm
|
2009-06-11 12:32:29 +02:00
|
|
|
REPLACE_PERL+= lib/unicore/mktables
|
2011-11-27 20:47:50 +01:00
|
|
|
REPLACE_PERL+= lib/version.pm
|
|
|
|
REPLACE_PERL+= dist/bignum/lib/Math/BigFloat/Trace.pm
|
|
|
|
REPLACE_PERL+= dist/bignum/lib/Math/BigInt/Trace.pm
|
2012-10-20 12:41:46 +02:00
|
|
|
REPLACE_PERL+= dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp
|
2008-10-10 23:58:43 +02:00
|
|
|
|
|
|
|
# And replace a perl interpreter during the pre-install stage
|
|
|
|
# I think this may be a bootstrap script, so can't use REPLACE_PERL
|
|
|
|
# because that is acted upon already in the pre-configure stage
|
|
|
|
SUBST_CLASSES+= miniperl
|
|
|
|
SUBST_STAGE.miniperl= pre-install
|
|
|
|
SUBST_FILES.miniperl= lib/ExtUtils/xsubpp
|
|
|
|
SUBST_SED.miniperl= -e "1s:\#!./miniperl:\#!${PERL5}:"
|
|
|
|
|
2008-12-21 15:02:59 +01:00
|
|
|
.if ${PKGSRC_COMPILER} == "xlc"
|
|
|
|
SUBST_CLASSES+= cpprun
|
|
|
|
SUBST_STAGE.cpprun= pre-install
|
|
|
|
SUBST_FILES.cpprun= lib/Config_heavy.pl
|
2010-08-19 22:47:09 +02:00
|
|
|
. if !empty(PKG_OPTIONS:Mthreads)
|
2008-12-27 16:49:31 +01:00
|
|
|
SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc_r -E'/"
|
2010-08-19 22:47:09 +02:00
|
|
|
. else
|
2008-12-27 16:49:31 +01:00
|
|
|
SUBST_SED.cpprun= -e "s/cpprun=''/cpprun='cc -E'/"
|
2010-08-19 22:47:09 +02:00
|
|
|
. endif
|
2008-12-21 15:02:59 +01:00
|
|
|
.endif
|
|
|
|
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
# Some platforms may want the directory mode not to be 0755. This
|
|
|
|
# is, unfortunately, hardcoded in quite a few places in Perl, so
|
|
|
|
# let's substitute what pkgsrc says instead.
|
|
|
|
#
|
|
|
|
SUBST_CLASSES+= dirmode
|
|
|
|
SUBST_STAGE.dirmode= post-patch
|
2010-08-19 22:47:09 +02:00
|
|
|
SUBST_FILES.dirmode= installhtml install_lib.pl \
|
|
|
|
dist/ExtUtils-Install/lib/ExtUtils/Install.pm
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d"
|
|
|
|
|
2010-08-19 22:47:09 +02:00
|
|
|
post-extract:
|
|
|
|
cp ${FILESDIR}/Policy.sh ${WRKSRC}/Policy.sh
|
2011-09-17 20:51:35 +02:00
|
|
|
cp ${FILESDIR}/cpan-DB_File-hints-netbsd.pl \
|
|
|
|
${WRKSRC}/cpan/DB_File/hints/netbsd.pl
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2010-09-23 23:47:48 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && find `pwd` -name "*.orig" -type f -exec ${RM} -f {} \;
|
|
|
|
|
2006-04-09 08:34:32 +02:00
|
|
|
post-build:
|
|
|
|
${SED} -e "s,@PERL5@,"${PERL5:Q}",g" \
|
|
|
|
-e "s,@SH@,"${SH:Q}",g" \
|
2012-10-03 21:59:47 +02:00
|
|
|
-e "s,@PKGMANDIR@,"${PKGMANDIR}",g" \
|
2006-04-09 08:34:32 +02:00
|
|
|
${FILESDIR}/perllink.in > ${WRKDIR}/perllink.sh
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2006-11-03 08:09:45 +01:00
|
|
|
PERL5_PACKLIST_DIR_cmd= . ${WRKSRC}/config.sh; echo $$installarchlib
|
2005-10-19 06:40:23 +02:00
|
|
|
PERL5_PACKLIST_DIR= ${PERL5_PACKLIST_DIR_cmd:sh}
|
|
|
|
PERL5_PACKLIST= .packlist
|
2006-11-03 11:48:05 +01:00
|
|
|
PERL5_PACKLIST_DESTDIR= no
|
2005-10-19 06:40:23 +02:00
|
|
|
FILES_SUBST+= PERL5_COMMENT=\#
|
|
|
|
FILES_SUBST+= PERL5_PACKLIST=
|
Update lang/perl5 to 5.8.7. Changes from version 5.8.6 include updates
for many "core" modules, UTF-8 and Unicode bugfixes, and ithreads
bugfixes.
The major changes are in the pkgsrc infrastructure to handle Perl and
Perl modules. All pkgsrc-installed Perl modules are now installed in
"vendor" directories, and the perl interpreter has been modifed to
search for libraries in the following order: site, vendor, perl. The
Perl library is stored in a directory that is named for the Perl ABI
version associated with the Perl release, so any updates of Perl to
newer versions can be done "in-place" as long as Perl ABI version
remains the same. All Perl scripts and man pages are stored in
locations that won't conflict between site, vendor, and perl modules,
and a new utility perllink(1) now manages symlinks to those scripts
and man pages under the usual ${LOCALBASE}/bin and ${LOCALBASE}/man/man1.
PERL5_SITEPREFIX may be set to the prefix where local, site-specific
modules will be installed, e.g. PERL5_SITEPREFIX=/usr/local. Note
that modules installed here are completely unmanaged by pkgsrc.
Update the buildlink and tool dependencies on perl to require perl>=5.8.7
to reflect the new locations for Perl modules and the Perl shared
library.
2005-08-06 08:18:44 +02:00
|
|
|
|
2005-10-19 06:40:23 +02:00
|
|
|
post-install: perl5-post-install
|
|
|
|
|
|
|
|
perl5-post-install:
|
2010-08-19 22:47:09 +02:00
|
|
|
${RUN}if ${TEST} -x ${DESTDIR}${PREFIX}/bin/a2p; then \
|
2006-11-03 08:09:45 +01:00
|
|
|
strip ${DESTDIR}${PREFIX}/bin/a2p; \
|
2004-01-05 23:15:14 +01:00
|
|
|
fi
|
2012-11-02 09:18:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/perllink.sh \
|
|
|
|
${DESTDIR}${PERL5_PERLBASE}/bin/perllink
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/perllink.1 \
|
|
|
|
${DESTDIR}${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1
|
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/bin/perllink \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1
|
|
|
|
${LN} -s ${PERL5_PERLBASE}/bin/perllink \
|
|
|
|
${DESTDIR}${PREFIX}/bin/perllink
|
|
|
|
${LN} -s ${PERL5_PERLBASE}/${PKGMANDIR}/man1/perllink.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/perllink.1
|
2010-08-21 05:12:46 +02:00
|
|
|
.if ${OPSYS} == "Haiku"
|
|
|
|
${CHMOD} a+x ${DESTDIR}${PREFIX}/bin/perl
|
|
|
|
.endif
|
2005-06-24 08:43:43 +02:00
|
|
|
|
2005-10-19 06:40:23 +02:00
|
|
|
.include "packlist.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|