1995-04-17 08:02:34 +02:00
|
|
|
# New ports collection makefile for: perl5
|
|
|
|
# Date created: 16 April 1995
|
|
|
|
# Whom: 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
|
2001-03-22 16:17:46 +01:00
|
|
|
PORTVERSION= ${PERL_VER}
|
1997-04-20 15:53:29 +02:00
|
|
|
CATEGORIES= lang devel perl5
|
2002-05-20 02:03:07 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
|
2002-07-21 19:09:12 +02:00
|
|
|
${MASTER_SITE_LOCAL:S/$/:local/} \
|
|
|
|
http://www.tobez.org/download/port-mirrors/lang/perl58/:local
|
2002-05-20 02:03:07 +02:00
|
|
|
MASTER_SITE_SUBDIR= ../../src \
|
2002-07-21 19:09:12 +02:00
|
|
|
tobez/:local ./:local
|
2002-05-20 02:03:07 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2004-05-31 01:13:56 +02:00
|
|
|
BSDPAN-${PERL_VER}${EXTRACT_SUFX}:local
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2001-06-12 21:36:32 +02:00
|
|
|
MAINTAINER= tobez@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Practical Extraction and Report Language
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2004-07-30 10:31:19 +02:00
|
|
|
PERL_VER= 5.8.5
|
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
|
|
|
|
PERL_VERSION= ${PERL_VER}
|
2001-04-10 21:57:49 +02:00
|
|
|
|
2004-05-31 01:13:56 +02:00
|
|
|
USE_BZIP2= yes
|
2001-03-22 16:17:46 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT=Configure
|
|
|
|
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
|
|
|
|
-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
|
|
|
|
-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
|
2004-05-31 01:13:56 +02:00
|
|
|
-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 \
|
|
|
|
-Dsiteman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \
|
|
|
|
-Dsiteman1dir=${PREFIX}/man/man1 \
|
2002-07-28 11:14:17 +02:00
|
|
|
-Ui_malloc -Ui_iconv -Uinstallusrbinperl \
|
2003-11-10 19:08:54 +01:00
|
|
|
-Dcc="${CC}" -Doptimize="${CFLAGS}" -Duseshrplib \
|
2002-07-21 19:09:12 +02:00
|
|
|
-Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\"
|
2003-10-27 20:48:03 +01:00
|
|
|
|
2004-05-31 01:13:56 +02:00
|
|
|
INCLUDEDIR= /usr/include
|
|
|
|
|
|
|
|
.include "Makefile.man"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-27 20:48:03 +01:00
|
|
|
.if defined(ENABLE_SUIDPERL)
|
2003-10-28 21:46:51 +01:00
|
|
|
CONFIGURE_ARGS+= -Dd_dosuid=define
|
2003-10-27 20:48:03 +01:00
|
|
|
PLIST_SUB+= ENABLE_SUIDPERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Ud_dosuid
|
|
|
|
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
|
|
|
|
.endif
|
2002-07-21 19:09:12 +02:00
|
|
|
# INSTALLS_SHLIB= yes
|
1995-04-17 08:02:34 +02:00
|
|
|
|
2002-07-28 11:14:17 +02:00
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
CONFIGURE_ARGS+= -Di_gdbm
|
2003-01-03 09:26:35 +01:00
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdbm
|
2002-07-28 11:14:17 +02:00
|
|
|
PLIST_SUB+= GDBM=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Ui_gdbm
|
|
|
|
PLIST_SUB+= GDBM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-10-27 20:48:03 +01:00
|
|
|
.if defined(WITHOUT_PERL_MALLOC)
|
|
|
|
.undef WITH_PERL_MALLOC
|
2002-07-28 11:14:17 +02:00
|
|
|
.else
|
2003-10-27 20:48:03 +01:00
|
|
|
WITH_PERL_MALLOC= yes
|
2002-07-28 11:14:17 +02:00
|
|
|
.endif
|
|
|
|
|
2003-04-01 14:29:12 +02:00
|
|
|
.if defined(WITH_THREADS)
|
|
|
|
CONFIGURE_ARGS+= -Dusethreads=y
|
|
|
|
PKGNAMESUFFIX= -threaded
|
2003-10-27 20:48:03 +01:00
|
|
|
# it seems perl malloc has problems with threaded perl on FreeBSD
|
|
|
|
.undef WITH_PERL_MALLOC
|
2003-04-01 14:29:12 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Dusethreads=n
|
|
|
|
.endif
|
|
|
|
|
2003-10-27 20:48:03 +01:00
|
|
|
.if defined(WITH_PERL_MALLOC)
|
|
|
|
CONFIGURE_ARGS+= -Dusemymalloc=y
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Dusemymalloc=n
|
|
|
|
.endif
|
|
|
|
|
2004-07-25 13:25:11 +02:00
|
|
|
.if !defined(WITHOUT_PERL_64BITINT)
|
|
|
|
CONFIGURE_ARGS+= -Duse64bitint
|
|
|
|
.endif
|
|
|
|
|
2004-03-01 16:38:43 +01:00
|
|
|
.if ${OSVERSION} < 502100
|
|
|
|
LATEST_LINK= perl5.8
|
|
|
|
.else
|
2004-02-05 07:12:40 +01:00
|
|
|
PKGMESSAGE= ${PKGDIR}/.not-here
|
|
|
|
.endif
|
|
|
|
|
2002-07-28 11:14:17 +02:00
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
MAN3+= GDBM_File.3
|
|
|
|
.endif
|
2004-05-31 01:13:56 +02:00
|
|
|
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VER}/perl
|
1996-12-07 15:23:29 +01:00
|
|
|
|
1995-04-17 08:02:34 +02:00
|
|
|
test:
|
|
|
|
@(cd ${WRKSRC}; make test)
|
|
|
|
|
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_DEST= ${PREFIX}/lib/perl5/${PERL_VER}/BSDPAN
|
|
|
|
BSDPAN_FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm \
|
|
|
|
ExtUtils/MM_Unix.pm ExtUtils/Packlist.pm
|
2004-07-30 10:31:19 +02:00
|
|
|
BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-5.8.5
|
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:
|
2002-05-20 02:03:07 +02:00
|
|
|
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
|
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
|
|
|
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
|
|
|
|
-e 's|%%PERL_VERSION%%|${PERL_VERSION}|g;' \
|
|
|
|
-e 's|%%PERL_ARCH%%|${PERL_ARCH}|g;' \
|
2002-05-20 02:03:07 +02:00
|
|
|
${FILESDIR}/use.perl \
|
|
|
|
> ${WRKDIR}/use.perl
|
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
|
|
|
|
2003-11-12 01:07:43 +01:00
|
|
|
pre-install:
|
|
|
|
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
|
|
|
|
@${RM} -f ${PREFIX}/bin/perl
|
|
|
|
|
1995-04-23 19:21:34 +02:00
|
|
|
post-install:
|
2003-11-12 01:07:43 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/perl${PERL_VER}
|
2003-10-27 20:48:03 +01:00
|
|
|
@${STRIP_CMD} ${PREFIX}/bin/perl
|
2003-11-12 01:07:43 +01:00
|
|
|
@${LN} -sf ${PREFIX}/bin/perl${PERL_VER} ${PREFIX}/bin/perl5
|
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
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl
|
2003-10-27 20:48:03 +01:00
|
|
|
.for files in ${BSDPAN_FILES}
|
|
|
|
${MKDIR} ${BSDPAN_DEST}/${files:H}
|
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
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
2003-10-27 20:48:03 +01:00
|
|
|
${BSDPAN_WRKSRC}/${files} ${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
|
2001-04-10 21:57:49 +02:00
|
|
|
@(cd ${INCLUDEDIR} && ${PREFIX}/bin/h2ph *.h machine/*.h sys/*.h)
|
2004-05-31 01:13:56 +02:00
|
|
|
${MKDIR} ${PREFIX}/${SITE_PERL_REL}/auto
|
|
|
|
${MKDIR} ${PREFIX}/${SITE_PERL_REL}/${PERL_ARCH}/auto
|
|
|
|
${MKDIR} ${PREFIX}/lib/perl5/${PERL_VER}/man/man3
|
2004-02-04 20:20:40 +01:00
|
|
|
.if ${OSVERSION} < 502100
|
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
|
|
|
@fmt ${PKGMESSAGE}
|
2004-02-04 20:20:40 +01:00
|
|
|
.else
|
|
|
|
@${PREFIX}/bin/use.perl port
|
|
|
|
.endif
|
1995-04-23 19:21:34 +02:00
|
|
|
|
1998-11-11 06:37:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|