2019-11-03 20:03:56 +01:00
|
|
|
# $NetBSD: module.mk,v 1.74 2019/11/03 19:04:05 rillig Exp $
|
2002-09-23 10:56:13 +02:00
|
|
|
#
|
|
|
|
# This Makefile fragment is intended to be included by packages that build
|
|
|
|
# and install perl5 modules.
|
|
|
|
#
|
|
|
|
# The following targets are provided by this file:
|
|
|
|
#
|
2002-09-26 14:31:28 +02:00
|
|
|
# perl5-configure runs the standard perl configuration in
|
2002-09-23 10:56:13 +02:00
|
|
|
# each of the directories specified in
|
|
|
|
# ${PERL5_CONFIGURE_DIRS}.
|
|
|
|
#
|
2002-09-26 14:31:28 +02:00
|
|
|
# do-configure runs the perl5-configure target; if PERL5_CONFIGURE
|
|
|
|
# is set to "YES", then this target overrides the
|
|
|
|
# default do-configure provided by bsd.pkg.mk.
|
|
|
|
#
|
2002-09-23 10:56:13 +02:00
|
|
|
# The following variables may be set prior to including this file:
|
|
|
|
#
|
2002-09-26 14:31:28 +02:00
|
|
|
# PERL5_CONFIGURE if "YES", then for do-configure, run the standard
|
|
|
|
# perl configuration assuming Makefile.PL exists;
|
2002-09-23 10:56:13 +02:00
|
|
|
# defaults to "YES".
|
|
|
|
#
|
|
|
|
# PERL5_CONFIGURE_DIRS list of directories in which to run the
|
|
|
|
# standard perl configuration; defaults to
|
|
|
|
# ${CONFIGURE_DIRS}.
|
|
|
|
#
|
|
|
|
# PERL5_LDFLAGS extra linker flags to pass on to the build
|
|
|
|
# process.
|
2005-02-21 13:08:45 +01:00
|
|
|
#
|
2016-02-06 01:46:11 +01:00
|
|
|
# PERL5_MODULE_TYPE "MakeMaker", "Module::Build", "Module::Build::Bundled",
|
|
|
|
# "Module::Build::Tiny", "Module::Install", or
|
|
|
|
# "Module::Install::Bundled" depending on which framework
|
|
|
|
# is used to build/install the module.
|
2018-01-07 12:40:57 +01:00
|
|
|
#
|
|
|
|
# See also:
|
|
|
|
# PERL5_PACKLIST
|
|
|
|
#
|
|
|
|
# Keywords: perl perl5
|
2009-06-11 12:32:29 +02:00
|
|
|
|
|
|
|
.include "../../lang/perl5/license.mk"
|
2002-09-23 10:56:13 +02:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
.if !defined(PERL5_MODULE_MK)
|
|
|
|
PERL5_MODULE_MK= # defined
|
2002-09-23 10:56:13 +02:00
|
|
|
|
2003-09-13 01:39:42 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-02-24 23:38:41 +01:00
|
|
|
PERL5_MODULE_TYPE?= MakeMaker
|
|
|
|
|
2005-02-26 01:04:48 +01:00
|
|
|
.if (${PERL5_MODULE_TYPE} != "MakeMaker") && \
|
2009-06-11 12:32:29 +02:00
|
|
|
(${PERL5_MODULE_TYPE} != "Module::Build") && \
|
2014-02-16 23:40:57 +01:00
|
|
|
(${PERL5_MODULE_TYPE} != "Module::Build::Bundled") && \
|
2013-07-03 09:16:39 +02:00
|
|
|
(${PERL5_MODULE_TYPE} != "Module::Build::Tiny") && \
|
2010-01-16 16:02:14 +01:00
|
|
|
(${PERL5_MODULE_TYPE} != "Module::Install") && \
|
|
|
|
(${PERL5_MODULE_TYPE} != "Module::Install::Bundled")
|
2005-02-26 01:04:48 +01:00
|
|
|
PKG_FAIL_REASON+= "\`\`${PERL5_MODULE_TYPE}'' is not a supported PERL5_MODULE_TYPE."
|
|
|
|
.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
|
|
|
# Default test target for Perl modules
|
|
|
|
TEST_TARGET?= test
|
|
|
|
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2014-02-16 23:40:57 +01:00
|
|
|
.if ${PERL5_MODULE_TYPE} == "Module::Build" || \
|
2014-02-17 05:28:45 +01:00
|
|
|
${PERL5_MODULE_TYPE} == "Module::Build::Bundled" || \
|
2014-02-16 23:40:57 +01:00
|
|
|
${PERL5_MODULE_TYPE} == "Module::Build::Tiny"
|
2010-08-27 07:27:37 +02:00
|
|
|
PERL5_MODTYPE= modbuild
|
2019-11-03 20:03:56 +01:00
|
|
|
PERL5_MODBUILD_DESTDIR_OPTION= --destdir ${DESTDIR:Q}
|
2014-02-16 23:40:57 +01:00
|
|
|
.elif ${PERL5_MODULE_TYPE} == "Module::Install" || \
|
|
|
|
${PERL5_MODULE_TYPE} == "Module::Install::Bundled"
|
2010-08-27 07:27:37 +02:00
|
|
|
PERL5_MODTYPE= modinst
|
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
|
|
|
.elif ${PERL5_MODULE_TYPE} == "MakeMaker"
|
2010-08-27 07:27:37 +02:00
|
|
|
PERL5_MODTYPE= makemaker
|
2003-09-13 01:39:42 +02:00
|
|
|
.endif
|
2002-09-23 10:56:13 +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
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
###
|
|
|
|
### Add the proper dependencies for using the specified module build
|
|
|
|
### system.
|
|
|
|
###
|
|
|
|
|
|
|
|
BUILDLINK_DEPMETHOD.perl+= full
|
|
|
|
.include "../../lang/perl5/buildlink3.mk"
|
|
|
|
|
|
|
|
.if empty(PKGPATH:Mdevel/p5-Module-Build) && \
|
2005-02-24 23:38:41 +01:00
|
|
|
(${PERL5_MODULE_TYPE} == "Module::Build")
|
2014-02-16 23:40:57 +01:00
|
|
|
BUILD_DEPENDS+= p5-Module-Build>=0.42050:../../devel/p5-Module-Build
|
2005-02-21 13:08:45 +01:00
|
|
|
.endif
|
|
|
|
|
2013-07-03 09:16:39 +02:00
|
|
|
.if empty(PKGPATH:Mdevel/p5-Module-Build-Tiny) && \
|
|
|
|
(${PERL5_MODULE_TYPE} == "Module::Build::Tiny")
|
|
|
|
BUILD_DEPENDS+= p5-Module-Build-Tiny>=0.23:../../devel/p5-Module-Build-Tiny
|
|
|
|
.endif
|
|
|
|
|
2009-06-11 12:32:29 +02:00
|
|
|
.if empty(PKGPATH:Mdevel/p5-Module-Install) && \
|
|
|
|
(${PERL5_MODULE_TYPE} == "Module::Install")
|
|
|
|
BUILD_DEPENDS+= p5-Module-Install>=0.91:../../devel/p5-Module-Install
|
|
|
|
.endif
|
|
|
|
|
2005-02-24 23:38:41 +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
|
|
|
###########################################################################
|
|
|
|
###
|
|
|
|
### Target definitions (configure, build, install, etc.)
|
|
|
|
###
|
|
|
|
|
|
|
|
PERL5_CONFIGURE?= yes
|
2002-09-23 10:56:13 +02:00
|
|
|
PERL5_CONFIGURE_DIRS?= ${CONFIGURE_DIRS}
|
|
|
|
|
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
|
|
|
MAKE_ENV+= LC_ALL=C
|
2010-08-27 07:27:37 +02:00
|
|
|
MAKE_ENV+= PERL_MM_USE_DEFAULT=1
|
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
|
|
|
|
|
|
|
# All pkgsrc-installed Perl modules are installed into the "vendor"
|
2003-09-13 10:25:03 +02:00
|
|
|
# directories.
|
|
|
|
#
|
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
|
|
|
MAKE_PARAMS.makemaker+= INSTALLDIRS=vendor
|
2013-07-03 09:16:39 +02:00
|
|
|
MAKE_PARAMS.modbuild+= --installdirs=vendor
|
2009-06-11 12:32:29 +02:00
|
|
|
MAKE_PARAMS.modinst+= installdirs=vendor
|
2003-12-03 18:29:12 +01:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
MAKE_PARAMS+= ${MAKE_PARAMS.${PERL5_MODTYPE}}
|
2005-02-21 13:08: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
|
|
|
.PHONY: do-makemaker-configure
|
|
|
|
do-makemaker-configure:
|
2009-05-16 09:22:01 +02:00
|
|
|
${RUN} \
|
2002-09-23 10:56:13 +02:00
|
|
|
for dir in ${PERL5_CONFIGURE_DIRS}; do \
|
2006-10-05 00:24:49 +02:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
if ${TEST} -f "$$dir"/Makefile.PL; then \
|
|
|
|
cd "$$dir"; \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
2007-11-18 22:44:56 +01:00
|
|
|
${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL ${MAKE_PARAMS}; \
|
2002-09-23 10:56:13 +02:00
|
|
|
fi; \
|
|
|
|
done
|
2002-09-26 14:31:28 +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
|
|
|
.PHONY: do-modbuild-configure
|
|
|
|
do-modbuild-configure:
|
2009-05-16 09:22:01 +02:00
|
|
|
${RUN} \
|
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
|
|
|
for dir in ${PERL5_CONFIGURE_DIRS}; do \
|
2006-10-05 00:24:49 +02:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
if ${TEST} -f "$$dir"/Build.PL; then \
|
|
|
|
cd "$$dir"; \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
2007-11-18 22:44:56 +01:00
|
|
|
${BUILDLINK_PREFIX.perl}/bin/perl Build.PL ${MAKE_PARAMS}; \
|
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
|
|
|
fi; \
|
|
|
|
done
|
2003-09-13 01:39:42 +02:00
|
|
|
|
2009-06-11 12:32:29 +02:00
|
|
|
.PHONY: do-modinst-configure
|
|
|
|
do-modinst-configure:
|
2010-01-16 16:02:14 +01:00
|
|
|
.if ${PERL5_MODULE_TYPE} == "Module::Install"
|
2009-06-11 12:32:29 +02:00
|
|
|
${RUN} \
|
|
|
|
for dir in ${PERL5_CONFIGURE_DIRS}; do \
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
if ${TEST} -d "$$dir"/inc/Module; then \
|
|
|
|
${RM} -rf "$$dir"/inc/Module; \
|
|
|
|
fi; \
|
|
|
|
if ${TEST} -f "$$dir"/Makefile.PL; then \
|
|
|
|
cd "$$dir"; \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
|
|
|
${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS}; \
|
|
|
|
fi; \
|
|
|
|
done
|
2010-01-16 16:02:14 +01:00
|
|
|
.else
|
|
|
|
${RUN} \
|
|
|
|
for dir in ${PERL5_CONFIGURE_DIRS}; do \
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
if ${TEST} -f "$$dir"/Makefile.PL; then \
|
|
|
|
cd "$$dir"; \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
|
|
|
${BUILDLINK_PREFIX.perl}/bin/perl Makefile.PL --skipdeps ${MAKE_PARAMS}; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
.endif
|
2009-06-11 12:32:29 +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
|
|
|
.PHONY: perl5-configure
|
2010-08-27 07:27:37 +02:00
|
|
|
perl5-configure: do-${PERL5_MODTYPE}-configure
|
2005-02-21 13:08: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
|
|
|
.if !empty(PERL5_CONFIGURE:M[yY][eE][sS])
|
|
|
|
do-configure: perl5-configure
|
2005-02-21 13:08:45 +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
|
|
|
.PHONY: do-modbuild-build
|
|
|
|
do-modbuild-build:
|
2012-10-10 11:27:12 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build ${BUILD_PARAMS}
|
2005-02-21 13:08: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
|
|
|
.PHONY: do-modbuild-test
|
|
|
|
do-modbuild-test:
|
2012-10-10 11:27:12 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build test ${BUILD_PARAMS}
|
2005-02-21 13:08: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
|
|
|
.PHONY: do-modbuild-install
|
|
|
|
do-modbuild-install:
|
2012-10-10 11:27:12 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./Build install ${PERL5_MODBUILD_DESTDIR_OPTION} ${BUILD_PARAMS}
|
2003-09-13 15:53:31 +02:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
.if target(do-${PERL5_MODTYPE}-build) && !defined(NO_BUILD)
|
|
|
|
do-build: do-${PERL5_MODTYPE}-build
|
|
|
|
do-test: do-${PERL5_MODTYPE}-test
|
2006-10-04 23:31:34 +02:00
|
|
|
.endif
|
2010-08-27 07:27:37 +02:00
|
|
|
.if target(do-${PERL5_MODTYPE}-install)
|
|
|
|
do-install: do-${PERL5_MODTYPE}-install
|
2006-10-04 23:31:34 +02:00
|
|
|
.endif
|
2002-09-23 10:56:13 +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
|
|
|
|
|
|
|
###########################################################################
|
|
|
|
###
|
|
|
|
### Make variable overrides
|
|
|
|
###
|
2003-11-25 18:45:56 +01:00
|
|
|
|
2004-01-21 10:40:49 +01:00
|
|
|
# MakeMaker provides two hooks, OPTIMIZE and OTHERLDFLAGS, to
|
2003-11-27 05:11:40 +01:00
|
|
|
# customize the arguments passed to the preprocessor and linker,
|
|
|
|
# respectively.
|
2003-11-25 18:45:56 +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
|
|
|
PERL5_MAKE_FLAGS.makemaker+= OPTIMIZE=${CFLAGS:Q}" "${CPPFLAGS:Q}
|
2003-11-25 18:45:56 +01:00
|
|
|
.if ${OBJECT_FMT} == "a.out"
|
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_MAKE_FLAGS.makemaker+= OTHERLDFLAGS=${LDFLAGS:S/-Wl,//g:Q}
|
2003-11-25 18:45:56 +01: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_MAKE_FLAGS.makemaker+= OTHERLDFLAGS=${LDFLAGS:Q}
|
2002-09-23 10:56:13 +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
|
|
|
# Repoint all of the vendor-specific variables to be under the perl5
|
|
|
|
# module's ${PREFIX}.
|
|
|
|
#
|
|
|
|
.include "../../lang/perl5/vars.mk"
|
|
|
|
.for _var_ in ${_PERL5_VARS}
|
|
|
|
PERL5_MAKE_FLAGS.makemaker+= ${_var_}=${PERL5_${_var_}:Q}
|
|
|
|
.endfor
|
|
|
|
#
|
2010-08-27 07:27:37 +02:00
|
|
|
# The PREFIX in the generated Makefile will point to ${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
|
|
|
# so override its value to the module's ${PREFIX}.
|
2010-05-09 20:46:34 +02:00
|
|
|
# Also, set VENDORARCHEXP, so existing .packlist won't be read.
|
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
|
|
|
#
|
2011-08-05 20:06:14 +02:00
|
|
|
PERL5_MAKE_FLAGS.makemaker+= PREFIX=${PREFIX:Q} VENDORARCHEXP=${DESTDIR}${PERL5_INSTALLVENDORARCH}
|
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
|
|
|
PERL5_MAKE_FLAGS+= ${PERL5_MAKE_FLAGS.${PERL5_MODTYPE}}
|
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
|
|
|
MAKE_FLAGS+= ${PERL5_MAKE_FLAGS}
|
|
|
|
|
|
|
|
.if defined(PERL5_LDFLAGS) && !empty(PERL5_LDFLAGS)
|
2010-08-27 07:27:37 +02:00
|
|
|
#FIX_RPATH+= PERL5_LDFLAGS
|
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
|
|
|
LDFLAGS+= ${PERL5_LDFLAGS}
|
|
|
|
.endif
|
|
|
|
|
2005-10-19 06:40:23 +02:00
|
|
|
.include "../../lang/perl5/packlist.mk"
|
2002-09-23 10:56:13 +02:00
|
|
|
|
2010-08-27 07:27:37 +02:00
|
|
|
.endif # PERL5_MODULE_MK
|