2013-04-22 14:40:10 +02:00
|
|
|
# Created by: markm
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= perl
|
2009-03-05 20:16:30 +01:00
|
|
|
PORTVERSION= ${PERL_VERSION}
|
2014-05-27 00:55:50 +02:00
|
|
|
PORTREVISION= 7
|
1997-04-20 15:53:29 +02:00
|
|
|
CATEGORIES= lang devel perl5
|
2008-04-17 16:30:31 +02:00
|
|
|
MASTER_SITES= CPAN \
|
2002-07-21 19:09:12 +02:00
|
|
|
${MASTER_SITE_LOCAL:S/$/:local/} \
|
2009-01-13 22:38:50 +01:00
|
|
|
http://protey.ru/freebsd/distfiles/:local
|
2002-05-20 02:03:07 +02:00
|
|
|
MASTER_SITE_SUBDIR= ../../src \
|
2009-01-13 22:38:50 +01:00
|
|
|
skv/:local
|
2002-05-20 02:03:07 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2009-02-15 23:42:37 +01:00
|
|
|
BSDPAN-${BSDPAN_VERSION}${EXTRACT_SUFX}:local
|
2009-01-13 22:38:50 +01:00
|
|
|
DIST_SUBDIR= perl
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2013-04-22 14:40:10 +02:00
|
|
|
MAINTAINER= perl@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Practical Extraction and Report Language
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2010-11-05 11:23:25 +01:00
|
|
|
LICENSE= ART10 GPLv1
|
2010-11-05 16:29:11 +01:00
|
|
|
LICENSE_COMB= dual
|
2014-05-27 00:55:50 +02:00
|
|
|
LICENSE_FILE_ART10= ${WRKSRC}/Artistic
|
|
|
|
LICENSE_FILE_GPLv1= ${WRKSRC}/Copying
|
2010-11-05 11:23:25 +01:00
|
|
|
|
2014-05-27 21:41:58 +02:00
|
|
|
CONFLICTS_INSTALL= perl5.*-*
|
2008-11-20 17:24:37 +01:00
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
OPTIONS_DEFINE= DEBUG GDBM PERL_MALLOC PERL_64BITINT THREADS PTHREAD \
|
2013-05-08 16:52:55 +02:00
|
|
|
MULTIPLICITY SITECUSTOMIZE USE_PERL
|
2013-11-18 17:46:54 +01:00
|
|
|
OPTIONS_DEFAULT= PERL_64BITINT THREADS PTHREAD USE_PERL
|
2013-10-03 10:21:29 +02:00
|
|
|
OPTIONS_SUB=
|
2013-05-06 08:06:49 +02:00
|
|
|
GDBM_DESC= GDBM_File extension
|
|
|
|
PERL_MALLOC_DESC= Use Perl malloc
|
|
|
|
PERL_64BITINT_DESC= Use 64 bit integers (on i386)
|
|
|
|
THREADS_DESC= Build threaded perl
|
|
|
|
PTHREAD_DESC= Build with -pthread
|
|
|
|
MULTIPLICITY_DESC= Use multiplicity
|
|
|
|
SITECUSTOMIZE_DESC= Run-time customization of @INC
|
|
|
|
USE_PERL_DESC= Rewrite links in /usr/bin
|
2008-11-20 17:24:37 +01:00
|
|
|
|
2014-03-06 17:32:42 +01:00
|
|
|
PORTSCOUT= limit:^${PERL_VER}.
|
2009-11-02 17:50:41 +01:00
|
|
|
|
2014-05-27 14:19:24 +02:00
|
|
|
# Remember to update Mk/Uses/perl5.mk too.
|
2013-06-12 15:00:55 +02:00
|
|
|
PERL_VERSION= 5.14.4
|
|
|
|
PERL_VER= ${PERL_VERSION:C/\.[0-9]+$//}
|
Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable. The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.
Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port. Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it). The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin. Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf. Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source. The
switching to the system version is more or less a reverse of the process
described above.
Set and use PERL_ARCH which is independed from the one used by the
system perl.
Fix the port for post-malloc.h -current.
Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).
Reviewed by: markm, joe
2001-12-19 18:05:05 +01:00
|
|
|
PERL_ARCH= mach
|
2013-06-12 15:00:55 +02:00
|
|
|
SITE_PERL_REL?= lib/perl5/site_perl/${PERL_VER}
|
2014-04-01 00:26:09 +02:00
|
|
|
SITE_PERL?= ${PREFIX}/${SITE_PERL_REL}
|
2001-04-10 21:57:49 +02:00
|
|
|
|
2014-04-07 18:27:14 +02:00
|
|
|
USES= tar:bzip2
|
2001-03-22 16:17:46 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT=Configure
|
|
|
|
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
|
2013-06-12 15:00:55 +02:00
|
|
|
-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
|
|
|
|
-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
|
|
|
|
-Dman3dir=${PREFIX}/lib/perl5/${PERL_VER}/perl/man/man3 \
|
2003-11-25 19:48:26 +01:00
|
|
|
-Dman1dir=${PREFIX}/man/man1 \
|
2004-05-31 01:13:56 +02:00
|
|
|
-Dsitearch=${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH} \
|
|
|
|
-Dsitelib=${PREFIX}/${SITE_PERL_REL} -Dscriptdir=${PREFIX}/bin \
|
2013-06-12 15:00:55 +02:00
|
|
|
-Dsiteman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
|
2004-05-31 01:13:56 +02:00
|
|
|
-Dsiteman1dir=${PREFIX}/man/man1 \
|
2002-07-28 11:14:17 +02:00
|
|
|
-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
|
2009-01-13 22:38:50 +01:00
|
|
|
-Dcc="${CC}" -Duseshrplib -Dinc_version_list=none \
|
2002-07-21 19:09:12 +02:00
|
|
|
-Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
|
2005-02-14 11:17:07 +01:00
|
|
|
LOCALE_CLEANUP= LANG="" LC_ALL="" LC_COLLATE="" LC_CTYPE="" \
|
|
|
|
LC_MESSAGES="" LC_MONETARY="" LC_NUMERIC="" \
|
|
|
|
LC_TIME=""
|
2010-12-11 18:46:13 +01:00
|
|
|
CONFIGURE_ENV+= ${LOCALE_CLEANUP} UNAME_v="$$(uname -v | sed 'y/=/ /')"
|
2005-02-14 11:17:07 +01:00
|
|
|
MAKE_ENV+= ${LOCALE_CLEANUP}
|
2003-10-27 20:48:03 +01:00
|
|
|
|
2014-02-12 14:46:07 +01:00
|
|
|
SUB_LIST+= PERL_VERSION=${PERL_VERSION} \
|
|
|
|
PERL_VER=${PERL_VER} \
|
|
|
|
PERL_ARCH=${PERL_ARCH}
|
|
|
|
|
|
|
|
SUB_FILES= perl5_version use.perl perl-man.conf
|
|
|
|
|
|
|
|
PKGINSTALL= ${WRKDIR}/use.perl
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/use.perl
|
|
|
|
|
2004-05-31 01:13:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2013-10-23 12:29:05 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
|
|
|
|
|
|
|
|
# if this port is default due PERL5_DEFAULT
|
|
|
|
# change PKGNAME to reflect this
|
|
|
|
.if ${PERL_VER} == ${PERL5_DEFAULT}
|
|
|
|
PKGNAMESUFFIX= ${PERL_VERSION:C/\.[0-9]+\.[0-9]+$//}
|
|
|
|
.else
|
|
|
|
# make PKGNAME unique among other lang/perl5.x
|
|
|
|
PKGNAMESUFFIX= ${PERL_VER}
|
|
|
|
# always add default perl5 pkgname to conflicts
|
2013-10-23 12:51:03 +02:00
|
|
|
CONFLICTS_INSTALL+= perl5-*
|
2013-10-23 12:29:05 +02:00
|
|
|
.endif
|
2004-05-31 01:13:56 +02:00
|
|
|
|
2013-05-08 16:52:55 +02:00
|
|
|
.if defined(PERL_VENDOR_PREFIX)
|
2009-06-08 16:35:28 +02:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
-Dvendorprefix=${PERL_VENDOR_PREFIX} \
|
2013-06-12 15:00:55 +02:00
|
|
|
-Dvendorarch=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
|
2009-06-08 16:35:28 +02:00
|
|
|
-Dvendorbin=${PERL_VENDOR_PREFIX}/bin \
|
2013-06-12 15:00:55 +02:00
|
|
|
-Dvendorlib=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER} \
|
|
|
|
-Dvendorman3dir=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
|
2009-06-08 16:35:28 +02:00
|
|
|
-Dvendorman1dir=${PERL_VENDOR_PREFIX}/man/man1
|
|
|
|
.endif
|
|
|
|
|
2014-02-10 11:19:32 +01:00
|
|
|
# http://perl5.git.perl.org/perl.git/commit/b83080de5c4254
|
|
|
|
# PERLIOBUF_DEFAULT_BUFSIZ size in bytes (default: 8192 bytes)
|
|
|
|
.if defined(PERLIOBUF_DEFAULT_BUFSIZ)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
-Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=${PERLIOBUF_DEFAULT_BUFSIZ}
|
|
|
|
.endif
|
|
|
|
|
2013-10-03 10:21:29 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VER}/perl
|
|
|
|
MANDIRS+= ${MAN3PREFIX}
|
|
|
|
|
2007-09-08 03:12:10 +02:00
|
|
|
PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
|
2013-06-12 15:00:55 +02:00
|
|
|
PERL_VER=${PERL_VER} \
|
2007-09-08 03:12:10 +02:00
|
|
|
PERL_ARCH=${PERL_ARCH} \
|
2014-04-01 00:26:09 +02:00
|
|
|
MAN3=${MAN3PREFIX:S|^${PREFIX}/||}/man/man3 \
|
|
|
|
SITE_PERL=${SITE_PERL:S|^${PREFIX}/||}
|
2007-09-08 03:12:10 +02:00
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2005-06-24 11:17:06 +02:00
|
|
|
CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING
|
2006-02-20 21:24:36 +01:00
|
|
|
STRIP=
|
|
|
|
STRIP_CMD= ${TRUE}
|
2005-06-24 11:17:06 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MGDBM}
|
2002-07-28 11:14:17 +02:00
|
|
|
CONFIGURE_ARGS+= -Di_gdbm
|
2013-10-03 15:30:29 +02:00
|
|
|
LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm
|
2002-07-28 11:14:17 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Ui_gdbm
|
|
|
|
.endif
|
|
|
|
|
2010-11-05 06:41:37 +01:00
|
|
|
.if ${OSVERSION} >= 900022
|
|
|
|
PLIST_SUB+= MANCONF=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MANCONF="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MTHREADS}
|
2005-06-24 11:17:06 +02:00
|
|
|
#XXX .if ${ARCH} == "amd64"
|
|
|
|
#XXX IGNORE= Threaded perl does not pass tests on ${ARCH}
|
|
|
|
#XXX .endif
|
2003-04-01 14:29:12 +02:00
|
|
|
CONFIGURE_ARGS+= -Dusethreads=y
|
2012-02-15 03:03:29 +01:00
|
|
|
WITH_PTHREAD= yes
|
2003-10-27 20:48:03 +01:00
|
|
|
# it seems perl malloc has problems with threaded perl on FreeBSD
|
2013-05-06 08:06:49 +02:00
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
|
|
|
|
PORT_OPTIONS:= ${PORT_OPTIONS:NPERL_MALLOC}
|
2003-04-01 14:29:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Dusethreads=n
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL_MALLOC}
|
2003-10-27 20:48:03 +01:00
|
|
|
CONFIGURE_ARGS+= -Dusemymalloc=y
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Dusemymalloc=n
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL_64BITINT}
|
2004-07-25 13:25:11 +02:00
|
|
|
CONFIGURE_ARGS+= -Duse64bitint
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MMULTIPLICITY}
|
2009-07-06 14:16:08 +02:00
|
|
|
CONFIGURE_ARGS+= -Dusemultiplicity=y
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MSITECUSTOMIZE}
|
2009-01-13 22:38:50 +01:00
|
|
|
CONFIGURE_ARGS+= -Dusesitecustomize
|
|
|
|
.endif
|
|
|
|
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MUSE_PERL}
|
2009-11-02 17:50:41 +01:00
|
|
|
LINK_USRBIN= yes
|
|
|
|
.else
|
|
|
|
LINK_USRBIN= no
|
|
|
|
.endif
|
2014-02-12 14:46:07 +01:00
|
|
|
SUB_LIST+= LINK_USRBIN=${LINK_USRBIN}
|
2009-11-02 17:50:41 +01:00
|
|
|
|
2013-06-12 15:00:55 +02:00
|
|
|
BSDPAN_DEST= ${PREFIX}/lib/perl5/${PERL_VER}/BSDPAN
|
Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable. The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.
Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port. Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it). The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin. Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf. Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source. The
switching to the system version is more or less a reverse of the process
described above.
Set and use PERL_ARCH which is independed from the one used by the
system perl.
Fix the port for post-malloc.h -current.
Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).
Reviewed by: markm, joe
2001-12-19 18:05:05 +01:00
|
|
|
BSDPAN_FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm \
|
Update to 5.8.6. Also:
- redirect output from h2ph to /dev/null [1];
- fix File::Path insecure file/directory permissions [2];
this resolves CAN-2004-0452
(http://vuxml.freebsd.org/c418d472-6bd1-11d9-93ca-000a95bc6fae.html);
- for OSVERSION < 500036, create symlinks in /usr/bin not only for
perl and suidperl, but also for a2p, c2ph, find2perl, h2ph, h2xs,
perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man,
pod2text, s2p, and splain; perl and suidperl are still enough for
more recent FreeBSD versions [3];
- clean up created symlinks upon deinstallation [4];
- try to cleanup symlinks created by older versions of lang/perl5 and
lang/perl5.8, during both installation and deinstallation [5];
- added support for DISABLE_BSDPAN environment variable [6];
- be explicit about use.perl usage after installation of 4.X systems
[7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- fix threaded build - respect PTHREAD_CFLAGS and PTHREAD_LIBS [9].
- use.perl is now the same as pkg-install is now the same as
pkg-deinstall; apart from the changes already mentioned above, this
is a shell script now;
- use.perl's logic is also simplified in several ways [10];
- fix a BSDPAN bug [11].
Outstanding issues: Module::Build support for BSDPAN, SU_CMD support (PR
70831), PR 64963 (partially), and anything else that I forgot.
[1] Nudged by: krion
[2] Reported by: nectar
Patch from: Chris Turner @ RedHat
[3] PR: 55760, 57151, 58406
[4] Requested by: kris
PR: 54262
[5] PR: 51281, 51539
[6] PR: 57134
[7] PR: 60736
[8] PR: 74431
[9] PR: 73233
[10] Perl version submitted by des, implemented in sh
[11] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
2005-02-01 14:36:21 +01:00
|
|
|
ExtUtils/MM_Unix.pm \
|
|
|
|
ExtUtils/MakeMaker.pm \
|
|
|
|
ExtUtils/Packlist.pm
|
2011-11-10 11:28:25 +01:00
|
|
|
BSDPAN_VERSION= 20111107
|
2009-02-16 08:27:41 +01:00
|
|
|
BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${BSDPAN_VERSION}
|
Update to 5.8.6. Also:
- redirect output from h2ph to /dev/null [1];
- fix File::Path insecure file/directory permissions [2];
this resolves CAN-2004-0452
(http://vuxml.freebsd.org/c418d472-6bd1-11d9-93ca-000a95bc6fae.html);
- for OSVERSION < 500036, create symlinks in /usr/bin not only for
perl and suidperl, but also for a2p, c2ph, find2perl, h2ph, h2xs,
perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man,
pod2text, s2p, and splain; perl and suidperl are still enough for
more recent FreeBSD versions [3];
- clean up created symlinks upon deinstallation [4];
- try to cleanup symlinks created by older versions of lang/perl5 and
lang/perl5.8, during both installation and deinstallation [5];
- added support for DISABLE_BSDPAN environment variable [6];
- be explicit about use.perl usage after installation of 4.X systems
[7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- fix threaded build - respect PTHREAD_CFLAGS and PTHREAD_LIBS [9].
- use.perl is now the same as pkg-install is now the same as
pkg-deinstall; apart from the changes already mentioned above, this
is a shell script now;
- use.perl's logic is also simplified in several ways [10];
- fix a BSDPAN bug [11].
Outstanding issues: Module::Build support for BSDPAN, SU_CMD support (PR
70831), PR 64963 (partially), and anything else that I forgot.
[1] Nudged by: krion
[2] Reported by: nectar
Patch from: Chris Turner @ RedHat
[3] PR: 55760, 57151, 58406
[4] Requested by: kris
PR: 54262
[5] PR: 51281, 51539
[6] PR: 57134
[7] PR: 60736
[8] PR: 74431
[9] PR: 73233
[10] Perl version submitted by des, implemented in sh
[11] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
2005-02-01 14:36:21 +01:00
|
|
|
|
Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable. The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.
Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port. Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it). The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin. Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf. Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source. The
switching to the system version is more or less a reverse of the process
described above.
Set and use PERL_ARCH which is independed from the one used by the
system perl.
Fix the port for post-malloc.h -current.
Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).
Reviewed by: markm, joe
2001-12-19 18:05:05 +01:00
|
|
|
post-patch:
|
2013-06-12 15:00:55 +02:00
|
|
|
${SED} -i '' -e 's|%%PERL_PKGNAME%%|${PKGNAME}|g; s|%%PERL_VER%%|${PERL_VER}|g;' \
|
2010-07-14 19:24:21 +02:00
|
|
|
-e 's!%%BSDPAN_VERSION%%!${BSDPAN_VERSION}!g;' \
|
2009-03-03 17:21:02 +01:00
|
|
|
${BSDPAN_WRKSRC}/ExtUtils/*.pm
|
2009-06-08 16:35:28 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
2010-07-15 14:45:00 +02:00
|
|
|
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
|
2013-05-06 08:06:49 +02:00
|
|
|
.if ${PORT_OPTIONS:MPTHREAD}
|
Update to 5.8.6. Also:
- redirect output from h2ph to /dev/null [1];
- fix File::Path insecure file/directory permissions [2];
this resolves CAN-2004-0452
(http://vuxml.freebsd.org/c418d472-6bd1-11d9-93ca-000a95bc6fae.html);
- for OSVERSION < 500036, create symlinks in /usr/bin not only for
perl and suidperl, but also for a2p, c2ph, find2perl, h2ph, h2xs,
perlbug, perlcc, perldoc, pl2pm, pod2html, pod2latex, pod2man,
pod2text, s2p, and splain; perl and suidperl are still enough for
more recent FreeBSD versions [3];
- clean up created symlinks upon deinstallation [4];
- try to cleanup symlinks created by older versions of lang/perl5 and
lang/perl5.8, during both installation and deinstallation [5];
- added support for DISABLE_BSDPAN environment variable [6];
- be explicit about use.perl usage after installation of 4.X systems
[7];
- respect __MAKE_CONF partially (the build-time value is used) [8];
- fix threaded build - respect PTHREAD_CFLAGS and PTHREAD_LIBS [9].
- use.perl is now the same as pkg-install is now the same as
pkg-deinstall; apart from the changes already mentioned above, this
is a shell script now;
- use.perl's logic is also simplified in several ways [10];
- fix a BSDPAN bug [11].
Outstanding issues: Module::Build support for BSDPAN, SU_CMD support (PR
70831), PR 64963 (partially), and anything else that I forgot.
[1] Nudged by: krion
[2] Reported by: nectar
Patch from: Chris Turner @ RedHat
[3] PR: 55760, 57151, 58406
[4] Requested by: kris
PR: 54262
[5] PR: 51281, 51539
[6] PR: 57134
[7] PR: 60736
[8] PR: 74431
[9] PR: 73233
[10] Perl version submitted by des, implemented in sh
[11] Reported by: Alexander Nagilum <freebsd %at% nagilum de>
2005-02-01 14:36:21 +01:00
|
|
|
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
|
|
|
|
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
|
|
|
|
${WRKSRC}/hints/freebsd.sh
|
2006-02-20 21:24:36 +01:00
|
|
|
.else
|
|
|
|
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \
|
|
|
|
-e 's|%%PTHREAD_CFLAGS%%||g;' \
|
|
|
|
${WRKSRC}/hints/freebsd.sh
|
|
|
|
.endif
|
Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable. The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.
Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port. Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it). The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin. Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf. Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source. The
switching to the system version is more or less a reverse of the process
described above.
Set and use PERL_ARCH which is independed from the one used by the
system perl.
Fix the port for post-malloc.h -current.
Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).
Reviewed by: markm, joe
2001-12-19 18:05:05 +01:00
|
|
|
|
1995-04-23 19:21:34 +02:00
|
|
|
post-install:
|
2014-04-01 00:26:09 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/man/man3
|
|
|
|
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto
|
|
|
|
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/machine
|
|
|
|
${MKDIR} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/sys
|
|
|
|
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
|
|
|
|
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
|
2014-02-12 14:46:07 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc
|
2010-11-05 06:41:37 +01:00
|
|
|
.if ${OSVERSION} >= 900022
|
2014-02-12 14:46:07 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PERL_VER}.conf
|
2010-11-05 06:41:37 +01:00
|
|
|
.endif
|
2003-10-27 20:48:03 +01:00
|
|
|
.for files in ${BSDPAN_FILES}
|
2014-04-01 00:26:09 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${BSDPAN_DEST}/${files:H}
|
2013-10-03 10:21:29 +02:00
|
|
|
${INSTALL_DATA} \
|
|
|
|
${BSDPAN_WRKSRC}/${files} ${STAGEDIR}${BSDPAN_DEST}/${files}
|
Unforbid the port for the use of general FreeBSD public.
Compile perl with BSDPAN support, both -current and -stable. The
version of BSDPAN used here coincides accidentally with the one present
in the -current system perl, but is installed in a different place.
Provide a script, use.perl, to facilitate switching of the perl used by
default between the system perl and this port. Also print a message
describing the usage of use.perl (this works for the port and for the
package built from it). The switching to the port version is done by
removing /usr/bin/perl and /usr/bin/suidperl (they both have link count
>1, so this is reversible), and making them to be symlinks to the
corresponding binaries in $PREFIX/bin. Also, assignments of the correct
values of PERL_VER, PERL_VERSION, and PERL_ARCH are appended to
/etc/make.conf. Last, NOPERL=yes is appended to /etc/make.conf, so that
the changes made will survive system upgrades from source. The
switching to the system version is more or less a reverse of the process
described above.
Set and use PERL_ARCH which is independed from the one used by the
system perl.
Fix the port for post-malloc.h -current.
Fix a small bogon when PREFIX was used in pkg-install (PKG_PREFIX should
have been used instead).
Reviewed by: markm, joe
2001-12-19 18:05:05 +01:00
|
|
|
.endfor
|
1995-04-23 19:21:34 +02:00
|
|
|
|
2009-01-26 17:30:12 +01:00
|
|
|
test: build
|
2014-04-01 00:26:09 +02:00
|
|
|
(cd ${WRKSRC}; TEST_JOBS=${MAKE_JOBS_NUMBER} make test_harness)
|
2009-01-26 17:30:12 +01:00
|
|
|
|
|
|
|
regression-test: test
|
|
|
|
|
1998-11-11 06:37:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|