Convert to new options framework

This commit is contained in:
Baptiste Daroussin 2013-06-05 06:59:44 +00:00
parent 4443b4c75d
commit e8f4f44fa1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319952
3 changed files with 70 additions and 80 deletions

View file

@ -1,9 +1,5 @@
# Ports collection Makefile for: gatling # Created by: Thomas-Martin Seck <tmseck@netcologne.de>
# Date created: Feb 21, 2004
# Whom: Thomas-Martin Seck <tmseck@netcologne.de>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= gatling PORTNAME= gatling
PORTVERSION= 0.13 PORTVERSION= 0.13
@ -35,15 +31,15 @@ PORTDOCS= CHANGES README README.antidos README.cgi README.ftp \
PORTEXAMPLES= run-gatling cgi acc getlinks hcat hitprofile matchiprange \ PORTEXAMPLES= run-gatling cgi acc getlinks hcat hitprofile matchiprange \
referrer referrer
OPTIONS= GATLING_BENCHMARKS "Install some benchmark programs" on \ OPTIONS_DEFINE= BENCHMARKS SMB TLS ZLIB OPTIMIZED_CFLAGS
GATLING_SMB "Add (read only) SMB support" on \ OPTIONS_DEFAULT= BENCHMARKS SMB TLS ZLIB OPTIMIZED_CFLAGS
GATLING_TLS "Build and install tlsgatling" on \ BENCHMARKS_DESC= Install some benchmark programs
GATLING_ZLIB "Compress outgoing data" on \ TLS_DESC= Build and install tlsgatling
GATLING_OPTIMIZED_CFLAGS "Add additional optimizations" on ZLIB_DESC= Compress outgoing data
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if defined(WITH_GATLING_BENCHMARKS) || defined(WITH_BENCHMARKS) .if ${PORT_OPTIONS:MBENCHMARKS}
PORTDOCS+= README.bindbench README.forkbench README.httpbench \ PORTDOCS+= README.bindbench README.forkbench README.httpbench \
README.manymapbench README.mmapbench README.manymapbench README.mmapbench
bin+= bindbench forkbench forksbench httpbench ioerr manymapbench \ bin+= bindbench forkbench forksbench httpbench ioerr manymapbench \
@ -53,11 +49,11 @@ MAN1+= bench.1
MAKE_ENV+= BENCHMARKS=1 MAKE_ENV+= BENCHMARKS=1
.endif .endif
.if defined(WITH_GATLING_OPTIMIZED_CFLAGS) && !defined(WITH_DEBUG) .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} && !defined(WITH_DEBUG)
CFLAGS+= -O2 -fomit-frame-pointer CFLAGS+= -O2 -fomit-frame-pointer
.endif .endif
.if defined(WITH_GATLING_SMB) .if ${PORT_OPTIONS:MSMB}
USES+= iconv USES+= iconv
CFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include
MAKE_ENV+= ICONV=1 MAKE_ENV+= ICONV=1
@ -65,17 +61,17 @@ MAKE_ENV+= ICONV=1
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-disable_smb EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-disable_smb
.endif .endif
.if defined(WITH_GATLING_TLS) .if ${PORT_OPTIONS:MTLS}
MAKE_ENV+= TLSGATLING=1 MAKE_ENV+= TLSGATLING=1
sbin+= tlsgatling sbin+= tlsgatling
PORTDOCS+= README.tls PORTDOCS+= README.tls
.endif .endif
.if defined(WITH_GATLING_ZLIB) .if ${PORT_OPTIONS:MZLIB}
MAKE_ENV+= ZLIB=1 MAKE_ENV+= ZLIB=1
.endif .endif
.if defined(WITH_DEBUG) .if ${PORT_OPTIONS:MDEBUG}
MAKE_ENV+= DEBUG=1 MAKE_ENV+= DEBUG=1
STRIP= STRIP=
.endif .endif
@ -93,7 +89,7 @@ do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${bin} ${PREFIX}/bin cd ${WRKSRC} && ${INSTALL_PROGRAM} ${bin} ${PREFIX}/bin
cd ${WRKSRC} && ${INSTALL_PROGRAM} ${sbin} ${PREFIX}/sbin cd ${WRKSRC} && ${INSTALL_PROGRAM} ${sbin} ${PREFIX}/sbin
${INSTALL_SCRIPT} ${FILESDIR}/gatling_wrapper ${PREFIX}/sbin ${INSTALL_SCRIPT} ${FILESDIR}/gatling_wrapper ${PREFIX}/sbin
.if !defined(NOPORTEXAMPLES) .if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR} ${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${EXAMPLESDIR} cd ${WRKSRC} && ${INSTALL_SCRIPT} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif .endif
@ -101,7 +97,7 @@ do-install:
cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1 cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MAN1PREFIX}/man/man1
.endif .endif
cd ${WRKSRC} && ${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8 cd ${WRKSRC} && ${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR} ${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif .endif

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: horde # Created by: Beech Rintoul <beech@FreeBSD.org>
# Date created: 24 February 2007
# Whom: Beech Rintoul <beech@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= meta PORTNAME= meta
PORTVERSION= 1.0 PORTVERSION= 1.0
@ -18,103 +14,106 @@ COMMENT= Meta port for the horde framework
NO_BUILD= yes NO_BUILD= yes
LHORDEDIR?= www/horde LHORDEDIR?= www/horde
OPTIONS= ANSEL "Photo Gallery" off \ OPTIONS_DEFINE= ANSEL CHORA DIMP GOLLEM HPASSWD IMP INGO JETA \
CHORA "CVS Web Viewer" off \ KRONOLITH MIMP MNEMO NAG NIC TREAN TURBA VACATION \
DIMP "Dynamic Imp" off \ WHUPS KLUTZ
GOLLEM "Web-Based File Manager" off \ ANSEL_DESC= Photo Gallery
HERMES "Time Tracking Application" off \ CHORA_DESC= CVS Web Viewer
HPASSWD "Password Changing Module" off \ DIMP_DESC= Dynamic Imp
IMP "IMAP Webmail System" on \ GOLLEM_DESC= Web-Based File Manager
INGO "Email-Filter Management" on \ HERMES_DESC= Time Tracking Application
JETA "Java SSH Applets" off \ HPASSWD_DESC= Password Changing Module
KRONOLITH "Calendar Application" off \ IMP_DESC= IMAP Webmail System
MIMP "Mobile Webmail System" off \ INGO_DESC= Email-Filter Management
MNEMO "Notes and Memo Application" off \ JETA_DESC= Java SSH Applets
NAG "Task List Manager" on \ KRONOLITH_DESC= Calendar Application
NIC "Network Monitor" off \ MIMP_DESC= Mobile Webmail System
TREAN "Bookmark Manager" off \ MNEMO_DESC= Notes and Memo Application
TURBA "Contact Management" on \ NAG_DESC= Task List Manager
VACATION "Vacation & Auto Respond" off \ NIC_DESC= Network Monitor
WHUPS "Bug Tracking/Ticket System" off \ TREAN_DESC= Bookmark Manager
KLUTZ "Comic Strip Viewer" off TURBA_DESC= Contact Management
VACATION_DESC= Vacation & Auto Respond
WHUPS_DESC= Bug Tracking/Ticket System
KLUTZ_DESC= Comic Strip Viewer
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde3-base RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde3-base
.if !defined(WITHOUT_IMP) .if ${PORT_OPTIONS:MIMP}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/imp/index.php:${PORTSDIR}/mail/horde3-imp RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/imp/index.php:${PORTSDIR}/mail/horde3-imp
.endif .endif
.if defined(WITH_MIMP) .if ${PORT_OPTIONS:MMIMP}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/mimp/index.php:${PORTSDIR}/mail/horde3-mimp RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/mimp/index.php:${PORTSDIR}/mail/horde3-mimp
.endif .endif
.if defined(WITH_DIMP) .if ${PORT_OPTIONS:MDIMP}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/dimp/compose.php:${PORTSDIR}/mail/horde3-dimp RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/dimp/compose.php:${PORTSDIR}/mail/horde3-dimp
.endif .endif
.if !defined(WITHOUT_INGO) .if ${PORT_OPTIONS:MINGO}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/ingo/filters.php:${PORTSDIR}/mail/horde3-ingo RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/ingo/filters.php:${PORTSDIR}/mail/horde3-ingo
.endif .endif
.if !defined(WITHOUT_TURBA) .if ${PORT_OPTIONS:MTURBA}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/turba/minisearch.php:${PORTSDIR}/mail/horde3-turba RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/turba/minisearch.php:${PORTSDIR}/mail/horde3-turba
.endif .endif
.if defined(WITH_KRONOLITH) .if ${PORT_OPTIONS:MKRONOLITH}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/kronolith/index.php:${PORTSDIR}/deskutils/horde3-kronolith RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/kronolith/index.php:${PORTSDIR}/deskutils/horde3-kronolith
.endif .endif
.if defined(WITH_MNEMO) .if ${PORT_OPTIONS:MMNEMO}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/mnemo/index.php:${PORTSDIR}/deskutils/horde3-mnemo RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/mnemo/index.php:${PORTSDIR}/deskutils/horde3-mnemo
.endif .endif
.if !defined(WITHOUT_NAG) .if ${PORT_OPTIONS:MNAG}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/nag/data.php:${PORTSDIR}/deskutils/horde3-nag RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/nag/data.php:${PORTSDIR}/deskutils/horde3-nag
.endif .endif
.if defined(WITH_CHORA) .if ${PORT_OPTIONS:MCHORA}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/chora/index.php:${PORTSDIR}/devel/horde3-chora RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/chora/index.php:${PORTSDIR}/devel/horde3-chora
.endif .endif
.if defined(WITH_GOLLEM) .if ${PORT_OPTIONS:MGOLLEM}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/gollem/index.php:${PORTSDIR}/ftp/horde3-gollem RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/gollem/index.php:${PORTSDIR}/ftp/horde3-gollem
.endif .endif
.if defined(WITH_JETA) .if ${PORT_OPTIONS:MJETA}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/jeta/index.php:${PORTSDIR}/security/horde3-jeta RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/jeta/index.php:${PORTSDIR}/security/horde3-jeta
.endif .endif
.if defined(WITH_HPASSWD) .if ${PORT_OPTIONS:MHPASSWD}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/passwd/index.php:${PORTSDIR}/www/horde3-passwd RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/passwd/index.php:${PORTSDIR}/www/horde3-passwd
.endif .endif
.if defined(WITH_VACATION) .if ${PORT_OPTIONS:MVACATION}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/vacation/main.php:${PORTSDIR}/mail/horde3-vacation RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/vacation/main.php:${PORTSDIR}/mail/horde3-vacation
.endif .endif
.if defined(WITH_TREAN) .if ${PORT_OPTIONS:MTREAN}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/trean/data.php:${PORTSDIR}/www/horde3-trean RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/trean/data.php:${PORTSDIR}/www/horde3-trean
.endif .endif
.if defined(WITH_NIC) .if ${PORT_OPTIONS:MNIC}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/nic/status.php:${PORTSDIR}/net-mgmt/horde3-nic RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/nic/status.php:${PORTSDIR}/net-mgmt/horde3-nic
.endif .endif
.if defined(WITH_ANSEL) .if ${PORT_OPTIONS:MANSEL}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/ansel/gallery.php:${PORTSDIR}/www/horde3-ansel RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/ansel/gallery.php:${PORTSDIR}/www/horde3-ansel
.endif .endif
.if defined(WITH_WHUPS) .if ${PORT_OPTIONS:MWHUPS}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/whups/index.php:${PORTSDIR}/devel/horde3-whups RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/whups/index.php:${PORTSDIR}/devel/horde3-whups
.endif .endif
.if defined(WITH_HERMES) .if ${PORT_OPTIONS:MHERMES}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/hermes/index.php:${PORTSDIR}/deskutils/horde3-hermes RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/hermes/index.php:${PORTSDIR}/deskutils/horde3-hermes
.endif .endif
.if defined(WITH_KLUTZ) .if ${PORT_OPTIONS:MKLUTZ}
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/klutz/index.php:${PORTSDIR}/deskutils/horde3-klutz RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/klutz/index.php:${PORTSDIR}/deskutils/horde3-klutz
.endif .endif

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: links-hacked # Created by: Peter Vereshagin <peter@vereshagin.org>
# Date created: 24 September 2011
# Whom: Peter Vereshagin <peter@vereshagin.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= links-hacked PORTNAME= links-hacked
DISTVERSION= 101110 DISTVERSION= 101110
@ -30,16 +26,15 @@ LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
USE_OPENSSL= yes USE_OPENSSL= yes
OPTIONS= SVGALIB "non-X11 graphics support" off \ OPTIONS_DEFINE= SVGALIB DIRECTFB X11 FORMSAVE JS FREETYPE
DIRECTFB "directfb driver support" off \ OPTIONS_DEFAULT= X11 FORMSAVE JS FREETYPE
X11 "X11 graphics support" on \ DIRECTFB_DESC= directfb driver support
FORMSAVE "Enable forms saving" on \ FORMSAVE_DESC= Enable forms saving
JS "Enable Javascript (very basic)" on \ JS_DESC= Enable Javascript (very basic)
FREETYPE "Enable Freetype renderer" on
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.ifdef(WITH_SVGALIB) || defined(WITH_X11) || defined(WITH_DIRECTFB) .if ${PORT_OPTIONS:MSVGALIB} || ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MDIRECTFB}
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \ LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png \
jpeg.11:${PORTSDIR}/graphics/jpeg \ jpeg.11:${PORTSDIR}/graphics/jpeg \
tiff.4:${PORTSDIR}/graphics/tiff tiff.4:${PORTSDIR}/graphics/tiff
@ -48,21 +43,21 @@ CONFIGURE_ARGS+= --enable-graphics
CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff CONFIGURE_ARGS+= --disable-graphics --without-libjpeg --without-libtiff
.endif .endif
.ifdef(WITH_SVGALIB) .if ${PORT_OPTIONS:MSVGALIB}
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib
CONFIGURE_ARGS+= --with-svgalib CONFIGURE_ARGS+= --with-svgalib
.else .else
CONFIGURE_ARGS+= --without-svgalib CONFIGURE_ARGS+= --without-svgalib
.endif .endif
.ifdef(WITH_DIRECTFB) .if ${PORT_OPTIONS:MDIRECTFB}
LIB_DEPENDS+= directfb-1.4.5:${PORTSDIR}/devel/directfb LIB_DEPENDS+= directfb-1.4.5:${PORTSDIR}/devel/directfb
CONFIGURE_ARGS+= --with-directfb CONFIGURE_ARGS+= --with-directfb
.else .else
CONFIGURE_ARGS+= --without-directfb CONFIGURE_ARGS+= --without-directfb
.endif .endif
.if !defined(WITHOUT_X11) .if ${PORT_OPTIONS:MX11}
USE_XORG= x11 xproto USE_XORG= x11 xproto
CONFIGURE_ARGS+= --with-x CONFIGURE_ARGS+= --with-x
DESKTOP_ENTRIES="Links" \ DESKTOP_ENTRIES="Links" \
@ -76,20 +71,20 @@ PLIST_FILES+= share/pixmaps/links.xpm
CONFIGURE_ARGS+= --without-x CONFIGURE_ARGS+= --without-x
.endif .endif
.ifdef(WITH_FREETYPE) .if ${PORT_OPTIONS:MFREETYPE}
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype CONFIGURE_ARGS+= --with-freetype
.else .else
CONFIGURE_ARGS+= --without-freetype CONFIGURE_ARGS+= --without-freetype
.endif .endif
.ifdef(WITH_FORMSAVE) .if ${PORT_OPTIONS:MFORMSAVE}
CONFIGURE_ARGS+= --enable-form-saving CONFIGURE_ARGS+= --enable-form-saving
.else .else
CONFIGURE_ARGS+= --disable-form-saving CONFIGURE_ARGS+= --disable-form-saving
.endif .endif
.ifdef(WITH_JS) .if ${PORT_OPTIONS:MJS}
CONFIGURE_ARGS+= --enable-javascript CONFIGURE_ARGS+= --enable-javascript
.else .else
CONFIGURE_ARGS+= --disable-javascript CONFIGURE_ARGS+= --disable-javascript
@ -98,7 +93,7 @@ CONFIGURE_ARGS+= --disable-javascript
MAN1= links.1 MAN1= links.1
PLIST_FILES+= bin/links PLIST_FILES+= bin/links
.if !defined(WITHOUT_X11) .if ${PORT_OPTIONS:MX11}
post-install: post-install:
@${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm @${INSTALL_DATA} ${WRKSRC}/graphics/links.xpm ${PREFIX}/share/pixmaps/links.xpm
.endif .endif