diff options
author | Anton Berezin <tobez@FreeBSD.org> | 2002-07-28 09:14:17 +0000 |
---|---|---|
committer | Anton Berezin <tobez@FreeBSD.org> | 2002-07-28 09:14:17 +0000 |
commit | d46ceb3a940179de4a8d9107ffdb81a6998c68c1 (patch) | |
tree | 0d87f632fb7f004a841fc09050f1960c88318c27 /lang/perl5.12/Makefile | |
parent | Add two knobs: (diff) |
Merge from lang/perl5:
Add two knobs:
WITH_PERL_MALLOC - to compile with perl's own malloc, as opposed to
the freebsd system malloc. Some might find this useful, since perl's
malloc is marginally faster in typical cases, and orders of
magnitude faster in degenerate cases. Use with care.
WITH_GDBM - to compile with gdbm support.
Notes
Notes:
svn path=/head/; revision=63661
Diffstat (limited to 'lang/perl5.12/Makefile')
-rw-r--r-- | lang/perl5.12/Makefile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/lang/perl5.12/Makefile b/lang/perl5.12/Makefile index 1570660ed19f..d2c263853678 100644 --- a/lang/perl5.12/Makefile +++ b/lang/perl5.12/Makefile @@ -7,7 +7,7 @@ PORTNAME= perl PORTVERSION= ${PERL_VER} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \ ${MASTER_SITE_LOCAL:S/$/:local/} \ @@ -31,11 +31,25 @@ CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \ -Dman3dir=${PREFIX}/lib/perl5/${PERL_VER}/man/man3 \ -Dsitearch=${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH} \ -Dsitelib=${PREFIX}/lib/perl5/site_perl/${PERL_VER} \ - -Ui_gdbm -Ui_malloc -Ui_iconv \ - -Uinstallusrbinperl \ + -Ui_malloc -Ui_iconv -Uinstallusrbinperl \ -Dccflags=-DAPPLLIB_EXP=\"${BSDPAN_DEST}\" # INSTALLS_SHLIB= yes +.if defined(WITH_GDBM) +CONFIGURE_ARGS+= -Di_gdbm +LIB_DEPENDS+= gdbm.2:${PORTSDIR}/databases/gdbm +PLIST_SUB+= GDBM="" +.else +CONFIGURE_ARGS+= -Ui_gdbm +PLIST_SUB+= GDBM="@comment " +.endif + +.if defined(WITH_PERL_MALLOC) +CONFIGURE_ARGS+= -Dusemymalloc=y +.else +CONFIGURE_ARGS+= -Dusemymalloc=n +.endif + INCLUDEDIR= /usr/include .include <bsd.port.pre.mk> @@ -153,6 +167,9 @@ MAN3= AnyDBM_File.3 Attribute::Handlers.3 \ open.3 ops.3 overload.3 re.3 sigtrap.3 sort.3 strict.3 \ subs.3 threads.3 threads::shared.3 utf8.3 vars.3 vmsish.3 \ warnings.3 warnings::register.3 +.if defined(WITH_GDBM) +MAN3+= GDBM_File.3 +.endif MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VER} LATEST_LINK= perl5.8 |