aboutsummaryrefslogtreecommitdiffstats
path: root/lang/perl5.14
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2013-05-06 14:06:49 +0800
committeraz <az@FreeBSD.org>2013-05-06 14:06:49 +0800
commite059d9c075ee6af7c41991413f477ced0a52bee4 (patch)
treef7dbd053ed9ef896475d95b07d75e5a25dd690f6 /lang/perl5.14
parent46beb5bfc3cdb1decaba02407079043a2babc010 (diff)
downloadfreebsd-ports-gnome-e059d9c075ee6af7c41991413f477ced0a52bee4.tar.gz
freebsd-ports-gnome-e059d9c075ee6af7c41991413f477ced0a52bee4.tar.zst
freebsd-ports-gnome-e059d9c075ee6af7c41991413f477ced0a52bee4.zip
lang/perl5.*
- OPTIONS to OptionNG conversion - Remove ABI version number from LIB_DEPENDS - Add VENDOR prefix to list of OPTIONS lang/perl5.14 - Remove outdated CONFLICTS with perl5.(6|8) Reviewed by: bapt@ With hat: perl@
Diffstat (limited to 'lang/perl5.14')
-rw-r--r--lang/perl5.14/Makefile57
1 files changed, 27 insertions, 30 deletions
diff --git a/lang/perl5.14/Makefile b/lang/perl5.14/Makefile
index 133fccf82b3f..9cb145971960 100644
--- a/lang/perl5.14/Makefile
+++ b/lang/perl5.14/Makefile
@@ -20,19 +20,21 @@ COMMENT= Practical Extraction and Report Language
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-CONFLICTS= perl-5.6.* perl-5.8.* perl-threaded-5.8.* \
- perl-5.10.* perl-threaded-5.10.* \
+CONFLICTS= perl-5.10.* perl-threaded-5.10.* \
perl-5.12.* perl-threaded-5.12.*
-OPTIONS= DEBUGGING "Build with debugging support" off \
- GDBM "Build GDBM_File extension" off \
- PERL_MALLOC "Use Perl malloc" off \
- PERL_64BITINT "Use 64 bit integers (on i386)" on \
- THREADS "Build threaded perl" off \
- PTHREAD "Build with -pthread" on \
- MULTIPLICITY "Use multiplicity" off \
- SITECUSTOMIZE "Run-time customization of @INC" off \
- USE_PERL "Rewrite links in /usr/bin" on
+OPTIONS_DEFINE= DEBUG GDBM PERL_MALLOC PERL_64BITINT THREADS PTHREAD \
+ MULTIPLICITY SITECUSTOMIZE USE_PERL VENDOR_PREFIX
+OPTIONS_DEFAULT= PERL_64BITINT PTHREAD USE_PERL
+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
+VENDOR_PREFIX= Use vendor prefix
PORTSCOUT= limitw:1,even
@@ -66,7 +68,7 @@ MAKE_ENV+= ${LOCALE_CLEANUP}
.include "Makefile.man"
.include <bsd.port.pre.mk>
-.if defined(PERL_VENDOR_PREFIX)
+.if ${PORT_OPTIONS:MVENDOR_PREFIX}
CONFIGURE_ARGS+= \
-Dvendorprefix=${PERL_VENDOR_PREFIX} \
-Dvendorarch=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VERSION}/${PERL_ARCH} \
@@ -81,7 +83,7 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \
PERL_ARCH=${PERL_ARCH} \
SITE_PERL=${SITE_PERL:S|^${LOCALBASE}/||}
-.if defined(WITH_DEBUGGING)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING
STRIP=
STRIP_CMD= ${TRUE}
@@ -89,9 +91,9 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
-.if defined(WITH_GDBM)
+.if ${PORT_OPTIONS:MGDBM}
CONFIGURE_ARGS+= -Di_gdbm
-LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm
+LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
PLIST_SUB+= GDBM=""
.else
CONFIGURE_ARGS+= -Ui_gdbm
@@ -104,13 +106,7 @@ PLIST_SUB+= MANCONF=""
PLIST_SUB+= MANCONF="@comment "
.endif
-.if defined(WITHOUT_PERL_MALLOC)
-.undef WITH_PERL_MALLOC
-.else
-WITH_PERL_MALLOC= yes
-.endif
-
-.if defined(WITH_THREADS)
+.if ${PORT_OPTIONS:MTHREADS}
#XXX .if ${ARCH} == "amd64"
#XXX IGNORE= Threaded perl does not pass tests on ${ARCH}
#XXX .endif
@@ -118,30 +114,31 @@ CONFIGURE_ARGS+= -Dusethreads=y
PKGNAMESUFFIX= -threaded
WITH_PTHREAD= yes
# it seems perl malloc has problems with threaded perl on FreeBSD
-.undef WITH_PERL_MALLOC
+PORT_OPTIONS:= ${PORT_OPTIONS:O:u}
+PORT_OPTIONS:= ${PORT_OPTIONS:NPERL_MALLOC}
.else
CONFIGURE_ARGS+= -Dusethreads=n
.endif
-.if defined(WITH_PERL_MALLOC)
+.if ${PORT_OPTIONS:MPERL_MALLOC}
CONFIGURE_ARGS+= -Dusemymalloc=y
.else
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
-.if defined(WITH_PERL_64BITINT)
+.if ${PORT_OPTIONS:MPERL_64BITINT}
CONFIGURE_ARGS+= -Duse64bitint
.endif
-.if defined(WITH_MULTIPLICITY)
+.if ${PORT_OPTIONS:MMULTIPLICITY}
CONFIGURE_ARGS+= -Dusemultiplicity=y
.endif
-.if defined(WITH_SITECUSTOMIZE)
+.if ${PORT_OPTIONS:MSITECUSTOMIZE}
CONFIGURE_ARGS+= -Dusesitecustomize
.endif
-.if defined(WITH_USE_PERL)
+.if ${PORT_OPTIONS:MUSE_PERL}
LINK_USRBIN= yes
.else
LINK_USRBIN= no
@@ -149,7 +146,7 @@ LINK_USRBIN= no
LATEST_LINK= perl
-.if defined(WITH_GDBM)
+.if ${PORT_OPTIONS:MGDBM}
MAN3+= GDBM_File.3
.endif
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}/perl
@@ -187,7 +184,7 @@ post-patch:
${BSDPAN_WRKSRC}/ExtUtils/*.pm
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh
-.if defined(WITH_PTHREAD)
+.if ${PORT_OPTIONS:MPTHREAD}
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g;' \
-e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g;' \
${WRKSRC}/hints/freebsd.sh