2005-10-10 19:33:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.104 2005/10/10 17:33:15 joerg Exp $
|
1997-10-06 16:51:03 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
# The following two variables should have empty values unless we're
|
|
|
|
# building a perl snapshot or release candidate.
|
|
|
|
#
|
|
|
|
PERL5_SNAPSHOT= # empty
|
|
|
|
PERL5_RC_VERS= # empty
|
2001-06-07 06:25:31 +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
|
|
|
PERL5_VERS= 5.8.7
|
2005-06-24 08:43:43 +02:00
|
|
|
CATEGORIES= lang devel perl5
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
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
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
1997-10-06 16:51:03 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
.if empty(PERL5_SNAPSHOT) && empty(PERL5_RC_VERS)
|
|
|
|
DISTNAME= perl-${PERL5_VERS}
|
|
|
|
PKGNAME= perl-${PERL5_VERS}
|
2005-10-10 19:33:15 +02:00
|
|
|
PKGREVISION= 4
|
2005-06-24 08:43:43 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S,/modules/by-module/$,/src/,}
|
|
|
|
.else
|
|
|
|
. if !empty(PERL5_SNAPSHOT)
|
|
|
|
DISTNAME= perl@${PERL5_SNAPSHOT}
|
|
|
|
PKGNAME= perl-${PERL5_VERS}beta${PERL5_SNAPSHOT}
|
|
|
|
MASTER_SITES= http://www.iki.fi/jhi/
|
|
|
|
EXTRACT_SUFX= .tbz
|
|
|
|
WRKSRC= ${WRKDIR}/perl
|
|
|
|
. else # !empty(PERL5_RC_VERS)
|
|
|
|
DISTNAME= perl-${PERL5_VERS}-RC${PERL5_RC_VERS}
|
|
|
|
PKGNAME= perl-${PERL5_VERS}rc${PERL5_RC_VERS}
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:S/${MODULE_DIR}/${AUTHOR_DIR}/}
|
|
|
|
MODULE_DIR= modules/by-module
|
|
|
|
AUTHOR_DIR= authors/id/J/JH/JHI
|
|
|
|
. endif
|
|
|
|
.endif
|
1997-10-06 16:51:03 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
MAINTAINER= jlam@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.perl.com/
|
|
|
|
COMMENT= Practical Extraction and Report Language
|
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]* \
|
|
|
|
p5-CGI-2.66 p5-CGI-2.75 p5-CGI-2.75.[0-2]
|
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.
|
|
|
|
#
|
|
|
|
PERL5_API_VERS?= unknown
|
|
|
|
.if exists(${WRKSRC}/patchlevel.h)
|
|
|
|
PERL5_API_VERS_cmd= \
|
|
|
|
${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
|
|
|
|
PERL5_API_VERS= ${PERL5_API_VERS_cmd:sh}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PERL5_PREFIX= ${PREFIX}
|
2005-08-08 18:39:58 +02:00
|
|
|
PERL5_VENDORPREFIX= ${PERL5_PREFIX}
|
|
|
|
PERL5_SITEPREFIX?= ${PERL5_PREFIX}
|
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
|
|
|
BUILD_DEFS+= PERL5_SITEPREFIX
|
|
|
|
|
|
|
|
PERL5= ${PERL5_PREFIX}/bin/perl
|
|
|
|
PERL5_PERLBASE= ${PERL5_PREFIX}/lib/perl5
|
2005-08-08 18:39:58 +02:00
|
|
|
PERL5_VENDORBASE= ${PERL5_VENDORPREFIX}/lib/perl5/vendor_perl
|
|
|
|
#
|
|
|
|
# The unusual check for empty(PERL5_SITEPREFIX) is because ${PREFIX} isn't
|
|
|
|
# defined until bsd.pkg.mk is included, so when we inspect its value at
|
|
|
|
# this point, it's empty.
|
|
|
|
#
|
|
|
|
.if empty(PERL5_SITEPREFIX) || \
|
|
|
|
!empty(PERL5_SITEPREFIX:M${LOCALBASE}) || \
|
|
|
|
!empty(PERL5_SITEPREFIX:M${LOCALBASE}/*)
|
|
|
|
PERL5_SITEBASE= ${PERL5_SITEPREFIX}/lib/perl5/site_perl
|
|
|
|
.else
|
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
|
|
|
PERL5_SITEBASE= ${PERL5_SITEPREFIX}
|
2005-08-08 18:39:58 +02: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
|
|
|
|
|
|
|
PERL5_PRIVLIB= ${PERL5_PERLBASE}/${PERL5_API_VERS}
|
|
|
|
PERL5_VENDORLIB= ${PERL5_VENDORBASE}/${PERL5_API_VERS}
|
|
|
|
.if !empty(PERL5_SITEBASE:M*lib/perl5/site_perl)
|
|
|
|
PERL5_SITELIB= ${PERL5_SITEBASE}/${PERL5_API_VERS}
|
|
|
|
.else
|
|
|
|
PERL5_SITELIB= ${PERL5_SITEBASE}/lib/perl5/site_perl/${PERL5_API_VERS}
|
|
|
|
.endif
|
2004-01-05 23:15:14 +01:00
|
|
|
|
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
|
|
|
|
CONFIGURE_ARGS+= -Darchname="${MACHINE_ARCH}-${LOWER_OPSYS}"
|
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
|
|
|
CONFIGURE_ARGS+= -Dcc=${CC:Q}
|
|
|
|
CONFIGURE_ARGS+= -Doptimize=${CFLAGS:Q}
|
2005-06-24 08:43:43 +02:00
|
|
|
CONFIGURE_ARGS+= -Duseshrplib
|
2003-02-21 15:42:14 +01:00
|
|
|
CONFIGURE_ARGS+= -Ui_malloc
|
2001-09-05 19:13:40 +02:00
|
|
|
CONFIGURE_ARGS+= -Uusemymalloc
|
|
|
|
CONFIGURE_ARGS+= -Uinstallusrbinperl
|
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
|
|
|
|
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
|
|
|
###
|
|
|
|
### Installation directories for "perl", "vendor" and "site" bits.
|
|
|
|
###
|
|
|
|
CONFIGURE_ARGS+= -Dinstallstyle="lib/perl5"
|
|
|
|
CONFIGURE_ARGS+= -Dprefix=${PERL5_PREFIX:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dsiteprefix=${PERL5_SITEPREFIX:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dvendorprefix=${PERL5_VENDORPREFIX:Q}
|
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 Configure script will install scripts into "*/script"
|
|
|
|
# directories if they exist, so override with explicit settings.
|
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
|
|
|
CONFIGURE_ARGS+= -Dscriptdir=${PERL5_PERLBASE:Q}/bin
|
|
|
|
CONFIGURE_ARGS+= -Dsitescript=${PERL5_SITEBASE:Q}/bin
|
|
|
|
CONFIGURE_ARGS+= -Dvendorscript=${PERL5_VENDORBASE:Q}/bin
|
2003-05-27 23:57:25 +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
|
|
|
# Put the API-specific files into API-specific directories instead
|
|
|
|
# of the default version-specific directories.
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= -Dprivlib=${PERL5_PRIVLIB:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dsitelib=${PERL5_SITELIB:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dvendorlib=${PERL5_VENDORLIB:Q}
|
2004-01-05 23:15:14 +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
|
|
|
# Avoid manpage conflicts between the standard Perl library, 3rd-party
|
|
|
|
# modules, and other packages.
|
|
|
|
#
|
|
|
|
CONFIGURE_ARGS+= -Dman1ext="1"
|
|
|
|
CONFIGURE_ARGS+= -Dman1dir=${PERL5_PERLBASE:Q}/man/man1
|
|
|
|
CONFIGURE_ARGS+= -Dsiteman1dir=${PERL5_SITEBASE:Q}/man/man1
|
|
|
|
CONFIGURE_ARGS+= -Dvendorman1dir=${PERL5_VENDORBASE:Q}/man/man1
|
|
|
|
CONFIGURE_ARGS+= -Dman3ext="3"
|
|
|
|
CONFIGURE_ARGS+= -Dman3dir=${PERL5_PERLBASE:Q}/man/man3
|
|
|
|
CONFIGURE_ARGS+= -Dsiteman3dir=${PERL5_SITEBASE:Q}/man/man3
|
|
|
|
CONFIGURE_ARGS+= -Dvendorman3dir=${PERL5_VENDORBASE:Q}/man/man3
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
#
|
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
|
2004-05-05 05:14:33 +02:00
|
|
|
.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
|
2005-06-24 08:43:43 +02:00
|
|
|
CONFIGURE_ARGS+= -Daphostname=${TOOLS_HOSTNAME_CMD:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dln=${TOOLS_LN:Q}
|
|
|
|
CONFIGURE_ARGS+= -Dsed=${TOOLS_SED:Q}
|
2005-06-30 19:24:49 +02:00
|
|
|
CONFIGURE_ARGS+= -Dissymlink="${TOOLS_TEST} -h"
|
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
|
2003-09-13 19:05:08 +02:00
|
|
|
LIBSWANTED.IRIX= m crypt
|
2005-06-24 08:43:43 +02:00
|
|
|
LIBSWANTED.Interix= m dl
|
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
|
2005-06-24 08:43:43 +02:00
|
|
|
LIBSWANTED= ${LIBSWANTED.${OPSYS}}
|
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
|
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
|
2005-06-24 08:43:43 +02:00
|
|
|
SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}
|
2001-09-05 19:13:40 +02:00
|
|
|
|
2001-10-01 09:05:10 +02:00
|
|
|
# Nail down the directories in which headers and libraries of
|
|
|
|
# locally-installed software may be found.
|
|
|
|
#
|
|
|
|
LOCLIBPATH= ${LOCALBASE}/lib
|
|
|
|
LOCINCPATH= ${LOCALBASE}/include
|
|
|
|
|
2001-10-14 21:55:47 +02:00
|
|
|
# On a.out platforms, we link with "ld" and on ELF platforms, we link with
|
|
|
|
# "cc", so we need to use different options to pass the run-time search path
|
|
|
|
# flags to the link command in the right way.
|
|
|
|
#
|
2001-10-01 09:05:10 +02:00
|
|
|
.if ${OBJECT_FMT} == "a.out"
|
2004-08-27 08:29:06 +02:00
|
|
|
LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${LINKER_RPATH_FLAG} /g}
|
2005-06-24 08:43:43 +02:00
|
|
|
.elif ${OBJECT_FMT} == "ELF"
|
2004-08-27 08:29:06 +02:00
|
|
|
LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${COMPILER_RPATH_FLAG}/g}
|
2005-06-24 08:43:43 +02:00
|
|
|
.else
|
|
|
|
LOCLIBRPATHFLAGS= # empty
|
2001-10-01 09:05:10 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
PERL5_HINTS_LDFLAGS= # empty
|
|
|
|
PERL5_HINTS_LDDLFLAGS= # empty
|
|
|
|
|
|
|
|
PERL5_HINTS_LDFLAGS+= ${LOCLIBRPATHFLAGS}
|
|
|
|
|
|
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
|
|
|
|
|
|
CHECK_BUILTIN.pthread:= yes
|
|
|
|
.include "../../mk/pthread.builtin.mk"
|
|
|
|
CHECK_BUILTIN.pthread:= no
|
|
|
|
|
|
|
|
# By default, build with threads only if the threads are native.
|
|
|
|
.if !empty(USE_BUILTIN.pthread:M[yY][eE][sS])
|
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
|
|
|
PERL5_BUILD_THREADS_SUPPORT= yes
|
2005-06-24 08:43:43 +02:00
|
|
|
.else
|
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
|
|
|
PERL5_BUILD_THREADS_SUPPORT= ${DLOPEN_REQUIRE_PTHREADS}
|
2001-09-05 19:13:40 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
### [Sat Dec 18 17:29:44 EST 2004 : jlam]
|
|
|
|
### Native threading on VAX isn't ready for primetime in NetBSD>=2.0.
|
|
|
|
### Build Perl without threads-support until VAX native threads are
|
|
|
|
### known to work.
|
|
|
|
###
|
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
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-vax) && \
|
|
|
|
!empty(USE_BUILTIN.pthread:M[yY][eE][sS])
|
|
|
|
PKG_HACKS+= broken-vax-pthreads
|
|
|
|
PERL5_BUILD_THREADS_SUPPORT= no
|
2001-09-05 19:13:40 +02: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
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.perl
|
|
|
|
PKG_SUPPORTED_OPTIONS= threads
|
|
|
|
.if !empty(PERL5_BUILD_THREADS_SUPPORT:M[yY][eE][sS])
|
|
|
|
PKG_SUGGESTED_OPTIONS= threads
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mthreads)
|
2005-06-24 08:43:43 +02:00
|
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= -Duseithreads
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
PERL5_HINTS_LDFLAGS+= ${PTHREAD_LDFLAGS}
|
|
|
|
PERL5_HINTS_LDDLFLAGS+= ${PTHREAD_LDFLAGS}
|
|
|
|
LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//}
|
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
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Uuseithreads
|
2001-09-05 19:13:40 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
.if !empty(LIBSWANTED)
|
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
|
|
|
CONFIGURE_ARGS+= -Dlibswanted=${LIBSWANTED:Q}
|
2005-06-24 08:43:43 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2005-07-13 17:20:29 +02:00
|
|
|
.if ${OPSYS} == "IRIX"
|
|
|
|
. if ${ABI} == "64"
|
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
|
|
|
CONFIGURE_ARGS+= -Dcc=${CC:Q}" -64" -Duse64bitint
|
2005-07-13 17:20:29 +02:00
|
|
|
. else
|
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
|
|
|
CONFIGURE_ARGS+= -Dcc=${CC:Q}" -n32"
|
2005-07-13 17:20:29 +02:00
|
|
|
. endif
|
2005-06-24 08:43:43 +02: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
|
|
|
|
SUBST_FILES.dirmode= installhtml installman installperl \
|
|
|
|
lib/ExtUtils/Install.pm
|
|
|
|
SUBST_SED.dirmode= -e "s/755/${PKGDIRMODE}/g;/umask(/d"
|
|
|
|
|
|
|
|
USE_PKGINSTALL= yes
|
2005-08-12 21:59:03 +02:00
|
|
|
INSTALL_EXTRA_TMPL+= ${FILESDIR}/install.tmpl
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${FILESDIR}/deinstall.tmpl
|
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
|
|
|
FILES_SUBST+= PERL5_PACKLIST=
|
|
|
|
FILES_SUBST+= PERL5_COMMENT=\#
|
2005-06-24 08:43:43 +02:00
|
|
|
|
2001-09-05 19:13:40 +02:00
|
|
|
# It's tough to guess which hints file will be used, so add our modifications
|
2001-09-12 20:58:57 +02:00
|
|
|
# to all of them:
|
|
|
|
#
|
|
|
|
# - Explicitly set the local compiler search paths to contain only the
|
|
|
|
# pkgsrc-controlled directories.
|
2001-09-05 19:13:40 +02:00
|
|
|
#
|
2002-01-30 23:34:15 +01:00
|
|
|
pre-configure:
|
2001-09-05 19:13:40 +02:00
|
|
|
hintdir="${WRKSRC}/hints"; \
|
|
|
|
for hints in $${hintdir}/*.sh; do \
|
|
|
|
${CHMOD} +w $${hints}; \
|
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
|
|
|
{ ${ECHO} ""; \
|
2005-06-24 08:43:43 +02:00
|
|
|
${ECHO} "cat > UU/pkgsrc.cbu <<'EOCBU'"; \
|
|
|
|
${ECHO} "# This script UU/pkgsrc.cbu will get 'called-back' by Configure to set"; \
|
|
|
|
${ECHO} '# linker options after all other call-back scripts have been invoked.'; \
|
|
|
|
${ECHO} 'ldflags="${PERL5_HINTS_LDFLAGS} $$ldflags"'; \
|
|
|
|
${ECHO} 'lddlflags="${PERL5_HINTS_LDFLAGS} $$lddlflags"'; \
|
|
|
|
${ECHO} "EOCBU"; \
|
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
|
|
|
} >> $${hints}; \
|
2005-06-24 08:43:43 +02:00
|
|
|
done
|
|
|
|
hintdir="${WRKSRC}/hints"; \
|
|
|
|
for hints in $${hintdir}/*.sh; do \
|
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
|
|
|
{ ${ECHO} ""; \
|
2005-06-24 08:43:43 +02:00
|
|
|
${ECHO} "# Set pkgsrc defaults for library and header search paths."; \
|
2001-10-01 09:05:10 +02:00
|
|
|
${ECHO} 'locincpth="${LOCINCPATH}"'; \
|
|
|
|
${ECHO} 'loclibpth="${LOCLIBPATH}"'; \
|
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
|
|
|
} >> $${hints}; \
|
2001-09-05 19:13:40 +02:00
|
|
|
done
|
2005-06-24 08:43:43 +02:00
|
|
|
.if !empty(SYSLIBPATH)
|
2001-09-05 19:13:40 +02:00
|
|
|
hintdir="${WRKSRC}/hints"; \
|
|
|
|
for hints in $${hintdir}/*.sh; do \
|
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
|
|
|
{ ${ECHO} "glibpth='${SYSLIBPATH}'"; } >> $${hints}; \
|
2001-09-05 19:13:40 +02:00
|
|
|
done
|
|
|
|
.endif
|
|
|
|
|
2005-06-24 08:43:43 +02:00
|
|
|
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
|
|
|
|
PLIST_FILE_SED= -e "s,[ ].*,," -e "s,/\./,/,g" -e "s,${PREFIX}/,,"
|
|
|
|
PLIST_DIR_SED= ${PLIST_FILE_SED} \
|
|
|
|
-e "s,^,@unexec \${RMDIR} -p %D/," \
|
|
|
|
-e "s,/[^/]*$$, 2>/dev/null || ${TRUE}," \
|
2001-09-05 19:13:40 +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
|
|
|
INSTALLATION_DIRS= bin man/man1
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/perllink.in \
|
|
|
|
> ${WRKDIR}/perllink
|
|
|
|
|
2001-09-05 19:13:40 +02:00
|
|
|
post-install:
|
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
|
|
|
if ${TEST} -x ${PREFIX}/bin/a2p; then \
|
2004-01-05 23:15:14 +01:00
|
|
|
strip ${PREFIX}/bin/a2p; \
|
|
|
|
fi
|
2005-06-24 08:43:43 +02:00
|
|
|
eval `${PERL5} -V:installarchlib 2>/dev/null`; \
|
|
|
|
eval `${PERL5} -V:installsitearch 2>/dev/null`; \
|
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
|
|
|
eval `${PERL5} -V:installvendorarch 2>/dev/null`; \
|
2005-08-18 19:26:48 +02:00
|
|
|
${RMDIR} -p $$installsitearch 2>/dev/null || ${TRUE}; \
|
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
|
|
|
${RMDIR} -p $$installvendorarch 2>/dev/null || ${TRUE}; \
|
|
|
|
eval `${PERL5} -V:scriptdir 2>/dev/null`; \
|
|
|
|
eval `${PERL5} -V:man1dir 2>/dev/null`; \
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/perllink $$scriptdir/perllink; \
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/perllink.1 $$man1dir/perllink.1; \
|
|
|
|
${RM} -f ${PREFIX}/bin/perllink ${PREFIX}/man/man1/perllink.1; \
|
|
|
|
${LN} -s $$scriptdir/perllink ${PREFIX}/bin/perllink; \
|
|
|
|
${LN} -s $$man1dir/perllink.1 ${PREFIX}/man/man1/perllink.1; \
|
2005-06-24 08:43:43 +02:00
|
|
|
packlist="$$installarchlib/.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
|
|
|
{ ${CAT} ${PKGDIR}/PLIST; \
|
2005-06-24 08:43:43 +02:00
|
|
|
${ECHO} "@comment The following lines are automatically generated"; \
|
|
|
|
${ECHO} "@comment from the installed .packlist files."; \
|
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
|
|
|
{ ${ECHO} "$$packlist"; ${CAT} $$packlist; \
|
|
|
|
${ECHO} "$$scriptdir/perllink"; \
|
|
|
|
${ECHO} "$$man1dir/perllink.1"; \
|
|
|
|
} | ${SED} ${PLIST_FILE_SED} | ${SORT} -u; \
|
|
|
|
{ ${ECHO} "$$packlist"; ${CAT} $$packlist; \
|
|
|
|
${ECHO} "$$scriptdir/perllink"; \
|
|
|
|
${ECHO} "$$man1dir/perllink.1"; \
|
|
|
|
} | ${SED} ${PLIST_DIR_SED} | ${SORT} -ur; \
|
|
|
|
} > ${PLIST_SRC}
|
2005-06-24 08:43:43 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|