1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Take maintainership [1]

- Use OPTIONS
- Add CONFLICTS
- Use "pre-su-install" (for rootless builds)

Approved by:    tobez (previous maintainer) [1]
This commit is contained in:
Sergey Skvortsov 2008-11-20 16:24:37 +00:00
parent 952fabc738
commit 6abecdadfc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223090
10 changed files with 100 additions and 125 deletions

View File

@ -21,9 +21,19 @@ PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
MAINTAINER= skv@FreeBSD.org
COMMENT= Practical Extraction and Report Language
CONFLICTS= perl-5.6.* perl-5.10.*
OPTIONS= DEBUGGING "Build with debugging support" off \
GDBM "Build GDBM_File extension" off \
PERL_MALLOC "Use Perl malloc" on \
PERL_64BITINT "Use 64 bit integers (on i386)" on \
THREADS "Build threaded perl" off \
SUIDPERL "Build set-user-id suidperl binary" off \
USE_PERL "Rewrite links in /usr/bin" on
PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@ -67,12 +77,12 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
.if defined(ENABLE_SUIDPERL)
.if defined(ENABLE_SUIDPERL) || defined(WITH_SUIDPERL)
CONFIGURE_ARGS+= -Dd_dosuid=define
PLIST_SUB+= ENABLE_SUIDPERL=""
PLIST_SUB+= SUIDPERL=""
.else
CONFIGURE_ARGS+= -Ud_dosuid
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
PLIST_SUB+= SUIDPERL="@comment "
.endif
.if defined(WITH_GDBM)
@ -108,7 +118,7 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
.if !defined(WITHOUT_PERL_64BITINT)
.if defined(WITH_PERL_64BITINT)
CONFIGURE_ARGS+= -Duse64bitint
.endif
@ -139,21 +149,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_DEBUGGING=yes Build perl with debugging support."
@${ECHO} " WITH_GDBM=yes Build GDBM_File extension."
@${ECHO} " WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc"
@${ECHO} " (uses less memory, but slower)."
@${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} " (affects only 32-bit platforms)."
@${ECHO} " WITH_THREADS=yes Build threaded perl."
@${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary."
@${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin"
@${ECHO} ""
post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
@ -177,7 +172,7 @@ post-patch:
${WRKSRC}/hints/freebsd.sh
.endif
pre-install:
pre-su-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@${RM} -f ${PREFIX}/bin/perl
@ -193,7 +188,7 @@ post-install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
.endfor
.ifndef WITHOUT_USE_PERL
.if defined(WITH_USE_PERL)
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${OSVERSION} < 500036
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl

View File

@ -30,9 +30,9 @@ bin/prove
bin/psed
bin/pstruct
bin/s2p
%%ENABLE_SUIDPERL%%bin/sperl%%PERL_VER%%
%%SUIDPERL%%bin/sperl%%PERL_VER%%
bin/splain
%%ENABLE_SUIDPERL%%bin/suidperl
%%SUIDPERL%%bin/suidperl
%%NEED_USE_PERL%%bin/use.perl
bin/xsubpp
lib/perl5/%%PERL_VER%%/AnyDBM_File.pm
@ -452,7 +452,7 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regexp.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regnodes.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/scope.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sv.h
%%ENABLE_SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
%%SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thrdvar.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thread.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/uconfig.h

View File

@ -21,9 +21,19 @@ PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
MAINTAINER= skv@FreeBSD.org
COMMENT= Practical Extraction and Report Language
CONFLICTS= perl-5.6.* perl-5.10.*
OPTIONS= DEBUGGING "Build with debugging support" off \
GDBM "Build GDBM_File extension" off \
PERL_MALLOC "Use Perl malloc" on \
PERL_64BITINT "Use 64 bit integers (on i386)" on \
THREADS "Build threaded perl" off \
SUIDPERL "Build set-user-id suidperl binary" off \
USE_PERL "Rewrite links in /usr/bin" on
PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@ -67,12 +77,12 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
.if defined(ENABLE_SUIDPERL)
.if defined(ENABLE_SUIDPERL) || defined(WITH_SUIDPERL)
CONFIGURE_ARGS+= -Dd_dosuid=define
PLIST_SUB+= ENABLE_SUIDPERL=""
PLIST_SUB+= SUIDPERL=""
.else
CONFIGURE_ARGS+= -Ud_dosuid
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
PLIST_SUB+= SUIDPERL="@comment "
.endif
.if defined(WITH_GDBM)
@ -108,7 +118,7 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
.if !defined(WITHOUT_PERL_64BITINT)
.if defined(WITH_PERL_64BITINT)
CONFIGURE_ARGS+= -Duse64bitint
.endif
@ -139,21 +149,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_DEBUGGING=yes Build perl with debugging support."
@${ECHO} " WITH_GDBM=yes Build GDBM_File extension."
@${ECHO} " WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc"
@${ECHO} " (uses less memory, but slower)."
@${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} " (affects only 32-bit platforms)."
@${ECHO} " WITH_THREADS=yes Build threaded perl."
@${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary."
@${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin"
@${ECHO} ""
post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
@ -177,7 +172,7 @@ post-patch:
${WRKSRC}/hints/freebsd.sh
.endif
pre-install:
pre-su-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@${RM} -f ${PREFIX}/bin/perl
@ -193,7 +188,7 @@ post-install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
.endfor
.ifndef WITHOUT_USE_PERL
.if defined(WITH_USE_PERL)
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${OSVERSION} < 500036
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl

View File

@ -30,9 +30,9 @@ bin/prove
bin/psed
bin/pstruct
bin/s2p
%%ENABLE_SUIDPERL%%bin/sperl%%PERL_VER%%
%%SUIDPERL%%bin/sperl%%PERL_VER%%
bin/splain
%%ENABLE_SUIDPERL%%bin/suidperl
%%SUIDPERL%%bin/suidperl
%%NEED_USE_PERL%%bin/use.perl
bin/xsubpp
lib/perl5/%%PERL_VER%%/AnyDBM_File.pm
@ -452,7 +452,7 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regexp.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regnodes.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/scope.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sv.h
%%ENABLE_SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
%%SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thrdvar.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thread.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/uconfig.h

View File

@ -21,9 +21,19 @@ PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
MAINTAINER= skv@FreeBSD.org
COMMENT= Practical Extraction and Report Language
CONFLICTS= perl-5.6.* perl-5.10.*
OPTIONS= DEBUGGING "Build with debugging support" off \
GDBM "Build GDBM_File extension" off \
PERL_MALLOC "Use Perl malloc" on \
PERL_64BITINT "Use 64 bit integers (on i386)" on \
THREADS "Build threaded perl" off \
SUIDPERL "Build set-user-id suidperl binary" off \
USE_PERL "Rewrite links in /usr/bin" on
PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@ -67,12 +77,12 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
.if defined(ENABLE_SUIDPERL)
.if defined(ENABLE_SUIDPERL) || defined(WITH_SUIDPERL)
CONFIGURE_ARGS+= -Dd_dosuid=define
PLIST_SUB+= ENABLE_SUIDPERL=""
PLIST_SUB+= SUIDPERL=""
.else
CONFIGURE_ARGS+= -Ud_dosuid
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
PLIST_SUB+= SUIDPERL="@comment "
.endif
.if defined(WITH_GDBM)
@ -108,7 +118,7 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
.if !defined(WITHOUT_PERL_64BITINT)
.if defined(WITH_PERL_64BITINT)
CONFIGURE_ARGS+= -Duse64bitint
.endif
@ -139,21 +149,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_DEBUGGING=yes Build perl with debugging support."
@${ECHO} " WITH_GDBM=yes Build GDBM_File extension."
@${ECHO} " WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc"
@${ECHO} " (uses less memory, but slower)."
@${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} " (affects only 32-bit platforms)."
@${ECHO} " WITH_THREADS=yes Build threaded perl."
@${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary."
@${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin"
@${ECHO} ""
post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
@ -177,7 +172,7 @@ post-patch:
${WRKSRC}/hints/freebsd.sh
.endif
pre-install:
pre-su-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@${RM} -f ${PREFIX}/bin/perl
@ -193,7 +188,7 @@ post-install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
.endfor
.ifndef WITHOUT_USE_PERL
.if defined(WITH_USE_PERL)
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${OSVERSION} < 500036
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl

View File

@ -30,9 +30,9 @@ bin/prove
bin/psed
bin/pstruct
bin/s2p
%%ENABLE_SUIDPERL%%bin/sperl%%PERL_VER%%
%%SUIDPERL%%bin/sperl%%PERL_VER%%
bin/splain
%%ENABLE_SUIDPERL%%bin/suidperl
%%SUIDPERL%%bin/suidperl
%%NEED_USE_PERL%%bin/use.perl
bin/xsubpp
lib/perl5/%%PERL_VER%%/AnyDBM_File.pm
@ -452,7 +452,7 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regexp.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regnodes.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/scope.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sv.h
%%ENABLE_SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
%%SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thrdvar.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thread.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/uconfig.h

View File

@ -21,9 +21,19 @@ PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
MAINTAINER= skv@FreeBSD.org
COMMENT= Practical Extraction and Report Language
CONFLICTS= perl-5.6.* perl-5.10.*
OPTIONS= DEBUGGING "Build with debugging support" off \
GDBM "Build GDBM_File extension" off \
PERL_MALLOC "Use Perl malloc" on \
PERL_64BITINT "Use 64 bit integers (on i386)" on \
THREADS "Build threaded perl" off \
SUIDPERL "Build set-user-id suidperl binary" off \
USE_PERL "Rewrite links in /usr/bin" on
PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@ -67,12 +77,12 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
.if defined(ENABLE_SUIDPERL)
.if defined(ENABLE_SUIDPERL) || defined(WITH_SUIDPERL)
CONFIGURE_ARGS+= -Dd_dosuid=define
PLIST_SUB+= ENABLE_SUIDPERL=""
PLIST_SUB+= SUIDPERL=""
.else
CONFIGURE_ARGS+= -Ud_dosuid
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
PLIST_SUB+= SUIDPERL="@comment "
.endif
.if defined(WITH_GDBM)
@ -108,7 +118,7 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
.if !defined(WITHOUT_PERL_64BITINT)
.if defined(WITH_PERL_64BITINT)
CONFIGURE_ARGS+= -Duse64bitint
.endif
@ -139,21 +149,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_DEBUGGING=yes Build perl with debugging support."
@${ECHO} " WITH_GDBM=yes Build GDBM_File extension."
@${ECHO} " WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc"
@${ECHO} " (uses less memory, but slower)."
@${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} " (affects only 32-bit platforms)."
@${ECHO} " WITH_THREADS=yes Build threaded perl."
@${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary."
@${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin"
@${ECHO} ""
post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
@ -177,7 +172,7 @@ post-patch:
${WRKSRC}/hints/freebsd.sh
.endif
pre-install:
pre-su-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@${RM} -f ${PREFIX}/bin/perl
@ -193,7 +188,7 @@ post-install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
.endfor
.ifndef WITHOUT_USE_PERL
.if defined(WITH_USE_PERL)
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${OSVERSION} < 500036
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl

View File

@ -30,9 +30,9 @@ bin/prove
bin/psed
bin/pstruct
bin/s2p
%%ENABLE_SUIDPERL%%bin/sperl%%PERL_VER%%
%%SUIDPERL%%bin/sperl%%PERL_VER%%
bin/splain
%%ENABLE_SUIDPERL%%bin/suidperl
%%SUIDPERL%%bin/suidperl
%%NEED_USE_PERL%%bin/use.perl
bin/xsubpp
lib/perl5/%%PERL_VER%%/AnyDBM_File.pm
@ -452,7 +452,7 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regexp.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regnodes.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/scope.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sv.h
%%ENABLE_SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
%%SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thrdvar.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thread.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/uconfig.h

View File

@ -21,9 +21,19 @@ PATCH_SITES= ${MASTER_SITE_LOCAL:S/$/tobez\//} \
http://www.tobez.org/download/port-mirrors/lang/perl58/
PATCHFILES= defined-or-5.8.8.bz2
MAINTAINER= tobez@FreeBSD.org
MAINTAINER= skv@FreeBSD.org
COMMENT= Practical Extraction and Report Language
CONFLICTS= perl-5.6.* perl-5.10.*
OPTIONS= DEBUGGING "Build with debugging support" off \
GDBM "Build GDBM_File extension" off \
PERL_MALLOC "Use Perl malloc" on \
PERL_64BITINT "Use 64 bit integers (on i386)" on \
THREADS "Build threaded perl" off \
SUIDPERL "Build set-user-id suidperl binary" off \
USE_PERL "Rewrite links in /usr/bin" on
PERL_VER= 5.8.8
PERL_ARCH= mach
PERL_VERSION= ${PERL_VER}
@ -67,12 +77,12 @@ STRIP_CMD= ${TRUE}
CONFIGURE_ARGS+= -Doptimize="${CFLAGS}"
.endif
.if defined(ENABLE_SUIDPERL)
.if defined(ENABLE_SUIDPERL) || defined(WITH_SUIDPERL)
CONFIGURE_ARGS+= -Dd_dosuid=define
PLIST_SUB+= ENABLE_SUIDPERL=""
PLIST_SUB+= SUIDPERL=""
.else
CONFIGURE_ARGS+= -Ud_dosuid
PLIST_SUB+= ENABLE_SUIDPERL="@comment "
PLIST_SUB+= SUIDPERL="@comment "
.endif
.if defined(WITH_GDBM)
@ -108,7 +118,7 @@ CONFIGURE_ARGS+= -Dusemymalloc=y
CONFIGURE_ARGS+= -Dusemymalloc=n
.endif
.if !defined(WITHOUT_PERL_64BITINT)
.if defined(WITH_PERL_64BITINT)
CONFIGURE_ARGS+= -Duse64bitint
.endif
@ -139,21 +149,6 @@ BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
pre-fetch:
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
@${ECHO} " WITH_DEBUGGING=yes Build perl with debugging support."
@${ECHO} " WITH_GDBM=yes Build GDBM_File extension."
@${ECHO} " WITHOUT_PERL_MALLOC=yes Use FreeBSD system malloc"
@${ECHO} " (uses less memory, but slower)."
@${ECHO} " WITHOUT_PERL_64BITINT=yes Disable 64 bit integers"
@${ECHO} " (affects only 32-bit platforms)."
@${ECHO} " WITH_THREADS=yes Build threaded perl."
@${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary."
@${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin"
@${ECHO} ""
post-patch:
${SED} -e 's|%%PREFIX%%|${PREFIX}|g;' \
-e 's|%%PERL_VER%%|${PERL_VER}|g;' \
@ -177,7 +172,7 @@ post-patch:
${WRKSRC}/hints/freebsd.sh
.endif
pre-install:
pre-su-install:
@${RM} -f ${PREFIX}/bin/perl${PERL_VER}
@${RM} -f ${PREFIX}/bin/perl
@ -193,7 +188,7 @@ post-install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
.endfor
.ifndef WITHOUT_USE_PERL
.if defined(WITH_USE_PERL)
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${OSVERSION} < 500036
${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl

View File

@ -30,9 +30,9 @@ bin/prove
bin/psed
bin/pstruct
bin/s2p
%%ENABLE_SUIDPERL%%bin/sperl%%PERL_VER%%
%%SUIDPERL%%bin/sperl%%PERL_VER%%
bin/splain
%%ENABLE_SUIDPERL%%bin/suidperl
%%SUIDPERL%%bin/suidperl
%%NEED_USE_PERL%%bin/use.perl
bin/xsubpp
lib/perl5/%%PERL_VER%%/AnyDBM_File.pm
@ -452,7 +452,7 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regexp.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/regnodes.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/scope.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sv.h
%%ENABLE_SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
%%SUIDPERL%%lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/sperl.o
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thrdvar.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/thread.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/uconfig.h