Index: archivers/fpc-unzip/Makefile =================================================================== --- archivers/fpc-unzip/Makefile (revision 311477) +++ archivers/fpc-unzip/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-unzip -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= archivers lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= UNZIP "Install unzip tools" on +OPTIONS_DEFINE= UNZIP +OPTIONS_DEFAULT= UNZIP +UNZIP_DESC= Install unzip tools + .include "${MASTERDIR}/Makefile" Index: audio/fpc-a52/Makefile =================================================================== --- audio/fpc-a52/Makefile (revision 311436) +++ audio/fpc-a52/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-a52 -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBA52 "Install a52 library" on +OPTIONS_DEFINE= LIBA52 +OPTIONS_DEFAULT= LIBA52 +LIBA52_DESC= Install a52 library + .include "${MASTERDIR}/Makefile" Index: audio/fpc-mad/Makefile =================================================================== --- audio/fpc-mad/Makefile (revision 311474) +++ audio/fpc-mad/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-mad -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBMAD "Install mad library" on +OPTIONS_DEFINE= LIBMAD +OPTIONS_DEFAULT= LIBMAD +LIBMAD_DESC= Install mad library + .include "${MASTERDIR}/Makefile" Index: audio/fpc-modplug/Makefile =================================================================== --- audio/fpc-modplug/Makefile (revision 311474) +++ audio/fpc-modplug/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-modplug -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBMODPLUG "Install modplug library" on +OPTIONS_DEFINE= LIBMODPLUG +OPTIONS_DEFAULT= LIBMODPLUG +LIBMODPLUG_DESC= Install modplug library + .include "${MASTERDIR}/Makefile" Index: audio/fpc-oggvorbis/Makefile =================================================================== --- audio/fpc-oggvorbis/Makefile (revision 311474) +++ audio/fpc-oggvorbis/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-oggvorbis -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,7 +14,10 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBOGG "Install ogg library" on \ - LIBVORBIS "Install vorbis library" on +OPTIONS_DEFINE= LIBOGG LIBVORBIS +OPTIONS_DEFAULT= LIBOGG LIBVORBIS +LIBOGG_DESC= Install ogg library +LIBVORBIS_DESC= Install vorbis library + .include "${MASTERDIR}/Makefile" Index: audio/fpc-openal/Makefile =================================================================== --- audio/fpc-openal/Makefile (revision 311474) +++ audio/fpc-openal/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-openal -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= OPENAL "Install openal library" on +OPTIONS_DEFINE= OPENAL +OPTIONS_DEFAULT= OPENAL +OPENAL_DESC= Install openal library + .include "${MASTERDIR}/Makefile" Index: audio/fpc-sndfile/Makefile =================================================================== --- audio/fpc-sndfile/Makefile (revision 311477) +++ audio/fpc-sndfile/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-sndfile -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= audio lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBSNDFILE "Install sndfile library" on +OPTIONS_DEFINE= LIBSNDFILE +OPTIONS_DEFAULT= LIBSNDFILE +LIBSNDFILE_DESC= Install sndfile library + .include "${MASTERDIR}/Makefile" Index: audio/hawkvoice/Makefile =================================================================== --- audio/hawkvoice/Makefile (revision 311499) +++ audio/hawkvoice/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: hawkvoice -# Date created: 2006-03-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= hawkvoice PORTVERSION= 0.91 @@ -27,15 +23,17 @@ WRKSRC= ${WRKDIR}/HawkVoiceDI/src -OPTIONS= OPTIMIZATION "Enable optimization" off +OPTIONS_DEFINE= OPTIMIZATION -.include +OPTIMIZATION_DESC= Enable optimization +.include + .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif -.if defined(WITH_OPTIMIZATION) +.if ${PORT_OPTIONS:MOPTIMIZATION} CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT .endif @@ -43,11 +41,11 @@ ${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|||g' "{}" \; post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} .endfor .endif -.include +.include Index: databases/fpc-gdbm/Makefile =================================================================== --- databases/fpc-gdbm/Makefile (revision 311437) +++ databases/fpc-gdbm/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-gdbm -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= GDBM "Install the GNU database manager" on +OPTIONS_DEFINE= GDBM +OPTIONS_DEFAULT= GDBM +GDBM_DESC= Install the GNU database manager + .include "${MASTERDIR}/Makefile" Index: databases/fpc-ibase/Makefile =================================================================== --- databases/fpc-ibase/Makefile (revision 311440) +++ databases/fpc-ibase/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal ibase Unit -# Date created: 9 February 2004 -# Whom: John Merryweather Cooper -# +# Created by: John Merryweather Cooper # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= IBASE "Install Interbase/Firebird client" on +OPTIONS_DEFINE= IBASE +OPTIONS_DEFAULT= IBASE +IBASE_DESC= Install Interbase/Firebird client + .include "${MASTERDIR}/Makefile" Index: databases/fpc-mysql/Makefile =================================================================== --- databases/fpc-mysql/Makefile (revision 311474) +++ databases/fpc-mysql/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal mysql Unit -# Date created: 9 February 2004 -# Whom: John Merryweather Cooper -# +# Created by: John Merryweather Cooper # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= MYSQL "Install MySQL client" on +OPTIONS_DEFINE= MYSQL +OPTIONS_DEFAULT= MYSQL +MYSQL_DESC= Install MySQL client + .include "${MASTERDIR}/Makefile" Index: databases/fpc-odbc/Makefile =================================================================== --- databases/fpc-odbc/Makefile (revision 311474) +++ databases/fpc-odbc/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal Compiler -# Date created: 8 January 2004 -# Whom: John Merryweather Cooper -# +# Created by: John Merryweather Cooper # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,8 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= ODBC "Install ODBC library suite for Unix" off +OPTIONS_DEFINE= ODBC +ODBC_DESC= Install ODBC library suite for Unix + .include "${MASTERDIR}/Makefile" Index: databases/fpc-oracle/Makefile =================================================================== --- databases/fpc-oracle/Makefile (revision 311476) +++ databases/fpc-oracle/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal Compiler -# Date created: 28 November 2001 -# Whom: John Merryweather Cooper et al -# +# Created by: John Merryweather Cooper et al # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,8 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= ORACLE "Install oracle client" off +OPTIONS_DEFINE= ORACLE +ORACLE_DESC= Install oracle client + .include "${MASTERDIR}/Makefile" Index: databases/fpc-postgres/Makefile =================================================================== --- databases/fpc-postgres/Makefile (revision 311476) +++ databases/fpc-postgres/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal Compiler -# Date created: 28 November 2001 -# Whom: John Merryweather Cooper et al -# +# Created by: John Merryweather Cooper et al # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= PGSQL "Install PostgreSQL client" on +OPTIONS_DEFINE= PGSQL +OPTIONS_DEFAULT= PGSQL +PGSQL_DESC= Install PostgreSQL client + .include "${MASTERDIR}/Makefile" Index: databases/fpc-sqlite/Makefile =================================================================== --- databases/fpc-sqlite/Makefile (revision 311477) +++ databases/fpc-sqlite/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-sqlite -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= databases lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= SQLITE "Install SQLite database engine" on +OPTIONS_DEFINE= SQLITE +OPTIONS_DEFAULT= SQLITE +SQLITE_DESC= Install SQLite database engine + .include "${MASTERDIR}/Makefile" Index: devel/fpc-bfd/Makefile =================================================================== --- devel/fpc-bfd/Makefile (revision 311436) +++ devel/fpc-bfd/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal Compiler -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= devel lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBBFD "Install Universal BFD library from GNU binutils" on +OPTIONS_DEFINE= LIBBFD +OPTIONS_DEFAULT= LIBBFD +LIBBFD_DESC= Install Universal BFD library from GNU binutils + .include "${MASTERDIR}/Makefile" Index: devel/fpc-dbus/Makefile =================================================================== --- devel/fpc-dbus/Makefile (revision 311436) +++ devel/fpc-dbus/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-dbus -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= devel lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= DBUS "Install dbus library" on +OPTIONS_DEFINE= DBUS +OPTIONS_DEFAULT= DBUS +DBUS_DESC= Install dbus library + .include "${MASTERDIR}/Makefile" Index: devel/fpc-newt/Makefile =================================================================== --- devel/fpc-newt/Makefile (revision 311474) +++ devel/fpc-newt/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-newt -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= devel lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= NEWT "Install newt library" on +OPTIONS_DEFINE= NEWT +OPTIONS_DEFAULT= NEWT +NEWT_DESC= Install newt library + .include "${MASTERDIR}/Makefile" Index: devel/fpc-sdl/Makefile =================================================================== --- devel/fpc-sdl/Makefile (revision 311477) +++ devel/fpc-sdl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-sdl -# Date created: 2009-01-06 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTVERSION= 0 PORTREVISION= 3 @@ -19,6 +15,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= SDL "Install SDL library" on +OPTIONS_DEFINE= SDL +OPTIONS_DEFAULT= SDL +SDL_DESC= Install SDL library + .include "${MASTERDIR}/Makefile" Index: devel/ode/Makefile =================================================================== --- devel/ode/Makefile (revision 311499) +++ devel/ode/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ode -# Date created: 11 Oct 2003 -# Whom: David Yeske -# +# Created by: David Yeske # $FreeBSD$ -# PORTNAME= ode PORTVERSION= 0.11.1 @@ -23,38 +19,41 @@ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" -OPTIONS= GIMPACT "Enable gimpact instead of opcode support" off \ - GYROSCOPIC "Configure ODE to work with gyroscopic term" on \ - DOUBLE "Enable double precision (BROKEN with GIMPACT)" off \ - OU "Enable Thread-local storage (Experimental)" off +OPTIONS_DEFINE= GIMPACT GYROSCOPIC DOUBLE OU +OPTIONS_DEFAULT= GYROSCOPIC +GIMPACT_DESC= Enable gimpact instead of opcode support +GYROSCOPIC_DESC= Configure ODE to work with gyroscopic term +DOUBLE_DESC= Enable double precision (BROKEN with GIMPACT) +OU_DESC= Enable Thread-local storage (Experimental) + WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -.include +.include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif -.if defined(WITH_GIMPACT) && defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MGIMPACT} && ${PORT_OPTIONS:MDOUBLE} IGNORE= currently double precision is not supported by gimpact .endif -.if !defined(WITH_GIMPACT) +.if ${PORT_OPTIONS:MGIMPACT} +CONFIGURE_ARGS+= --with-trimesh=gimpact +.else CONFIGURE_ARGS+= --with-trimesh=opcode -.else -CONFIGURE_ARGS+= --with-trimesh=gimpact .endif -.if defined(WITHOUT_GYROSCOPIC) +.if empty(PORT_OPTIONS:MGYROSCOPIC) CONFIGURE_ARGS+= --disable-gyroscopic .endif -.if defined(WITH_DOUBLE) +.if ${PORT_OPTIONS:MDOUBLE} CONFIGURE_ARGS+= --enable-double-precision .endif -.if defined(WITH_OU) +.if ${PORT_OPTIONS:MOU} CONFIGURE_ARGS+= --enable-ou .else CONFIGURE_ARGS+= --disable-ou @@ -78,4 +77,4 @@ ${SED} -e '/PACKAGE/ s|^|//|; /VERSION/ s|^|//|' ${WRKSRC}/ode/src/config.h \ > ${PREFIX}/include/ode/config.h -.include +.include Index: devel/ode-devel/Makefile =================================================================== --- devel/ode-devel/Makefile (revision 311500) +++ devel/ode-devel/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ode -# Date created: 11 Oct 2003 -# Whom: David Yeske -# +# Created by: David Yeske # $FreeBSD$ -# PORTNAME= ode DISTVERSION= ${ODEVER}-060223 @@ -24,10 +20,13 @@ USE_GMAKE= yes MAKE_JOBS_UNSAFE= yes -OPTIONS= OPCODE "Enable code required by TriList (trimesh) class" on +OPTIONS_DEFINE= OPCODE +OPTIONS_DEFAULT= OPCODE -.include +OPCODE_DESC= Enable code required by TriList (trimesh) class +.include + .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif @@ -40,7 +39,7 @@ s|-L/usr/lib/X11R6||; s|-L/usr/lib/X11||; s|-L/usr/X11R6/lib|-L${LOCALBASE}/lib|; \ s|-fno-rtti||; s|-ffast-math|${CXXFLAGS} -I${LOCALBASE}/include|' \ ${WRKSRC}/config/makefile.unix-gcc -.if !defined(WITHOUT_OPCODE) +.if ${PORT_OPTIONS:MOPCODE} @${REINPLACE_CMD} -e 's/^#OPCODE_DIRECTORY/OPCODE_DIRECTORY/' \ ${WRKSRC}/config/user-settings .endif @@ -55,4 +54,4 @@ @${MKDIR} ${PREFIX}/include/ode @${INSTALL_DATA} ${WRKSRC}/include/ode/*.h ${PREFIX}/include/ode -.include +.include Index: devel/pikdev/Makefile =================================================================== --- devel/pikdev/Makefile (revision 311504) +++ devel/pikdev/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: pikdev -# Date created: 2006-03-14 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= pikdev PORTVERSION= 0.9.2 @@ -29,25 +25,26 @@ CONFIGURE_ARGS+= --with-pic=yes SUB_FILES= pkg-message -OPTIONS= DEBUG "Enable debug information" off \ - NLS "Native Language Support" on +OPTIONS_DEFINE= DEBUG NLS +OPTIONS_DEFAULT= NLS -.include +DEBUG_DESC= Enable debug information +.include + .if ${ARCH} == "sparc64" BROKEN= Does not compile on sparc64 .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug=full .endif -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" -FLAG_NLS= true +.else +PLIST_SUB+= NLS="@comment " .endif post-patch: @@ -57,11 +54,11 @@ post-configure: ${REINPLACE_CMD} -e 's|^install-data-am: install-docs install-nls|install-data-am:|g' \ ${WRKSRC}/doc/en/${MAKEFILE} -.if !defined(FLAG_NLS) +.if empty(PORT_OPTIONS:MNLS) ${REINPLACE_CMD} -e 's|^install-data-am: install-nls|install-data-am:|g' ${WRKSRC}/po/Makefile .endif post-install: ${CAT} ${PKGMESSAGE} -.include +.include Index: emulators/gngeo/Makefile =================================================================== --- emulators/gngeo/Makefile (revision 311505) +++ emulators/gngeo/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: gngeo -# Date created: 17 Aug 2005 -# Whom: Alejandro Pulver -# +# Created by: Alejandro Pulver # $FreeBSD$ -# PORTNAME= gngeo PORTVERSION= 0.7 @@ -28,39 +24,43 @@ SUB_FILES= pkg-message -OPTIONS= GUI "Enable GUI support (experimental)" off \ - I386ASM "Use i386 optimization" on \ - RAZE "Use Raze as z80 emulator (only for i386)" on \ - STAR "Use Starscream as 68k emulator (only for i386)" on +OPTIONS_DEFINE= GUI +OPTIONS_DEFINE_i386= I386ASM RAZE STAR +OPTIONS_DEFAULT= I386ASM RAZE STAR +GUI_DESC= Enable GUI support (experimental) +I386ASM_DESC= Use optimization (i386 only) +RAZE_DESC= Use Raze as z80 emulator (i386 only) +STAR_DESC= Use Starscream as 68k emulator (i386 only) + MAN1= gngeo.1 -.include +.include -.if !defined(WITHOUT_I386ASM) || !defined(WITHOUT_RAZE) || \ - !defined(WITHOUT_STAR) +.if ${PORT_OPTIONS:MI386ASM} || ${PORT_OPTIONS:MRAZE} || \ + ${PORT_OPTIONS:MSTAR} BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm .endif -.if defined(WITH_GUI) +.if ${PORT_OPTIONS:MGUI} CONFIGURE_ARGS+= --enable-gui .else CONFIGURE_ARGS+= --disable-gui .endif -.if !defined(WITHOUT_I386ASM) && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MI386ASM} CONFIGURE_ARGS+= --enable-i386asm .else CONFIGURE_ARGS+= --disable-i386asm .endif -.if !defined(WITHOUT_RAZE) && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MRAZE} CONFIGURE_ARGS+= --enable-raze .else CONFIGURE_ARGS+= --enable-mamez80 .endif -.if !defined(WITHOUT_STAR) && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MSTAR} CONFIGURE_ARGS+= --enable-starscream .else CONFIGURE_ARGS+= --enable-gen68k @@ -76,4 +76,4 @@ ${INSTALL_DATA} ${WRKSRC}/sample_gngeorc ${EXAMPLESDIR}/gngeorc @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} -.include +.include Index: emulators/loemu/Makefile =================================================================== --- emulators/loemu/Makefile (revision 311510) +++ emulators/loemu/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: loemu -# Date created: 2007-02-27 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= loemu PORTVERSION= 0.3.1 @@ -23,26 +19,29 @@ USE_PYDISTUTILS= yes NO_BUILD= yes -OPTIONS= MAME "Install mame emulator" on \ - XMAME "Install xmame emulator" off \ - SNES9X "Install snes9x emulator" on \ - ZSNES "Install zsnes emulator" off +OPTIONS_DEFINE= MAME XMAME SNES9X ZSNES +OPTIONS_DEFAULT= MAME SNES9X -.include +MAME_DESC= Install mame emulator +XMAME_DESC= Install xmame emulator +SNES9X_DESC= Install snes9x emulator +ZSNES_DESC= Install zsnes emulator -.if !defined(WITHOUT_MAME) +.include + +.if ${PORT_OPTIONS:MMAME} RUN_DEPENDS+= mame:${PORTSDIR}/emulators/mame .endif -.if defined(WITH_XMAME) +.if ${PORT_OPTIONS:MXMAME} RUN_DEPENDS+= xmame:${PORTSDIR}/emulators/xmame .endif -.if !defined(WITHOUT_SNES9X) +.if ${PORT_OPTIONS:MSNES9X} RUN_DEPENDS+= snes9x:${PORTSDIR}/emulators/snes9x .endif -.if defined(WITH_ZSNES) +.if ${PORT_OPTIONS:MZSNES} RUN_DEPENDS+= zsnes:${PORTSDIR}/emulators/zsnes .endif @@ -56,4 +55,4 @@ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|g' \ ${WRKSRC}/setup.py -.include +.include Index: emulators/mednafen/Makefile =================================================================== --- emulators/mednafen/Makefile (revision 311511) +++ emulators/mednafen/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mednafen -# Date created: 2006-02-28 -# Whom: Charlie & -# +# Created by: Charlie & # $FreeBSD$ -# PORTNAME= mednafen PORTVERSION= 0.8.B @@ -30,17 +26,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME} SUB_FILES= pkg-message -OPTIONS= NLS "Native Language Support" on +OPTIONS_DEFINE= NLS DOCS +OPTIONS_DEFAULT= NLS DOCS -.include +.include -.if defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " -.else -USE_GETTEXT= yes -PLIST_SUB+= NLS="" -FLAG_NLS= true .endif .if ${ARCH}==sparc64 @@ -53,10 +49,10 @@ ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include +.include Index: emulators/mupen64-base/Makefile =================================================================== --- emulators/mupen64-base/Makefile (revision 311511) +++ emulators/mupen64-base/Makefile (working copy) @@ -25,14 +25,16 @@ MUPEN64VERSION= 0.5 FIXFILES?= r4300/r4300.c memory/dma.c r4300/recomp.c r4300/x86/assemble.c -OPTIONS?= GTK2 "Use gtk20 instead of gtk12" off +OPTIONS_DEFINE?= GTK2 -.include +GTK2_DESC= Use gtk20 instead of gtk12 -.if defined(WITH_GTK2) +.include + +.if ${PORT_OPTIONS:MGTK2} HAVE_GTK2= true .endif .include "${MASTERDIR}/Makefile.common" -.include +.include Index: emulators/mupen64-dummyaudio/Makefile =================================================================== --- emulators/mupen64-dummyaudio/Makefile (revision 311511) +++ emulators/mupen64-dummyaudio/Makefile (working copy) @@ -10,6 +10,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-glide/Makefile =================================================================== --- emulators/mupen64-glide/Makefile (revision 311511) +++ emulators/mupen64-glide/Makefile (working copy) @@ -17,6 +17,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-gln64/Makefile =================================================================== --- emulators/mupen64-gln64/Makefile (revision 311511) +++ emulators/mupen64-gln64/Makefile (working copy) @@ -16,6 +16,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-input/Makefile =================================================================== --- emulators/mupen64-input/Makefile (revision 311511) +++ emulators/mupen64-input/Makefile (working copy) @@ -13,6 +13,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-rsp/Makefile =================================================================== --- emulators/mupen64-rsp/Makefile (revision 311511) +++ emulators/mupen64-rsp/Makefile (working copy) @@ -10,6 +10,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-sdlaudio/Makefile =================================================================== --- emulators/mupen64-sdlaudio/Makefile (revision 311511) +++ emulators/mupen64-sdlaudio/Makefile (working copy) @@ -14,6 +14,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-sdlinput/Makefile =================================================================== --- emulators/mupen64-sdlinput/Makefile (revision 311511) +++ emulators/mupen64-sdlinput/Makefile (working copy) @@ -16,6 +16,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-softgfx/Makefile =================================================================== --- emulators/mupen64-softgfx/Makefile (revision 311511) +++ emulators/mupen64-softgfx/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64-softgfx -# Date created: 2007-10-08 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 PKGNAMESUFFIX= -softgfx @@ -18,6 +14,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-sound/Makefile =================================================================== --- emulators/mupen64-sound/Makefile (revision 311511) +++ emulators/mupen64-sound/Makefile (working copy) @@ -10,6 +10,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64-tr64/Makefile =================================================================== --- emulators/mupen64-tr64/Makefile (revision 311511) +++ emulators/mupen64-tr64/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64-tr64 -# Date created: 2007-10-09 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTVERSION= 0.7.8 PORTREVISION= 3 @@ -20,6 +16,6 @@ MASTERDIR= ${.CURDIR}/../mupen64-base -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-audio-sdl/Makefile =================================================================== --- emulators/mupen64plus-audio-sdl/Makefile (revision 311511) +++ emulators/mupen64plus-audio-sdl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-audio-sdl -# Date created: 2008-05-16 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PKGNAMESUFFIX= -audio-sdl @@ -13,6 +9,6 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-input-sdl/Makefile =================================================================== --- emulators/mupen64plus-input-sdl/Makefile (revision 311511) +++ emulators/mupen64plus-input-sdl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-input-sdl -# Date created: 2008-05-16 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PKGNAMESUFFIX= -input-sdl @@ -11,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-plugins/Makefile =================================================================== --- emulators/mupen64plus-plugins/Makefile (revision 311511) +++ emulators/mupen64plus-plugins/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-plugins -# Date created: 2011-12-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= mupen64plus PORTVERSION= 1.99.4 @@ -16,28 +12,31 @@ MAINTAINER?= acm@FreeBSD.org COMMENT= Third party plugins for Mupen64plus -OPTIONS= VIDEO_ARACHNOID "Arachnoid video plugin" on \ - VIDEO_GLIDE64 "Glide64 video plugin" on \ - VIDEO_Z64 "z64 video plugin" on \ - RSP_Z64 "z64 RSP plugin" on +OPTIONS_DEFINE= VIDEO_ARACHNOID VIDEO_GLIDE64 VIDEO_Z64 RSP_64 +OPTIONS_DEFAULT= VIDEO_ARACHNOID VIDEO_GLIDE64 VIDEO_Z64 RSP_64 -.include +VIDEO_ARACHNOID_DESC= Arachnoid video plugin +VIDEO_GLIDE64_DESC= Glide64 video plugin +VIDEO_Z64_DESC= "z64 video plugin +RSP_Z64_DESC= z64 RSP plugin + +.include # Graphics plugins -.if defined(WITH_VIDEO_ARACHNOID) +.if ${PORT_OPTIONS:MVIDEO_ARACHNOID} RUN_DEPENDS+= ${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-arachnoid.so:${PORTSDIR}/emulators/mupen64plus-video-arachnoid .endif -.if defined(WITH_VIDEO_GLIDE64) +.if ${PORT_OPTIONS:MVIDEO_GLIDE64} RUN_DEPENDS+= ${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-glide64.so:${PORTSDIR}/emulators/mupen64plus-video-glide64 .endif -.if defined(WITH_VIDEO_Z64) +.if ${PORT_OPTIONS:MVIDEO_Z64} RUN_DEPENDS+= ${LOCALBASE}/lib/${PORTNAME}/mupen64plus-video-z64.so:${PORTSDIR}/emulators/mupen64plus-video-z64 .endif # RSP plugins -.if defined(WITH_RSP_Z64) +.if ${PORT_OPTIONS:MRSP_Z64} RUN_DEPENDS+= ${LOCALBASE}/lib/${PORTNAME}/mupen64plus-rsp-z64.so:${PORTSDIR}/emulators/mupen64plus-rsp-z64 .endif @@ -46,4 +45,4 @@ do-install: # empty -.include +.include Index: emulators/mupen64plus-rsp-hle/Makefile =================================================================== --- emulators/mupen64plus-rsp-hle/Makefile (revision 311511) +++ emulators/mupen64plus-rsp-hle/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-rsp-hle -# Date created: 2008-05-16 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PKGNAMESUFFIX= -rsp-hle @@ -11,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-rsp-z64/Makefile =================================================================== --- emulators/mupen64plus-rsp-z64/Makefile (revision 311511) +++ emulators/mupen64plus-rsp-z64/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-rsp-z64 -# Date created: 2011-12-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 2 PKGNAMESUFFIX= -rsp-z64 @@ -18,7 +14,7 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/${PORTNAME} LDFLAGS+= -L${LOCALBASE}/lib Index: emulators/mupen64plus-ui-console/Makefile =================================================================== --- emulators/mupen64plus-ui-console/Makefile (revision 311511) +++ emulators/mupen64plus-ui-console/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-ui-console -# Date created: 2010-11-28 -# Whom: Alonso Cardenas Marquez -# +# Created by: Alonso Cardenas Marquez # $FreeBSD$ -# PKGNAMESUFFIX= -ui-console @@ -11,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-video-arachnoid/Makefile =================================================================== --- emulators/mupen64plus-video-arachnoid/Makefile (revision 311511) +++ emulators/mupen64plus-video-arachnoid/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-video-arachnoid -# Date created: 2011-12-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 2 PKGNAMESUFFIX= -video-arachnoid @@ -18,7 +14,7 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/${PORTNAME} LDFLAGS+= -L${LOCALBASE}/lib Index: emulators/mupen64plus-video-glide64/Makefile =================================================================== --- emulators/mupen64plus-video-glide64/Makefile (revision 311511) +++ emulators/mupen64plus-video-glide64/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-video-glide64 -# Date created: 2011-12-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 2 PKGNAMESUFFIX= -video-glide64 @@ -18,7 +14,7 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/${PORTNAME} LDFLAGS+= -L${LOCALBASE}/lib Index: emulators/mupen64plus-video-rice/Makefile =================================================================== --- emulators/mupen64plus-video-rice/Makefile (revision 311511) +++ emulators/mupen64plus-video-rice/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-video-rice -# Date created: 2008-05-16 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PKGNAMESUFFIX= -video-rice @@ -13,6 +9,6 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # .include "${MASTERDIR}/Makefile" Index: emulators/mupen64plus-video-z64/Makefile =================================================================== --- emulators/mupen64plus-video-z64/Makefile (revision 311511) +++ emulators/mupen64plus-video-z64/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: mupen64plus-video-z64 -# Date created: 2011-12-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 2 PKGNAMESUFFIX= -video-z64 @@ -18,7 +14,7 @@ MASTERDIR= ${.CURDIR}/../mupen64plus-core -OPTIONS= # +OPTIONS_DEFINE= # CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/${PORTNAME} LDFLAGS+= -L${LOCALBASE}/lib Index: emulators/snes9x/Makefile =================================================================== --- emulators/snes9x/Makefile (revision 311511) +++ emulators/snes9x/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: snes9x -# Date created: 20 July 1997 -# Whom: Yukihiro Nakai -# +# Created by: Yukihiro Nakai # $FreeBSD$ -# PORTNAME= snes9x PORTVERSION= 1.51 @@ -33,44 +29,46 @@ PLIST_FILES= bin/${PORTNAME} SUB_FILES= pkg-message -OPTIONS= DEBUG "Enable debug information" off \ - OPENGL "Enable OpenGL support" off \ - SCREENSHOT "Enable screenshot support" on \ - X86_ASM "Use i386 optimization (only for i386)" on \ - MMX "Enable MMX (only for i386)" off \ - JMA "Enable JMA archive decompression support" on \ - NETPLAY "Enable network support" on +OPTIONS_DEFINE= DOCS DEBUG OPENGL SCREENSHOT JMA NETPLAY +OPTIONS_DEFINE_i386= X86_ASM MMX +OPTIONS_DEFAULT= OPENGL SCREENSHOT X86_ASM JMA NETPLAY -.include +DEBUG_DESC= Debug information +OPENGL_DESC= OpenGL support +SCREENSHOT_DESC= Screenshot support +X86_ASM_DESC= i386 optimization +MMX_DESC= MMX +JMA_DESC= JMA archive decompression support +NETPLAY_DESC= Network support -.if !defined(NOPORTDOCS) +.include + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= controls.txt control-inputs.txt changes.txt hardware.txt \ porting.html faqs.txt snapshots.txt snes9x.conf.default \ README .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --with-debug .else CONFIGURE_ARGS+= --without-debug .endif -.if ${ARCH} == "i386" -.if !defined(WITHOUT_X86_ASM) +.if ${PORT_OPTIONS:MX86_ASM} BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm CONFIGURE_ARGS+= --with-assembler .else CONFIGURE_ARGS+= --without-assembler .endif -.if defined(WITH_MMX) && !defined(PACKAGE_BUILDING) +.if ${PORT_OPTIONS:MMMX} && !defined(PACKAGE_BUILDING) CONFIGURE_ARGS+= --with-mmx .else CONFIGURE_ARGS+= --without-mmx .endif -.endif -.if defined(WITH_OPENGL) +.if ${PORT_OPTIONS:MOPENGL} USE_GL= yes CONFIGURE_ARGS+= --with-opengl SNES9X_BIN= osnes9x @@ -78,20 +76,20 @@ SNES9X_BIN= snes9x .endif -.if !defined(WITHOUT_SCREENSHOT) +.if ${PORT_OPTIONS:MSCREENSHOT} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png CONFIGURE_ARGS+= --with-screenshot .else CONFIGURE_ARGS+= --without-screenshot .endif -.if !defined(WITHOUT_JMA) +.if ${PORT_OPTIONS:MJMA} CONFIGURE_ARGS+= --with-jma-decomp .else CONFIGURE_ARGS+= --without-jma-decomp .endif -.if !defined(WITHOUT_NETPLAY) +.if ${PORT_OPTIONS:MNETPLAY} CONFIGURE_ARGS+= --with-netplay .else CONFIGURE_ARGS+= --without-netplay @@ -107,7 +105,7 @@ @${REINPLACE_CMD} -i "" -e 's|Pitch2|Pitch|g' ${WRKSRC}/unix/opengl.cpp do-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for FILE in control* changes.txt hardware.txt porting.html faqs.txt \ snapshots.txt snes9x.conf.default @@ -120,4 +118,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: emulators/yabause/Makefile =================================================================== --- emulators/yabause/Makefile (revision 311511) +++ emulators/yabause/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: yabause -# Date created: 2006-08-23 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= yabause PORTVERSION= 0.9.11.1 @@ -27,11 +23,14 @@ SUB_FILES= pkg-message MAN1= yabause.1 -OPTIONS= QT4 "Build wit qt4 interface instead of gtk2 one" on +OPTIONS_DEFINE= QT4 +OPTIONS_DEFAULT= QT4 +QT4_DESC= Build with qt4 interface instead of gtk2 one + .include -.if defined(WITH_QT4) +.if ${PORT_OPTIONS:MQT4} USE_QT4= corelib gui opengl CONFIGURE_ARGS+= --with-port=qt .else @@ -39,8 +38,6 @@ CONFIGURE_ARGS+= --with-port=gtk .endif -.include - post-patch: @${REINPLACE_CMD} -e "s|%%ACLOCAL%%|${ACLOCAL}|g" -e "s|%%AUTOCONF%%|${AUTOCONF}|g" \ -e "s|%%AUTOMAKE%%|${AUTOMAKE}|g" ${WRKSRC}/autogen.sh @@ -52,4 +49,4 @@ post-install: @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} -.include +.include Index: ftp/fpc-libcurl/Makefile =================================================================== --- ftp/fpc-libcurl/Makefile (revision 311474) +++ ftp/fpc-libcurl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-libcurl -# Date created: 2007-09-11 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= ftp lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBCURL "Install curl tools and library " on +OPTIONS_DEFINE= LIBCURL +OPTIONS_DEFAULT= LIBCURL +LIBCURL_DESC= Install curl tools and library + .include "${MASTERDIR}/Makefile" Index: games/alienarena/Makefile =================================================================== --- games/alienarena/Makefile (revision 311513) +++ games/alienarena/Makefile (working copy) @@ -1,9 +1,4 @@ -# New ports collection makefile for: alienarena -# Date created: 11 May 2006 -# Whom: alepulver -# # $FreeBSD$ -# PORTNAME= alienarena PORTVERSION= 2011.753 @@ -40,16 +35,20 @@ SUB_FILES= pkg-message -OPTIONS= CLIENT "Build client" on \ - DEDICATED "Build dedicated server" on +OPTIONS_MULTI= EXECUTABLE +OPTIONS_MULTI_EXECUTABLE= CLIENT DEDICATED +OPTIONS_DEFAULT= CLIENT DEDICATED +CLIENT_DESC= Build client +DEDICATED_DESC= Build dedicated server + PLIST_SUB= LIBDIR=${LIBDIR:S/${PREFIX}\///} LIBDIR= ${PREFIX}/lib/${PORTNAME} -.include +.include -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} USE_PKGCONFIG= yes LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl \ freetype.9:${PORTSDIR}/print/freetype2 \ @@ -61,21 +60,14 @@ USE_XORG= xxf86dga xxf86vm .endif -.if !defined(WITH_CLIENT) && defined(WITH_DEDICATED) -CONFIGURE_ARGS+=--disable-client -.endif - -.if !defined(WITH_CLIENT) && !defined(WITH_DEDICATED) -IGNORE= needs at least one executable (CLIENT or DEDICATED) -.endif - -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} PLIST_SUB+= CLIENT="" .else +CONFIGURE_ARGS+=--disable-client PLIST_SUB+= CLIENT="@comment " .endif -.if defined(WITH_DEDICATED) +.if ${PORT_OPTIONS:MDEDICATED} PLIST_SUB+= DEDICATED="" .else PLIST_SUB+= DEDICATED="@comment " @@ -93,11 +85,11 @@ ${LN} -s ${DATADIR}/arena/* ${LIBDIR}/arena ${LN} -s ${DATADIR}/botinfo ${LIBDIR} ${LN} -s ${DATADIR}/data1/* ${LIBDIR}/data1 -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} ${INSTALL_PROGRAM} ${WRKSRC}/crx \ ${PREFIX}/bin/${PORTNAME} .endif -.if defined(WITH_DEDICATED) +.if ${PORT_OPTIONS:MDEDICATED} ${INSTALL_PROGRAM} ${WRKSRC}/crx-ded \ ${PREFIX}/bin/${PORTNAME}-ded .endif @@ -107,4 +99,4 @@ @${CAT} ${PKGMESSAGE} @${ECHO_CMD} -.include +.include Index: games/balazarbrothers/Makefile =================================================================== --- games/balazarbrothers/Makefile (revision 311513) +++ games/balazarbrothers/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: balazarbrothers -# Date created: 2006-05-07 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= balazarbrothers PORTVERSION= 0.3.1 @@ -34,15 +30,18 @@ PYDISTUTILS_EGGINFODIR= ${PREFIX}/share DATADIR= share/balazar_brothers -OPTIONS= OPENAL "Use openal sound system" on +OPTIONS_DEFINE= OPENAL +OPTIONS_DEFAULT= OPENAL -.include +OPENAL_DESC= Use openal sound system -.if !defined(WITHOUT_OPENAL) +.include + +.if ${PORT_OPTIONS:MOPENAL} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_openal.so:${PORTSDIR}/audio/py-openal .endif post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.cfg -.include +.include Index: games/ceferino/Makefile =================================================================== --- games/ceferino/Makefile (revision 311513) +++ games/ceferino/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: ceferino -# Date created: 2006-01-11 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= ceferino PORTVERSION= 0.97.8 @@ -22,17 +18,17 @@ CEFEDIRS= ima music levels sounds -OPTIONS= NLS "Native Language Support" on +OPTIONS_DEFINE= NLS DOCS +OPTIONS_DEFAULT= NLS DOCS -.include +.include -.if defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " -.else -USE_GETTEXT= yes -PLIST_SUB+= NLS="" -FLAG_NLS= true .endif post-extract: @@ -47,7 +43,7 @@ @cd ${WRKSRC}/data && \ ${FIND} ${CEFEDIRS} -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} -E ${CEFEDIRS} -type f -iregex ".*\.(png|jpg|xm|map|wav)" -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; -.if defined(FLAG_NLS) +.if ${PORT_OPTIONS:MNLS} .for f in es ca fr ${MKDIR} ${PREFIX}/share/locale/${f}/LC_MESSAGES && \ ${INSTALL_DATA} ${WRKSRC}/po/${f}.gmo ${PREFIX}/share/locale/${f}/LC_MESSAGES/${PORTNAME}.mo @@ -55,10 +51,10 @@ .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && \ ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR} .endif -.include +.include Index: games/el-data/Makefile =================================================================== --- games/el-data/Makefile (revision 311513) +++ games/el-data/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: el-data -# Date created: 2006-08-18 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= data PORTVERSION= 192 @@ -30,17 +26,20 @@ WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}linux EL_DATA= ${PKGNAMEPREFIX:S/-/_/}linux_${PORTVERSION}.zip -OPTIONS= ELSOUND "Install additional sound files" on \ - ELMUSIC "Install additional music files" on +OPTIONS_DEFINE= ELSOUND ELMUSIC +OPTIONS_DEFAULT= ELSOUND ELMUSIC -.include +ELSOUND_DESC= Install additional sound files +ELMUSIC_DESC= Install additional music files -.if defined(WITH_ELSOUND) +.include + +.if ${PORT_OPTIONS:MELSOUND} DISTFILES+= EL_sound_191${EXTRACT_SUFX}:sound HAVE_ESOUND= yes .endif -.if defined(WITH_ELMUSIC) +.if ${PORT_OPTIONS:MELMUSIC} DISTFILES+= music_full${EXTRACT_SUFX}:music HAVE_EMUSIC= yes .endif @@ -79,4 +78,4 @@ ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; -.include +.include Index: games/galaxymage/Makefile =================================================================== --- games/galaxymage/Makefile (revision 311513) +++ games/galaxymage/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: galaxymage -# Date created: 2006-01-30 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= galaxymage PORTVERSION= 0.3.0 @@ -23,11 +19,14 @@ USE_GETTEXT= yes NO_BUILD= yes -OPTIONS= PSYCO "Use just-in-time Python compiler" off +OPTIONS_DEFINE= PSYCO DOCS +OPTIONS_DEFAULT= DOCS -.include +PSYCO_DESC= Use just-in-time Python compiler -.if defined(WITH_PSYCO) +.include + +.if ${PORT_OPTIONS:MPSYCO} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco .endif @@ -50,7 +49,7 @@ ${INSTALL_DATA} ${WRKSRC}/locale/${FILE}/LC_MESSAGES/* \ ${PREFIX}/share/locale/${FILE}/LC_MESSAGES .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC}/doc && \ ${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \ @@ -58,4 +57,5 @@ "${DOCSDIR}/{}" \; @${INSTALL_DATA} ${WRKSRC}/CREDITS.txt ${WRKSRC}/README.txt ${DOCSDIR} .endif -.include + +.include Index: games/glest/Makefile =================================================================== --- games/glest/Makefile (revision 311513) +++ games/glest/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: glest -# Date created: 2005-10-30 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= glest PORTVERSION= 3.2.2 @@ -36,13 +32,16 @@ JAM_CMD= ${LOCALBASE}/bin/jam -qa -OPTIONS= EDITOR "Build map editor" off +OPTIONS_DEFINE= EDITOR DOCS +OPTIONS_DEFAULT= DOCS +EDITOR_DESC= Build map editor + EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME} -.include +.include -.if defined(WITH_EDITOR) +.if ${PORT_OPTIONS:MEDITOR} USE_WX= 2.6+ WX_CONF_ARGS= relative WANT_UNICODE= yes @@ -74,7 +73,7 @@ @cd ${WRKSRC} && ${JAM_CMD} do-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/code_license.txt ${DOCSDIR}/code_license.txt .endif @@ -90,4 +89,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: games/linux-nerogame/Makefile =================================================================== --- games/linux-nerogame/Makefile (revision 311513) +++ games/linux-nerogame/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: linux-nerogame -# Date created: 2007-10-04 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= nerogame PORTVERSION= 2.0 @@ -24,15 +20,17 @@ DATADIR= share/${PKGNAMEPREFIX}${PORTNAME} WRKSRC= ${WRKDIR}/${DISTNAME} -OPTIONS= NVIDIA "Install support for nvidia" off +OPTIONS_DEFINE= NVIDIA -.include +NVIDIA_DESC= Install support for nvidia +.include + .if ${OSVERSION} < 800076 BROKEN= does not build .endif -.if defined(WITH_NVIDIA) +.if ${PORT_OPTIONS:MNVIDIA} . if !exists(${LINUXBASE}/usr/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver . endif @@ -62,4 +60,4 @@ post-install: ${CAT} ${PKGMESSAGE} -.include +.include Index: games/linux-quake4/Makefile =================================================================== --- games/linux-quake4/Makefile (revision 311513) +++ games/linux-quake4/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Quake 4 -# Date created: 21 Oct 2005 -# Whom: Ed Schouten -# +# Created by: Ed Schouten # $FreeBSD$ -# PORTNAME= quake4 PORTVERSION= 1.4.2 @@ -28,12 +24,15 @@ LINUXBASE="${LINUXBASE}" SUB_FILES= pkg-message -OPTIONS= SMP "Install threaded version" on \ - GERMANY "Germany version" off +OPTIONS_DEFINE= SMP GERMANY DOCS +OPTIONS_DEFAULT= SMP DOCS -.include +SMP_DESC= Install threaded version +GERMANY_DESC= Germany version -.if !defined(WITHOUT_SMP) +.include + +.if ${PORT_OPTIONS:MSMP} PLIST_SUB+= SMP="" .else PLIST_SUB+= SMP="@comment " @@ -63,7 +62,7 @@ ${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}${FILE}.sh ${PREFIX}/bin/${PKGNAMEPREFIX}${FILE} ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/${FILE}.x86 ${PREFIX}/${Q4DIR} .endfor -.if !defined(WITHOUT_SMP) +.if ${PORT_OPTIONS:MSMP} ${INSTALL_SCRIPT} ${WRKSRC}/${PKGNAMEPREFIX}quake4smp.sh ${PREFIX}/bin/${PKGNAMEPREFIX}quake4smp ${INSTALL_PROGRAM} ${WRKSRC}/bin/FreeBSD/x86/quake4smp.x86 ${PREFIX}/${Q4DIR} .endif @@ -82,7 +81,7 @@ -exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \; # All version (except germany) or only germany version -.if defined(WITH_GERMANY) +.if ${PORT_OPTIONS:MGERMANY} @cd ${WRKSRC}/germany && \ ${FIND} -E q4base -type f -iregex ".*\.(pk4)" \ -exec ${INSTALL_DATA} "{}" "${PREFIX}/${Q4DIR}/{}" \; @@ -93,7 +92,7 @@ .endif # Documentation -.if !defined (NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @cd ${WRKSRC}/Docs && \ ${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \; @@ -105,4 +104,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: games/linux-savage/Makefile =================================================================== --- games/linux-savage/Makefile (revision 311513) +++ games/linux-savage/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: linux-savage -# Date created: 2006-09-06 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= savage PORTVERSION= 2.00e @@ -34,11 +30,14 @@ SAVAGEDIR= lib/${PKGNAMEPREFIX}${PORTNAME} -OPTIONS= NVIDIA_GL "Install support for nvidia" off +OPTIONS_DEFINE= NVIDIA_GL DOCS +OPTIONS_DEFAULT= DOCS -.include +NVIDIA_GL_DESC= Install support for nvidia -.if defined(WITH_NVIDIA_GL) +.include + +.if ${PORT_OPTIONS:MNVIDIA_GL} . if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \ ${LINUXBASE}/usr/X11R6/lib/libGLU.so.1:${PORTSDIR}/graphics/linux-libGLU @@ -74,7 +73,7 @@ .endfor ${LN} -s ${PREFIX}/${SAVAGEDIR}/libs/libfmod-3.75.so ${PREFIX}/${SAVAGEDIR}/libs/libfmod.so -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${PREFIX}/${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/licenses.txt ${PREFIX}/${DOCSDIR} .endif @@ -83,4 +82,4 @@ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} -.include +.include Index: games/linux-savage-samuraiwars/Makefile =================================================================== --- games/linux-savage-samuraiwars/Makefile (revision 311513) +++ games/linux-savage-samuraiwars/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: linux-savage-samuraiwars -# Date created: 2007-09-08 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= savage-samuraiwars PORTVERSION= 2.00c @@ -33,11 +29,13 @@ SAMURAIWARSDIR= lib/${PKGNAMEPREFIX}${PORTNAME} -OPTIONS= NVIDIA_GL "Install support for nvidia" off +OPTIONS_DEFINE= NVIDIA_GL -.include +NVIDIA_GL_DESC= Install support for nvidia -.if defined(WITH_NVIDIA_GL) +.include + +.if ${PORT_OPTIONS:MNVIDIA_GL} . if !exists(${LINUXBASE}/usr/X11R6/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver \ ${LINUXBASE}/usr/X11R6/lib/libGLU.so.1:${PORTSDIR}/graphics/linux-libGLU @@ -73,7 +71,7 @@ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${SAMURAIWARSDIR} .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${PREFIX}/${DOCSDIR} . for FILE in commander_controls.txt licenses.txt ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${DOCSDIR} @@ -84,4 +82,4 @@ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} -.include +.include Index: games/linux-warsow/Makefile =================================================================== --- games/linux-warsow/Makefile (revision 311513) +++ games/linux-warsow/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: warsow -# Date created: 2005-11-12 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= warsow PORTVERSION= 0.12 @@ -46,17 +42,19 @@ "Game;" \ false -OPTIONS= CLIENT "Install client" on \ - SERVER "Install dedicated server" on \ - NVIDIA "Install support for nvidia" off +OPTIONS_MULTI= EXECUTABLE +OPTIONS_MULTI_EXECUTABLE= CLIENT SERVER +OPTIONS_DEFINE= NVIDIA -.include +OPTIONS_DEFAULT= CLIENT SERVER -.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) -IGNORE= requires at least one of CLIENT and SERVER options -.endif +CLIENT_DESC= Install client +SERVER_DESC= Install dedicated server +NVIDIA_DESC= Install support for nvidia -.if defined(WITH_NVIDIA) +.include + +.if ${PORT_OPTIONS:MNVIDIA} . if !exists(${LINUXBASE}/usr/lib/libGL.so.1) RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver . endif @@ -76,7 +74,7 @@ ARCHSUFFIX=${ARCHSUFFIX} .endif -.if !defined(WITHOUT_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} USE_LINUX_APPS+=sdl12 libvorbis jpeg curl PLIST_SUB+= CLIENT="" WARSOW_TARGET+= warsow @@ -87,7 +85,7 @@ PLIST_SUB+= CLIENT="@comment " .endif -.if defined(WITH_SERVER) +.if ${PORT_OPTIONS:MSERVER} PLIST_SUB+= SERVER="" WARSOW_TARGET+= wsw_server WARSOW_EXTRACT+=${PORTNAME}/wsw_server${ENGINESUFFIX} @@ -105,4 +103,4 @@ .endfor ${LN} -s ${DATADIR}/* ${WARSOW_DIR}/basewsw -.include +.include Index: games/marsnomercy/Makefile =================================================================== --- games/marsnomercy/Makefile (revision 311513) +++ games/marsnomercy/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Mars Land of No Mercy -# Date created: 2006-03-21 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= marsnomercy PORTVERSION= 0.2.1 @@ -27,18 +23,20 @@ SUB_FILES= mars-nomercy pkg-message WRKSRC= ${WRKDIR}/mars-${PORTVERSION} -OPTIONS= DEBUG "With additional debug information" off \ - OPENGL "Install support for opengl" off +OPTIONS_DEFINE= DEBUG OPENGL -.include +DEBUG_DESC= With additional debug information +OPENGL_DESC= Install support for OpenGL -.if defined(WITH_DEBUG) +.include + +.if ${PORT_OPTIONS:MDEBUG} SCONS_ARGS+= debug=1 .else SCONS_ARGS+= debug=0 .endif -.if defined(WITH_OPENGL) +.if ${PORT_OPTIONS:MOPENGL} SCONS_ARGS+= with_opengl=1 .else SCONS_ARGS+= with_opengl=0 @@ -64,4 +62,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: games/naev/Makefile =================================================================== --- games/naev/Makefile (revision 311513) +++ games/naev/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: naev -# Date created: 2009-04-26 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= naev PORTVERSION= 0.5.3 @@ -35,19 +31,22 @@ PLIST_FILES= bin/${PORTNAME} SUB_FILES= pkg-message -OPTIONS= OPENAL "Use the OpenAL sound backend" on \ - SDL_MIXER "Use the SDL_mixer sound backend" on +OPTIONS_DEFINE= OPENAL SDL_MIXER +OPTIONS_DEFAULT= OPENAL SDL_MIXER +OPENAL_DESC= Use the OpenAL sound backend +SDL_MIXER_DESC= Use the SDL_mixer sound backend + .include -.if defined(WITH_OPENAL) +.if ${PORT_OPTIONS:MOPENAL} USE_OPENAL= yes CONFIGURE_ARGS+= --with-openal=yes .else CONFIGURE_ARGS+= --with-openal=no .endif -.if defined(WITH_SDL_MIXER) +.if ${PORT_OPTIONS:MSDL_MIXER} USE_SDL+= mixer CONFIGURE_ARGS+= --with-sdlmixer=yes .else Index: games/pysycache-lang/Makefile =================================================================== --- games/pysycache-lang/Makefile (revision 311513) +++ games/pysycache-lang/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: pysycache-lang -# Date created: 2006-02-22 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= lang PORTVERSION= 2.0 @@ -24,71 +20,58 @@ WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME} DATADIR= ${PREFIX}/share/${DIST_SUBDIR} -OPTIONS= FRENCH "French language support" on \ - GERMAN "German language support" on \ - ITALIAN "Italian language support" on \ - PORTUGUESE "Portuguese language support" on \ - SPANISH "Spanish language support" on +OPTIONS_MULTI= LANG +OPTIONS_MULTI_LANG= FRENCH GERMAN ITALIAN PORTUGESE SPANISH +OPTIONS_DEFAULT= FRENCH GERMAN ITALIAN PORTUGESE SPANISH -.include +FRENCH_DESC= French language support +GERMAN_DESC= German language support +ITALIAN_DESC= Italian language support +PORTUGUESE_DESC= Portuguese language support +SPANISH_DESC= Spanish language support -.if !defined(WITHOUT_FRENCH) +.include + +.if ${PORT_OPTIONS:MFRENCH} DISTFILES+= pysycache-lang-fr-${PORTVERSION}.zip PLIST_SUB+= FRENCH="" -FLAG_LANG= true HAVE_LANG+= fr .else PLIST_SUB+= FRENCH="@comment " .endif -.if !defined(WITHOUT_GERMAN) +.if ${PORT_OPTIONS:MGERMAN} DISTFILES+= pysycache-lang-de-${PORTVERSION}.zip PLIST_SUB+= GERMAN="" -FLAG_LANG= true HAVE_LANG+= de .else PLIST_SUB+= GERMAN="@comment " .endif -.if !defined(WITHOUT_ITALIAN) +.if ${PORT_OPTIONS:MITALIAN} DISTFILES+= pysycache-lang-it-${PORTVERSION}.zip PLIST_SUB+= ITALIAN="" -FLAG_LANG= true HAVE_LANG+= it .else PLIST_SUB+= ITALIAN="@comment " .endif -.if !defined(WITHOUT_PORTUGUESE) +.if ${PORT_OPTIONS:MPORTUGUESE} DISTFILES+= pysycache-lang-pt-${PORTVERSION}.zip PLIST_SUB+= PORTUGUESE="" -FLAG_LANG= true HAVE_LANG+= pt .else PLIST_SUB+= PORTUGUESE="@comment " .endif -.if !defined(WITHOUT_SPANISH) +.if ${PORT_OPTIONS:MSPANISH} DISTFILES+= pysycache-lang-es-${PORTVERSION}.zip PLIST_SUB+= SPANISH="" -FLAG_LANG= true HAVE_LANG+= es .else PLIST_SUB+= SPANISH="@comment " .endif -pre-fetch: -.if defined(FLAG_LANG) - @${TRUE} -.else - @${ECHO} "################################" - @${ECHO} "# #" - @${ECHO} "# No language support selected #" - @${ECHO} "# #" - @${ECHO} "################################" - @${FALSE} -.endif - do-extract: @${MKDIR} ${WRKSRC} .for OPT in ${HAVE_LANG} @@ -100,4 +83,4 @@ ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; -.include +.include Index: games/pysycache-themes/Makefile =================================================================== --- games/pysycache-themes/Makefile (revision 311513) +++ games/pysycache-themes/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: pysycache-themes -# Date created: 2006-02-22 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= themes PORTVERSION= 2.0 @@ -24,111 +20,99 @@ WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME} DATADIR= ${PREFIX}/share/${DIST_SUBDIR} -OPTIONS= ANIMALS_MOVE "Animals move mouse theme" on \ - EARTH_MOVE "Earth move mouse theme" on \ - FOOD_MOVE "Food move mouse theme" on \ - PLANTS_MOVE "Plants move mouse theme" on \ - SKY_MOVE "Sky move mouse theme" on \ - SPORTS_MOVE "Sports move mouse theme" on \ - VEHICLE_MOVE "Vehicle move mouse theme" on \ - WORLD_MOVE "World move mouse theme" on \ - AFRICA_ACTIVITY "Africa activity theme" on +OPTIONS_MULTI= THEME +OPTIONS_MULTI_THEME= ANIMALS_MOVE EARTH_MOVE FOOD_MOVE PLANTS_MOVE \ + SKY_MOVE SPORTS_MOVE VEHICLE_MOVE WORLD_MOVE \ + AFRICA_ACTIVITY -.include +OPTIONS_DEFAULT= ANIMALS_MOVE EARTH_MOVE FOOD_MOVE PLANTS_MOVE \ + SKY_MOVE SPORTS_MOVE VEHICLE_MOVE WORLD_MOVE \ + AFRICA_ACTIVITY -.if !defined(WITHOUT_ANIMALS_MOVE) +ANIMALS_MOVE_DESC= Animals move mouse theme +EARTH_MOVE_DESC= Earth move mouse theme +FOOD_MOVE_DESC= Food move mouse theme +PLANTS_MOVE_DESC= Plants move mouse theme +SKY_MOVE_DESC= Sky move mouse theme +SPORTS_MOVE_DESC= Sports move mouse theme +VEHICLE_MOVE_DESC= Vehicle move mouse theme +WORLD_MOVE_DESC= World move mouse theme +AFRICA_ACTIVITY_DESC= Africa activity theme + +.include + +.if ${PORT_OPTIONS:MANIMALS_MOVE} DISTFILES+= animals-${PORTVERSION}.zip PLIST_SUB+= ANIMALS="" -FLAG_THEME= true HAVE_THEME+= animals .else PLIST_SUB+= ANIMALS="@comment " .endif -.if !defined(WITHOUT_EARTH_MOVE) +.if ${PORT_OPTIONS:MEARTH_MOVE} DISTFILES+= earth-${PORTVERSION}.zip PLIST_SUB+= EARTH="" -FLAG_THEME= true HAVE_THEME+= earth .else PLIST_SUB+= EARTH="@comment " .endif -.if !defined(WITHOUT_FOOD_MOVE) +.if ${PORT_OPTIONS:MFOOD_MOVE} DISTFILES+= food-${PORTVERSION}.zip PLIST_SUB+= FOOD="" -FLAG_THEME= true HAVE_THEME+= food .else PLIST_SUB+= FOOD="@comment " .endif -.if !defined(WITHOUT_PLANTS_MOVE) +.if ${PORT_OPTIONS:MPLANTS_MOVE} DISTFILES+= plants-${PORTVERSION}.zip PLIST_SUB+= PLANTS="" -FLAG_THEME= true HAVE_THEME+= plants .else PLIST_SUB+= PLANTS="@comment " .endif -.if !defined(WITHOUT_SKY_MOVE) +.if ${PORT_OPTIONS:MSKY_MOVE} DISTFILES+= sky-${PORTVERSION}.zip PLIST_SUB+= SKY="" -FLAG_THEME= true HAVE_THEME+= sky .else PLIST_SUB+= SKY="@comment " .endif -.if !defined(WITHOUT_SPORTS_MOVE) +.if ${PORT_OPTIONS:MSPORTS_MOVE} DISTFILES+= sports-${PORTVERSION}.zip PLIST_SUB+= SPORTS="" -FLAG_THEME= true HAVE_THEME+= sports .else PLIST_SUB+= SPORTS="@comment " .endif -.if !defined(WITHOUT_VEHICLE_MOVE) +.if ${PORT_OPTIONS:MVEHICLE_MOVE} DISTFILES+= vehicle-${PORTVERSION}.zip PLIST_SUB+= VEHICLE="" -FLAG_THEME= true HAVE_THEME+= vehicle .else PLIST_SUB+= VEHICLE="@comment " .endif -.if !defined(WITHOUT_WORLD_MOVE) +.if ${PORT_OPTIONS:MWORLD_MOVE} DISTFILES+= world-${PORTVERSION}.zip PLIST_SUB+= WORLD="" -FLAG_THEME= true HAVE_THEME+= world .else PLIST_SUB+= WORLD="@comment " .endif -.if !defined(WITHOUT_AFRICA_ACTIVITY) +.if ${PORT_OPTIONS:MAFRICA_ACTIVITY} DISTFILES+= africa-${PORTVERSION}.zip PLIST_SUB+= AFRICA="" -FLAG_THEME= true HAVE_THEME+= africa .else PLIST_SUB+= AFRICA="@comment " .endif -pre-fetch: -.if defined(FLAG_THEME) - @${TRUE} -.else - @${ECHO} "######################" - @${ECHO} "# #" - @${ECHO} "# No themes selected #" - @${ECHO} "# #" - @${ECHO} "######################" - @${FALSE} -.endif - do-extract: @${MKDIR} ${WRKSRC} .for OPT in ${HAVE_THEME} @@ -140,4 +124,4 @@ ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; -.include +.include Index: games/scourge/Makefile =================================================================== --- games/scourge/Makefile (revision 311513) +++ games/scourge/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Scourge -# Date created: 2005-10-08 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= scourge PORTVERSION= 0.21.1 @@ -33,11 +29,13 @@ PLIST_FILES= bin/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME} -OPTIONS= DEBUG "Produce an executable with debugging symbols" off +OPTIONS_DEFINE= DEBUG -.include +DEBUG_DESC= Produce an executable with debugging symbols -.if defined(WITH_DEBUG) +.include + +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .endif @@ -53,4 +51,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: games/vdrift/Makefile =================================================================== --- games/vdrift/Makefile (revision 311513) +++ games/vdrift/Makefile (working copy) @@ -33,21 +33,22 @@ SUB_FILES= pkg-message -OPTIONS= DEBUG "Additional debug information" off \ - NLS "Internationalization support " on +OPTIONS_DEFINE= DEBUG NLS DOCS +OPTIONS_DEFAULT= NLS DOCS -.include +DEBUG_DESC= Additional debug information -.if defined(WITH_DEBUG) +.include + +.if ${PORT_OPTIONS:MDEBUG} SCONS_ARGS+= release=0 .else SCONS_ARGS+= release=1 .endif -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" -FLAG_NLS= true .else PLIST_SUB+= NLS="@comment " .endif @@ -68,13 +69,13 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/vdrift ${PREFIX}/bin -.if defined(FLAG_NLS) +.if ${PORT_OPTIONS:MNLS} @${MKDIR} ${DATADIR}/po @cd ${WRKSRC}/po && \ ${FIND} * -type f -name "*.po" -exec ${INSTALL_DATA} "{}" "${DATADIR}/po/{}" \; .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for FILE in docs/AUTHORS docs/README ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} @@ -84,4 +85,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: games/warsow-data/Makefile =================================================================== --- games/warsow-data/Makefile (revision 311513) +++ games/warsow-data/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Warsow game data -# Date created: 2006-08-03 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= data PORTVERSION= 0.6.2 @@ -38,11 +34,14 @@ query_protocols.txt PORTDOCS= 0.4_renderer_changes.png ${TXTDOCS} -OPTIONS= MAPPACK "Install community map pack" on +OPTIONS_DEFINE= MAPPACK DOCS +OPTIONS_DEFAULT= MAPPACK DOCS +MAPPACK_DESC= Install community map pack + .include -.if defined(WITH_MAPPACK) +.if ${PORT_OPTIONS:MMAPPACK} DISTFILES+= warsow_comunity_map_pack_01${EXTRACT_SUFX}:mappack PLIST_SUB+= MAPPACK="" .else @@ -53,10 +52,10 @@ @${MKDIR} ${DATADIR} cd ${WRKSRC} && ${COPYTREE_SHARE} basewsw ${DATADIR} cd ${WRKDIR} && ${COPYTREE_SHARE} basewsw ${DATADIR} -.if defined(WITH_MAPPACK) +.if ${PORT_OPTIONS:MMAPPACK} cd ${WRKDIR} && ${COPYTREE_SHARE} previews ${DATADIR} .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif Index: graphics/fpc-cairo/Makefile =================================================================== --- graphics/fpc-cairo/Makefile (revision 311436) +++ graphics/fpc-cairo/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-cairo -# Date created: 2006-09-11 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -19,6 +15,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBCAIRO "Install cairo vector graphics library" on +OPTIONS_DEFINE= LIBCAIRO +OPTIONS_DEFAULT= LIBCAIRO +LIBCAIRO_DESC= Install cairo vector graphics library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-fpgtk/Makefile =================================================================== --- graphics/fpc-fpgtk/Makefile (revision 311437) +++ graphics/fpc-fpgtk/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-fpgtk -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= GTK1 "Gimp Toolkit for X11 GUI (version 1.x)" on +OPTIONS_DEFINE= GTK1 +OPTIONS_DEFAULT= GTK1 +GTK1_DESC= Gimp Toolkit for X11 GUI (version 1.x) + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-ggi/Makefile =================================================================== --- graphics/fpc-ggi/Makefile (revision 311437) +++ graphics/fpc-ggi/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-ggi -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBGGI "Install ggi library" on +OPTIONS_DEFINE= LIBGGI +OPTIONS_DEFAULT= LIBGGI +LIBGGI_DESC= Install ggi library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-hermes/Makefile =================================================================== --- graphics/fpc-hermes/Makefile (revision 311440) +++ graphics/fpc-hermes/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-hermes -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= HERMES "Install hermes graphics library" on +OPTIONS_DEFINE= HERMES +OPTIONS_DEFAULT= HERMES +HERMES_DESC= Install hermes graphics library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-imagemagick/Makefile =================================================================== --- graphics/fpc-imagemagick/Makefile (revision 311440) +++ graphics/fpc-imagemagick/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-imagemagick -# Date created: 2009-01-06 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= IMAGEMAGICK "Install ImageMagick image proccesing tool" on +OPTIONS_DEFINE= IMAGEMAGICK +OPTIONS_DEFAULT= IMAGEMAGICK +IMAGEMAGICK_DESC= Install ImageMagick image proccesing tool + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-imlib/Makefile =================================================================== --- graphics/fpc-imlib/Makefile (revision 311441) +++ graphics/fpc-imlib/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-imlib -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= IMLIB2 "Install imlib graphic library" on +OPTIONS_DEFINE= IMLIB2 +OPTIONS_DEFAULT= IMLIB2 +IMLIB2_DESC= Install imlib graphic library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-libgd/Makefile =================================================================== --- graphics/fpc-libgd/Makefile (revision 311474) +++ graphics/fpc-libgd/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-libgd -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBGD "Install gd graphic library" on +OPTIONS_DEFINE= LIBGD +OPTIONS_DEFAULT= LIBGD +LIBGD_DESC= Install gd graphic library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-opengl/Makefile =================================================================== --- graphics/fpc-opengl/Makefile (revision 311474) +++ graphics/fpc-opengl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-opengl -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= OPENGL "Install opengl libraries" on +OPTIONS_DEFINE= OPENGL +OPTIONS_DEFAULT= OPENGL +OPENGL_DESC= Install opengl libraries + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-proj4/Makefile =================================================================== --- graphics/fpc-proj4/Makefile (revision 311476) +++ graphics/fpc-proj4/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-proj4 -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= PROJ "Install proj library" on +OPTIONS_DEFINE= PROJ +OPTIONS_DEFAULT= PROJ +PROJ_DESC= Install proj library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-rsvg/Makefile =================================================================== --- graphics/fpc-rsvg/Makefile (revision 311477) +++ graphics/fpc-rsvg/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-rsvg -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= graphics lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//:S/^/lib/} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBRSVG2 "Install librsvg2 library" on +OPTIONS_DEFINE= LIBRSVG2 +OPTIONS_DEFAULT= LIBRSVG2 +LIBRSVG2_DESC= Install librsvg2 library + .include "${MASTERDIR}/Makefile" Index: graphics/fpc-svgalib/Makefile =================================================================== --- graphics/fpc-svgalib/Makefile (revision 311477) +++ graphics/fpc-svgalib/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-svgalib -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= graphics lang @@ -18,6 +14,8 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= SVGA "Install svgalib low level console graphics library" off +OPTIONS_DEFINE= SVGA +SVGA_DESC= Install svgalib low level console graphics library + .include "${MASTERDIR}/Makefile" Index: graphics/libgltext/Makefile =================================================================== --- graphics/libgltext/Makefile (revision 311519) +++ graphics/libgltext/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: libgltext -# Date created: 2006-02-20 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= libgltext PORTVERSION= 0.3.1 @@ -24,13 +20,15 @@ USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include -OPTIONS= EXAMPLES "Compile examples, need libglut" off +OPTIONS_DEFINE= EXAMPLES DOCS +OPTIONS_DEFAULT= DOCS -.include +EXAMPLES_DESC= Compile examples (needs libglut) -.if defined(WITH_EXAMPLES) +.include + +.if ${PORT_OPTIONS:MEXAMPLES} USE_GL= glut -FLAG_EXAMPLES= true PLIST_SUB+= EXAMPLES="" .else PLIST_SUB+= EXAMPLES="@comment " @@ -49,12 +47,12 @@ ${LN} -s ${PORTNAME}.so.0 ${PORTNAME}.so post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/doc/tutorial.txt ${DOCSDIR} .endif -.if defined(FLAG_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} .for DIRE in alpha fps simple sizes @${MKDIR} ${EXAMPLESDIR}/${DIRE} @cd ${WRKSRC}/examples && \ @@ -65,4 +63,4 @@ @${ECHO_MSG} "" .endif -.include +.include Index: lang/fpc/Makefile =================================================================== --- lang/fpc/Makefile (revision 311435) +++ lang/fpc/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Free Pascal Compiler -# Date created: 28 November 2001 -# Whom: John Merryweather Cooper et al -# +# Created by: John Merryweather Cooper et al # $FreeBSD$ -# PORTNAME= fpc PORTVERSION= 2.6.0 Index: lang/fpc/Makefile.units =================================================================== --- lang/fpc/Makefile.units (revision 311435) +++ lang/fpc/Makefile.units (working copy) @@ -26,31 +26,37 @@ BSDHIER=1 .if ${PKGNAMESUFFIX} == "-a52" -. if defined(WITH_LIBA52) +. if ${PORT_OPTIONS:MLIBA52} LIB_DEPENDS= a52:${PORTSDIR}/audio/liba52 . endif .endif +.if ${PKGNAMESUFFIX} == "-aspell" +. if ${PORT_OPTIONS:MASPELL} +RUN_DEPENDS= aspell:${PORTSDIR}/textproc/aspell +. endif +.endif + .if ${PKGNAMESUFFIX} == "-bfd" -. if defined(WITH_LIBBFD) +. if ${PORT_OPTIONS:MLIBBFD} RUN_DEPENDS= ${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd . endif .endif .if ${PKGNAMESUFFIX} == "-cairo" -. if defined(WITH_LIBCAIRO) +. if ${PORT_OPTIONS:MLIBCAIRO} LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo . endif .endif .if ${PKGNAMESUFFIX} == "-dbus" -. if defined(WITH_DBUS) +. if ${PORT_OPTIONS:MDBUS} LIB_DEPENDS= dbus-1:${PORTSDIR}/devel/dbus . endif .endif .if ${PKGNAMESUFFIX} == "-dts" -. if defined(WITH_LIBDCA) +. if ${PORT_OPTIONS:MLIBDCA} LIB_DEPENDS= dca:${PORTSDIR}/multimedia/libdca . endif .endif @@ -71,13 +77,13 @@ .endif .if ${PKGNAMESUFFIX} == "-fftw" -. if defined(WITH_FFTW) +. if ${PORT_OPTIONS:MFFTW} LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 . endif .endif .if ${PKGNAMESUFFIX} == "-fpgtk" -. if defined(WITH_GTK1) +. if ${PORT_OPTIONS:MGTK1} .include <${PORTSDIR}/Mk/bsd.gnome.mk> USE_GNOME= gtk12 . endif @@ -88,25 +94,25 @@ .endif .if ${PKGNAMESUFFIX} == "-gdbm" -. if defined(WITH_GDBM) +. if ${PORT_OPTIONS:MGDBM} LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm . endif .endif .if ${PKGNAMESUFFIX} == "-ggi" -. if defined(WITH_LIBGGI) +. if ${PORT_OPTIONS:MLIBGGI} LIB_DEPENDS= ggi:${PORTSDIR}/graphics/libggi . endif .endif .if ${PKGNAMESUFFIX} == "-gmp" -. if defined(WITH_GMP) +. if ${PORT_OPTIONS:MGMP} LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp . endif .endif .if ${PKGNAMESUFFIX} == "-gtk1" -. if defined(WITH_GTK1) +. if ${PORT_OPTIONS:MGTK1} .include <${PORTSDIR}/Mk/bsd.gnome.mk> USE_GNOME= gtk12 . endif @@ -114,26 +120,26 @@ .endif .if ${PKGNAMESUFFIX} == "-gtk2" -. if defined(WITH_GTK2) +. if ${PORT_OPTIONS:MGTK2} .include <${PORTSDIR}/Mk/bsd.gnome.mk> USE_GNOME= gtk20 . endif .endif .if ${PKGNAMESUFFIX} == "-hermes" -. if defined(WITH_HERMES) +. if ${PORT_OPTIONS:MHERMES} LIB_DEPENDS= Hermes:${PORTSDIR}/graphics/Hermes . endif .endif .if ${PKGNAMESUFFIX} == "-httpd22" -. if defined(WITH_APACHE22) +. if ${PORT_OPTIONS:MAPACHE22} USE_APACHE= 22 . endif .endif .if ${PKGNAMESUFFIX} == "-ibase" -. if defined(WITH_IBASE) +. if ${PORT_OPTIONS:MIBASE} USE_FIREBIRD= yes . endif .endif @@ -147,187 +153,187 @@ .endif .if ${PKGNAMESUFFIX} == "-imagemagick" -. if defined(WITH_IMAGEMAGICK) +. if ${PORT_OPTIONS:MIMAGEMAGICK} LIB_DEPENDS= Magick:${PORTSDIR}/graphics/ImageMagick . endif .endif .if ${PKGNAMESUFFIX} == "-imlib" -. if defined(WITH_IMLIB) +. if ${PORT_OPTIONS:MIMLIB} .include <${PORTSDIR}/Mk/bsd.efl.mk> USE_EFL= imlib2 . endif .endif .if ${PKGNAMESUFFIX} == "-ldap" -. if defined(WITH_OPENLDAP) +. if ${PORT_OPTIONS:MOPENLDAP} USE_OPENLDAP= yes . endif .endif .if ${PKGNAMESUFFIX} == "-libcurl" -. if defined(WITH_LIBCURL) +. if ${PORT_OPTIONS:MLIBCURL} LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl . endif .endif .if ${PKGNAMESUFFIX} == "-libgd" -. if defined(WITH_LIBGD) +. if ${PORT_OPTIONS:MLIBGD} LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd . endif .endif .if ${PKGNAMESUFFIX} == "-libpng" -. if defined(WITH_LIBPNG) +. if ${PORT_OPTIONS:MLIBPNG} LIB_DEPENDS= png15:${PORTSDIR}/graphics/png . endif .endif .if ${PKGNAMESUFFIX} == "-libxml2" -. if defined(WITH_LIBXML2) +. if ${PORT_OPTIONS:MLIBXML2} LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 . endif .endif .if ${PKGNAMESUFFIX} == "-lua" -. if defined(WITH_LUA) +. if ${PORT_OPTIONS:MLUA} LIB_DEPENDS= lua-5.1:${PORTSDIR}/lang/lua . endif .endif .if ${PKGNAMESUFFIX} == "-mad" -.if defined(WITH_LIBMAD) +.if ${PORT_OPTIONS:MLIBMAD} LIB_DEPENDS= mad:${PORTSDIR}/audio/libmad . endif .endif .if ${PKGNAMESUFFIX} == "-matroska" -. if defined(WITH_LIBMATROSKA) +. if ${PORT_OPTIONS:MLIBMATROSKA} LIB_DEPENDS= matroska:${PORTSDIR}/multimedia/libmatroska . endif .endif .if ${PKGNAMESUFFIX} == "-modplug" -. if defined(WITH_LIBMODPLUG) +. if ${PORT_OPTIONS:MLIBMODPLUG} LIB_DEPENDS= modplug:${PORTSDIR}/audio/libmodplug . endif .endif .if ${PKGNAMESUFFIX} == "-mysql" -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes . endif .endif .if ${PKGNAMESUFFIX} == "-newt" -. if defined(WITH_NEWT) +. if ${PORT_OPTIONS:MNEWT} LIB_DEPENDS= newt:${PORTSDIR}/devel/newt . endif .endif .if ${PKGNAMESUFFIX} == "-odbc" -. if defined(WITH_ODBC) +. if ${PORT_OPTIONS:MODBC} LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC . endif .endif .if ${PKGNAMESUFFIX} == "-oggvorbis" -. if defined(WITH_LIBOGG) +. if ${PORT_OPTIONS:MLIBOGG} LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg . endif -. if defined(WITH_LIBVORBIS) +. if ${PORT_OPTIONS:MLIBVORBIS} LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis . endif .endif .if ${PKGNAMESUFFIX} == "-openal" -. if defined(WITH_OPENAL) +. if ${PORT_OPTIONS:MOPENAL} USE_OPENAL= soft . endif .endif .if ${PKGNAMESUFFIX} == "-opengl" -. if defined(WITH_OPENGL) +. if ${PORT_OPTIONS:MOPENGL} USE_GL= glut . endif HAVE_EXAMPLES= true .endif .if ${PKGNAMESUFFIX} == "-openssl" -. if defined(WITH_OPENSSL) +. if ${PORT_OPTIONS:MOPENSSL} USE_OPENSSL= yes . endif .endif .if ${PKGNAMESUFFIX} == "-oracle" -. if defined(WITH_ORACLE) +. if ${PORT_OPTIONS:MORACLE} ORACLE8_LIB= ${LOCALBASE}/oracle8-client/rdbms/lib RUN_DEPENDS= ${ORACLE8_LIB}/env_rdbms.mk:${PORTSDIR}/databases/oracle8-client . endif .endif .if ${PKGNAMESUFFIX} == "-pcap" -. if defined(WITH_LIBPCAP) +. if ${PORT_OPTIONS:MLIBPCAP} LIB_DEPENDS= pcap:${PORTSDIR}/net/libpcap . endif .endif .if ${PKGNAMESUFFIX} == "-postgres" -. if defined(WITH_PGSQL) +. if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes . endif .endif .if ${PKGNAMESUFFIX} == "-proj4" -. if defined(WITH_PROJ) +. if ${PORT_OPTIONS:MPROJ} LIB_DEPENDS= proj:${PORTSDIR}/graphics/proj . endif .endif .if ${PKGNAMESUFFIX} == "-rexx" -. if defined(WITH_REXX_REGINA) +. if ${PORT_OPTIONS:MREXX_REGINA} RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina . endif .endif .if ${PKGNAMESUFFIX} == "-rsvg" -. if defined(WITH_LIBRSVG2) +. if ${PORT_OPTIONS:MLIBRSVG2} LIB_DEPENDS= rsvg-2:${PORTSDIR}/graphics/librsvg2 . endif .endif .if ${PKGNAMESUFFIX} == "-sdl" -. if defined(WITH_SDL) +. if ${PORT_OPTIONS:MSDL} USE_SDL= sdl image mixer ttf gfx . endif .endif .if ${PKGNAMESUFFIX} == "-sndfile" -. if defined(WITH_LIBSNDFILE) +. if ${PORT_OPTIONS:MLIBSNDFILE} LIB_DEPENDS= sndfile:${PORTSDIR}/audio/libsndfile . endif .endif .if ${PKGNAMESUFFIX} == "-sqlite" -. if defined(WITH_SQLITE) +. if ${PORT_OPTIONS:MSQLITE} USE_SQLITE= yes . endif .endif .if ${PKGNAMESUFFIX} == "-svgalib" -. if defined(WITH_SVGA) +. if ${PORT_OPTIONS:MSVGA} LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib . endif .endif .if ${PKGNAMESUFFIX} == "-tcl" -. if defined(WITH_TCL) +. if ${PORT_OPTIONS:MTCL} RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 . endif .endif .if ${PKGNAMESUFFIX} == "-unzip" -. if defined(WITH_UNZIP) +. if ${PORT_OPTIONS:MUNZIP} RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip . endif .endif @@ -337,13 +343,13 @@ .endif .if ${PKGNAMESUFFIX} == "-x11" -. if defined(WITH_X11) +. if ${PORT_OPTIONS:MX11} USE_XORG= xcursor xfont xxf86dga xxf86vm xi xinerama xkbfile xrandr xrender xres xv . endif .endif .if ${PKGNAMESUFFIX} == "-xforms" -. if defined(WITH_XFORMS) +. if ${PORT_OPTIONS:MXFORMS} LIB_DEPENDS= forms.2:${PORTSDIR}/x11-toolkits/xforms . endif HAVE_EXAMPLES= true @@ -376,7 +382,7 @@ do-install: @cd ${WRKDIR}/${WRKUNITDIR} && FPCDIR=${UNITDIR} ${GMAKE} install ${MAKE_ENV} -. if !defined(NOPORTDOCS) +. if ${PORT_OPTIONS:MDOCS} . if defined(HAVE_EXAMPLES) @cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} fpc_exampleinstall . endif Index: lang/fpc-lua/Makefile =================================================================== --- lang/fpc-lua/Makefile (revision 311474) +++ lang/fpc-lua/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-lua -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LUA "Install lua library" on +OPTIONS_DEFINE= LUA +OPTIONS_DEFAULT= LUA +LUA_DESC= Install lua library + .include "${MASTERDIR}/Makefile" Index: lang/fpc-rexx/Makefile =================================================================== --- lang/fpc-rexx/Makefile (revision 311477) +++ lang/fpc-rexx/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-rexx -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= REXX_REGINA "Install rexx-regina library" on +OPTIONS_DEFINE= REXX_REGINA +OPTIONS_DEFAULT= REXX_REGINA +REXX_REGINA_DESC= Install rexx-regina library + .include "${MASTERDIR}/Makefile" Index: lang/fpc-tcl/Makefile =================================================================== --- lang/fpc-tcl/Makefile (revision 311477) +++ lang/fpc-tcl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-tcl -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= TCL "Install tool commnad language" on +OPTIONS_DEFINE= TCL +OPTIONS_DEFAULT= TCL +TCL_DESC= Install tool command language + .include "${MASTERDIR}/Makefile" Index: math/fpc-fftw/Makefile =================================================================== --- math/fpc-fftw/Makefile (revision 311437) +++ math/fpc-fftw/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-fftw -# Date created: 2006-09-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= math lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= FFTW3 "Install FFTW3 library" on +OPTIONS_DEFINE= FFTW3 +OPTIONS_DEFAULT= FFTW3 +FFTW3_DESC= Install FFTW3 library + .include "${MASTERDIR}/Makefile" Index: math/fpc-gmp/Makefile =================================================================== --- math/fpc-gmp/Makefile (revision 311438) +++ math/fpc-gmp/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-gmp -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= math lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= GMP "Install gmp library" on +OPTIONS_DEFINE= GMP +OPTIONS_DEFAULT= GMP +GMP_DESC= Install gmp library + .include "${MASTERDIR}/Makefile" Index: multimedia/fpc-dts/Makefile =================================================================== --- multimedia/fpc-dts/Makefile (revision 311437) +++ multimedia/fpc-dts/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-dts -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= multimedia lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBDCA "Install dts library" on +OPTIONS_DEFINE= LIBDCA +OPTIONS_DEFAULT= LIBDCA +LIBDCA_DESC= Install dts library + .include "${MASTERDIR}/Makefile" Index: multimedia/fpc-matroska/Makefile =================================================================== --- multimedia/fpc-matroska/Makefile (revision 311474) +++ multimedia/fpc-matroska/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-matroska -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= multimedia lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBMATROSKA "Install matroska library" on +OPTIONS_DEFINE= LIBMATROSKA +OPTIONS_DEFAULT= LIBMATROSKA +LIBMATROSKA_DESC= Install matroska library + .include "${MASTERDIR}/Makefile" Index: net/fpc-ldap/Makefile =================================================================== --- net/fpc-ldap/Makefile (revision 311441) +++ net/fpc-ldap/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-ldap -# Date created: 2010-04-22 -# Whom: Christopher Key -# +# Created by: Christopher Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= net lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= OPENLDAP "Install OpenLDAP libraries" on +OPTIONS_DEFINE= OPENLDAP +OPTIONS_DEFAULT= OPENLDAP +OPENLDAP_DESC= Install OpenLDAP libraries + .include "${MASTERDIR}/Makefile" Index: net/fpc-pcap/Makefile =================================================================== --- net/fpc-pcap/Makefile (revision 311476) +++ net/fpc-pcap/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-pcap -# Date created: 2006-09-11 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= net lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBPCAP "Install ubiquitous network traffic capture library" on +OPTIONS_DEFINE= LIBPCAP +OPTIONS_DEFAULT= LIBPCAP +LIBPCAP_DESC= Install ubiquitous network traffic capture library + .include "${MASTERDIR}/Makefile" Index: net/hawknl/Makefile =================================================================== --- net/hawknl/Makefile (revision 311523) +++ net/hawknl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: hawknl -# Date created: 2006-03-04 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= hawknl PORTVERSION= 1.68 @@ -25,15 +21,18 @@ WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} -OPTIONS= OPTIMIZATION "Enable optimization" off +OPTIONS_DEFINE= OPTIMIZATION DOCS +OPTIONS_DEFAULT= DOCS -.include +OPTIMIZATION_DESC= Enable optimization +.include + .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif -.if defined(WITH_OPTIMIZATION) +.if ${PORT_OPTIONS:MOPTIMIZATION} CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT .endif @@ -42,11 +41,11 @@ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for FILE in readme.txt nlchanges.txt ${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR} .endfor .endif -.include +.include Index: net/hawknl-devel/Makefile =================================================================== --- net/hawknl-devel/Makefile (revision 311523) +++ net/hawknl-devel/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: hawknl -# Date created: 2006-03-04 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= hawknl PORTVERSION= 1.70 @@ -29,15 +25,18 @@ WRKSRC= ${WRKDIR}/HawkNL1.70 -OPTIONS= OPTIMIZATION "Enable optimization" off +OPTIONS_DEFINE= OPTIMIZATION DOCS +OPTIONS_DEFAULT= DOCS -.include +OPTIMIZATION_DESC= Enable optimization +.include + .if ${ARCH} == amd64 || ${ARCH} == ia64 BROKEN= does not compile on ${ARCH} .endif -.if defined(WITH_OPTIMIZATION) +.if ${PORT_OPTIONS:MOPTIMIZATION} CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT .endif @@ -46,11 +45,11 @@ ${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h ${WRKSRC}/src/htinternal.h post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for FILE in readme.txt NLchanges.txt @${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR} .endfor .endif -.include +.include Index: net/twinkle/Makefile =================================================================== --- net/twinkle/Makefile (revision 311524) +++ net/twinkle/Makefile (working copy) @@ -28,8 +28,10 @@ USE_PERL5= yes USE_QT_VER= 3 -OPTIONS= KDE "Compile with kde features" off +OPTIONS_DEFINE= KDE +KDE_DESC= Compile with KDE features + CONFIGURE_ARGS= --with-qt-dir=${QT_PREFIX} QTDIR=${LOCALBASE} \ CONFIGURE_ENV= QMAKESPEC="${QMAKESPEC}" MAKE_ENV= QTDIR=${QT_PREFIX} @@ -37,9 +39,9 @@ QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ -.include +.include -.if defined(WITH_KDE) +.if ${PORT_OPTIONS:MKDE} USE_KDELIBS_VER=3 .include <${PORTSDIR}/Mk/bsd.kde.mk> .else @@ -58,4 +60,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: net-p2p/nicotine-plus/Makefile =================================================================== --- net-p2p/nicotine-plus/Makefile (revision 311521) +++ net-p2p/nicotine-plus/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: nicotine -# Date created: 19 Aug 2003 -# Whom: Adam Weinberger -# +# Created by: Adam Weinberger # $FreeBSD$ -# PORTNAME= plus PORTVERSION= 1.2.16 @@ -31,27 +27,31 @@ DATADIR= share/${PKGNAMEPREFIX:S/-//} MAN1= nicotine-import-winconfig.1 nicotine.1 -OPTIONS= GEOIP "Enable the GeoIP based country code blocker" on \ - PSYCO "Enable Psyco, the optimizing Python compiler" on \ - MUTAGEN "Enable Mutagen for audio metadata support" on \ - LIBSEXY "Enable libsexy support" on \ - MINIUPNPC "Enable upnp support" on +OPTIONS_DEFINE= GEOIP MUTAGEN LIBSEXY MINIUPNPC +OPTIONS_DEFINE_i386= PSYCO +OPTIONS_DEFAULT= GEOIP PSYCO MUTAGEN LIBSEXY MINIUPNPC -.include +GEOIP_DESC= GeoIP based country code blocker +PSYCO_DESC= Use Psyco, the optimizing Python compiler (i386 only) +MUTAGEN_DESC= Mutagen for audio metadata support +LIBSEXY_DESC= libsexy support +MINIUPNPC_DESC= UPnP support -.if defined(WITH_GEOIP) +.include + +.if ${PORT_OPTIONS:MGEOIP} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/GeoIP.so:${PORTSDIR}/net/py-GeoIP .endif -.if defined(WITH_PSYCO) && ${ARCH} == "i386" +.if ${PORT_OPTIONS:MPSYCO} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco .endif -.if defined(WITH_MUTAGEN) +.if ${PORT_OPTIONS:MMUTAGEN} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/mutagen/__init__.py:${PORTSDIR}/audio/py-mutagen .endif -.if defined(WITH_LIBSEXY) +.if ${PORT_OPTIONS:MLIBSEXY} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gtk-2.0/sexy.so:${PORTSDIR}/x11-toolkits/py-sexy .endif -.if defined(WITH_MINIUPNPC) +.if ${PORT_OPTIONS:MMINIUPNPC} RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/miniupnpc.so:${PORTSDIR}/net/py-miniupnpc .endif @@ -59,11 +59,11 @@ @${MV} ${WRKSRC}/${PKGNAMEPREFIX:S/-//}.py ${WRKSRC}/${PKGNAMEPREFIX:S/-//} post-patch: -.if defined(NOPORTDOCS) +.if empty(PORT_OPTIONS:MDOCS) @${REINPLACE_CMD} -i "" -e 's|^doc_files.*|doc_files = ""|g' ${WRKSRC}/setup.py .endif @${REINPLACE_CMD} -e \ "s|sys\.prefix|\"${PREFIX}\"|g" -e \ "s|nicotine.py|nicotine|g" ${WRKSRC}/setup.py -.include +.include Index: print/foomatic-filters/Makefile =================================================================== --- print/foomatic-filters/Makefile (revision 311524) +++ print/foomatic-filters/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: foomatic-rip -# Date created: 2005-01-28 -# Whom: Michael Nottebrock -# +# Created by: Michael Nottebrock # $FreeBSD$ -# PORTNAME= foomatic-filters PORTVERSION= 4.0.7 @@ -32,76 +28,59 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS= CUPS_IMAGE "Install cups image utilities" on \ - A2PS_A4 "Install a2ps convertor (A4)" on \ - A2PS_LETTER "Install a2ps convertor (letter)" off \ - A2PS_LETTERDJ "Install a2ps convertor (letterdj)" off \ - ENSCRIPT_A4 "Install enscript convertor (A4)" on \ - ENSCRIPT_LETTER "Install enscript convertor (letter)" off \ - ENSCRIPT_LETTERDJ "Install enscript convertor (letterdj)" off \ - MPAGE "Print multiple pages per sheet of paper" on +OPTIONS_SINGLE= A2PS ENSCRIPT +OPTIONS_SINGLE_A2PS= A2PS_A4 A2PS_LETTER A2PS_LETTERDJ +OPTIONS_SINGLE_ENSCRIPT= ENSCRIPT_A4 ENSCRIPT_LETTER ENSCRIPT_LETTERDJ +OPTIONS_DEFINE= CUPS_IMAGE MPAGE +OPTIONS_DEFAULT= CUPS_IMAGE A2PS_A4 ENSCRIPT_A4 MPAGE + +CUPS_IMAGE_DESC= Install cups image utilities +A2PS_A4_DESC= Install a2ps convertor (A4) +A2PS_LETTER_DESC= Install a2ps convertor (letter) +A2PS_LETTERDJ_DESC= Install a2ps convertor (letterdj) +ENSCRIPT_A4_DESC= Install enscript convertor (A4) +ENSCRIPT_LETTER_DESC= Install enscript convertor (letter) +ENSCRIPT_LETTERDJ_DESC= Install enscript convertor (letterdj) +MPAGE_DESC= Print multiple pages per sheet of paper + MAN1= foomatic-rip.1 -.include +.include -.if defined(WITH_CUPS_IMAGE) +.if ${PORT_OPTIONS:MCUPS_IMAGE} RUN_DEPENDS+= ${LOCALBASE}/lib/libcupsimage.so:${PORTSDIR}/print/cups-image .endif -.if defined(WITH_A2PS_A4) -. if defined(WITH_A2PS_LETTER) || defined(WITH_A2PS_LETTERDJ) -IGNORE= Please select only one a2ps convertor -. else +.if ${PORT_OPTIONS:MA2PS_A4} RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-a4 -. endif .endif -.if defined(WITH_A2PS_LETTER) -. if defined(WITH_A2PS_A4) || defined(WITH_A2PS_LETTERDJ) -IGNORE= Please select only one a2ps convertor -. else +.if ${PORT_OPTIONS:MA2PS_LETTER} RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter -. endif .endif -.if defined(WITH_A2PS-LETTERDJ) -. if defined(WITH_A2PS-A4) || defined(WITH_A2PS_LETTER) -IGNORE= Please select only one a2ps convertor -. else +.if ${PORT_OPTIONS:MA2PS-LETTERDJ} RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letterdj -. endif .endif -.if defined(WITH_ENSCRIPT_A4) -. if defined(WITH_ENSCRIPT_LETTER) || defined(WITH_ENSCRIPT_LETTERDJ) -IGNORE= Please select only one enscript convertor -. else +.if ${PORT_OPTIONS:MENSCRIPT_A4} RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4 -. endif .endif -.if defined(WITH_ENSCRIPT_LETTER) -. if defined(WITH_ENSCRIPT_A4) || defined(WITH_ENSCRIPT_LETTERDJ) -IGNORE= Please select only one enscript convertor -. else +.if ${PORT_OPTIONS:MENSCRIPT_LETTER} RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letter -. endif .endif -.if defined(WITH_ENSCRIPT_LETTERDJ) -. if defined(WITH_ENSCRIPT_A4) || defined(WITH_ENSCRIPT_LETTER) -IGNORE= Please just select only one enscript convertor -. else +.if ${PORT_OPTIONS:MENSCRIPT_LETTERDJ} RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-letterdj -. endif .endif -.if defined(WITH_MPAGE) +.if ${PORT_OPTIONS:MMPAGE} RUN_DEPENDS+= mpage:${PORTSDIR}/print/mpage .endif post-patch: @${REINPLACE_CMD} -e 's|/bin/bash|${SH}|g' ${WRKSRC}/foomaticrip.c -.include +.include Index: security/dazuko/Makefile =================================================================== --- security/dazuko/Makefile (revision 311525) +++ security/dazuko/Makefile (working copy) @@ -1,7 +1,4 @@ -# New ports collection makefile for: dazuko -# Date created: 01 March 2004 -# Whom: Rob Evers -# +# Created by: Rob Evers # $FreeBSD$ PORTNAME= dazuko @@ -15,15 +12,18 @@ HAS_CONFIGURE= yes SUB_FILES= pkg-message -OPTIONS= EXAMPLEC "Install C example programs" on +OPTIONS_DEFINE= EXAMPLEC +OPTIONS_DEFAULT= EXAMPLEC -.include +EXAMPLEC_DESC= Install C example programs +.include + .if ${OSVERSION} >= 800014 BROKEN= does not build .endif -.if defined(WITH_EXAMPLEC) +.if ${PORT_OPTIONS:MEXAMPLEC} PLIST_FILES= %%EXAMPLESDIR%%/example %%EXAMPLESDIR%%/example_mt PLIST_DIRS= %%EXAMPLESDIR%% .endif @@ -32,7 +32,7 @@ ${REINPLACE_CMD} -e 's|^NOMAN|NO_MAN|g' ${WRKSRC}/library/Makefile do-install: -.if defined(WITH_EXAMPLEC) +.if ${PORT_OPTIONS:MEXAMPLEC} @cd ${WRKSRC}/example_c && \ ${MAKE} @${MKDIR} ${EXAMPLESDIR} @@ -45,4 +45,4 @@ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} -.include +.include Index: security/fpc-openssl/Makefile =================================================================== --- security/fpc-openssl/Makefile (revision 311474) +++ security/fpc-openssl/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-openssl -# Date created: 2007-09-11 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= security lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= OPENSSL "Install SSL and crypto library" on +OPTIONS_DEFINE= OPENSSL +OPTIONS_DEFAULT= OPENSSL +OPENSSL_DESC= Install SSL and crypto library + .include "${MASTERDIR}/Makefile" Index: sysutils/hoz/Makefile =================================================================== --- sysutils/hoz/Makefile (revision 311526) +++ sysutils/hoz/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: HOZ - Hacha Open Zource -# Date created: 2005-09-16 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= hoz PORTVERSION= 1.65 @@ -20,52 +16,56 @@ PORTDOCS= README -OPTIONS= CLI "CLI interface" on \ - GTK2 "GTK interface" on \ - LANG_ES "Spanish translation" off \ - LANG_EN "English translation" on \ - LANG_FR "French translation" off +OPTIONS_MULTI= LANG +OPTIONS_MULTI_LANG= LANG_ES LANG_EN LANG_FR +OPTIONS_DEFINE= CLI GTK2 DOCS -.include +OPTIONS_DEFAULT= CLI GTK2 LANG_EN DOCS -.if !defined(WITHOUT_GTK2) +CLI_DESC= CLI interface +GTK2_DESC= GTK interface +LANG_ES_DESC= Spanish translation +LANG_EN_DESC= English translation +LANG_FR_DESC= French translation + +.include + +.if ${PORT_OPTIONS:MGTK2} USE_GNOME+= gtk20 .endif -.if defined(WITHOUT_CLI) +.if ${PORT_OPTIONS:MGTK2} ALL_TARGET= gtk -.else -PLIST_FILES+= bin/hoz +PLIST_FILES+= bin/ghoz .endif -.if defined(WITHOUT_GTK2) +.if ${PORT_OPTIONS:MCLI} ALL_TARGET= cli -.else -PLIST_FILES+= bin/ghoz +PLIST_FILES+= bin/hoz .endif -.if defined(WITH_LANG_ES) +.if ${PORT_OPTIONS:MLANG_ES} MAKE_ENV+= LANG="-DHOZ_LANG_ES" .endif -.if !defined(WITHOUT_LANG_EN) +.if ${PORT_OPTIONS:MLANG_EN} MAKE_ENV+= LANG="-DHOZ_LANG_EN" .endif -.if defined(WITH_LANG_FR) +.if ${PORT_OPTIONS:MLANG_FR} MAKE_ENV+= LANG="-DHOZ_LANG_FR" .endif do-install: -.if !defined(WITHOUT_CLI) +.if ${PORT_OPTIONS:MCLI} ${INSTALL_PROGRAM} ${WRKSRC}/hoz ${PREFIX}/bin .endif -.if !defined(WITHOUT_GTK2) +.if ${PORT_OPTIONS:MGTK2} ${INSTALL_PROGRAM} ${WRKSRC}/ghoz ${PREFIX}/bin .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include +.include Index: textproc/fpc-aspell/Makefile =================================================================== --- textproc/fpc-aspell/Makefile (revision 311527) +++ textproc/fpc-aspell/Makefile (working copy) @@ -18,6 +18,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= ASPELL "Install aspell spell checker" on +OPTIONS_DEFINE= ASPELL +OPTIONS_DEFAULT= ASPELL +ASPELL_DESC= Install aspell spell checker + .include "${MASTERDIR}/Makefile" Index: textproc/fpc-libxml2/Makefile =================================================================== --- textproc/fpc-libxml2/Makefile (revision 311474) +++ textproc/fpc-libxml2/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-libxml2 -# Date created: 2010-04-22 -# Whom: Christoper Key -# +# Created by: Christoper Key # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= textproc lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//:S/2//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= LIBXML2 "Install xml2 library" on +OPTIONS_DEFINE= LIBXML2 +OPTIONS_DEFAULT= LIBXML2 +LIBXML2_DESC= Install xml2 library + .include "${MASTERDIR}/Makefile" Index: www/fpc-httpd22/Makefile =================================================================== --- www/fpc-httpd22/Makefile (revision 311440) +++ www/fpc-httpd22/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-httpd22 -# Date created: 2009-01-06 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= www lang @@ -18,6 +14,8 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= APACHE22 "Install apache22 server" off +OPTIONS_DEFINE= APACHE22 +APACHE22_DESC= Install apache22 server + .include "${MASTERDIR}/Makefile" Index: www/opera-devel/Makefile =================================================================== --- www/opera-devel/Makefile (revision 311527) +++ www/opera-devel/Makefile (working copy) @@ -36,31 +36,32 @@ NO_BUILD= yes -OPTIONS= CUPS "Enable support for printing (requires CUPS)" on \ - VIDEO "Enable support for HTML5 video (requires GStreamer)" on \ - GTK "Use GTK backend" off \ - KDE4 "Use KDE4 backend" off +OPTIONS_DEFINE= CUPS VIDEO GTK KDE4 +OPTIONS_DEFAULT= CUPS VIDEO +CUPS_DESC= Support for printing (requires CUPS) +VIDEO_DESC= Support for HTML5 video (requires GStreamer) +GTK_DESC= GTK backend +KDE4_DESC= KDE4 backend + .include -.if !defined(WITHOUT_CUPS) +.if ${PORT_OPTIONS:MCUPS} LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client .endif -.if !defined(WITHOUT_VIDEO) +.if ${PORT_OPTIONS:MVIDEO} USE_GSTREAMER+= vorbis ogg theora vp8 good .endif -.if defined(WITH_GTK) +.if ${PORT_OPTIONS:MGTK} USE_GNOME+= gtk20 .endif -.if defined(WITH_KDE4) +.if ${PORT_OPTIONS:MKDE4} USE_KDE4+= kdelibs .endif -.include - ONLY_FOR_ARCHS= i386 amd64 OPERA_ARCH= ${ARCH} @@ -82,4 +83,4 @@ -${LOCALBASE}/bin/update-desktop-database -${LOCALBASE}/bin/update-mime-database ${LOCALBASE}/share/mime -.include +.include Index: x11/alltray/Makefile =================================================================== --- x11/alltray/Makefile (revision 311527) +++ x11/alltray/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: alltray -# Date created: 2005-10-15 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTNAME= alltray PORTVERSION= 0.70 @@ -22,11 +18,13 @@ MAN1= alltray.1 -OPTIONS= KDE "Support only KDE desktop" off +OPTIONS_DEFINE= KDE -.include +KDE_DESC= Support only KDE desktop -.if defined(WITH_KDE) +.include + +.if ${PORT_OPTIONS:MKDE} CONFIGURE_ARGS= --disable-gconf .else USE_GNOME+= gconf2 @@ -42,4 +40,4 @@ @${REINPLACE_CMD} -e 's|liballtray\.so\.0\.0\.0|liballtray.so.0|; \ s|/usr/lib|${PREFIX}/lib|' ${WRKSRC}/src/child.c -.include +.include Index: x11/fpc-x11/Makefile =================================================================== --- x11/fpc-x11/Makefile (revision 311477) +++ x11/fpc-x11/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-x11 -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= x11 lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= X11 "Install X libraries" on +OPTIONS_DEFINE= X11 +OPTIONS_DEFAULT= X11 +X11_DESC= Install X libraries + .include "${MASTERDIR}/Makefile" Index: x11/idesk/Makefile =================================================================== --- x11/idesk/Makefile (revision 311528) +++ x11/idesk/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: idesk -# Date created: 16 February 2003 -# Whom: Sascha Holzleiter -# +# Created by: Sascha Holzleiter # $FreeBSD$ -# PORTNAME= idesk PORTVERSION= 0.7.5 @@ -27,18 +23,21 @@ MAKE_ARGS= cc="${CXX}" cflags="${CXXFLAGS}" SUB_FILES= pkg-message -OPTIONS= SHAPE "Enable support of the XShape extension" on \ - SN "Startup notification support" off +OPTIONS_DEFINE= SHAPE SN +OPTIONS_DEFAULT= SHAPE SN -.include +SHAPE_DESC= Support of the XShape extension +SN_DESC= Startup notification support -.if !defined(WITHOUT_SHAPE) +.include + +.if ${PORT_OPTIONS:MSHAPE} CONFIGURE_ARGS+= --enable-shape .else CONFIGURE_ARGS+= --disable-shape .endif -.if defined(WITH_SN) +.if ${PORT_OPTIONS:MSN} LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification CONFIGURE_ARGS+= --enable-libsn .endif @@ -53,4 +52,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: x11-toolkits/fpc-gtk1/Makefile =================================================================== --- x11-toolkits/fpc-gtk1/Makefile (revision 311440) +++ x11-toolkits/fpc-gtk1/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-gtk -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= x11-toolkits lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= GTK1 "Gimp Toolkit for X11 GUI (version 1.x)" on +OPTIONS_DEFINE= GTK1 +OPTIONS_DEFAULT= GTK1 +GTK1_DESC= Gimp Toolkit for X11 GUI (version 1.x) + .include "${MASTERDIR}/Makefile" Index: x11-toolkits/fpc-gtk2/Makefile =================================================================== --- x11-toolkits/fpc-gtk2/Makefile (revision 311440) +++ x11-toolkits/fpc-gtk2/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-gtk2 -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 1 CATEGORIES= x11-toolkits lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= GTK2 "Gimp Toolkit for X11 GUI (version 2.x)" on +OPTIONS_DEFINE= GTK2 +OPTIONS_DEFAULT= GTK2 +GTK2_DESC= Gimp Toolkit for X11 GUI (version 2.x) + .include "${MASTERDIR}/Makefile" Index: x11-toolkits/fpc-xforms/Makefile =================================================================== --- x11-toolkits/fpc-xforms/Makefile (revision 311477) +++ x11-toolkits/fpc-xforms/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fpc-forms -# Date created: 2006-06-05 -# Whom: Jose Alonso Cardenas Marquez -# +# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ -# PORTREVISION= 0 CATEGORIES= x11-toolkits lang @@ -18,6 +14,9 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR+= ${WRKUNITDIR} -OPTIONS= XFORMS "Install xforms graphical user interface toolkit" on +OPTIONS_DEFINE= XFORMS +OPTIONS_DEFAULT= XFORMS +XFORMS_DESC= Install xforms graphical user interface toolkit + .include "${MASTERDIR}/Makefile" Index: x11-toolkits/irrlicht/Makefile =================================================================== --- x11-toolkits/irrlicht/Makefile (revision 311527) +++ x11-toolkits/irrlicht/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: irrlicht -# Date created: 19 September 2004 -# Whom: Simon Barner -# +# Created by: Simon Barner # $FreeBSD$ -# PORTNAME= irrlicht PORTVERSION= 1.7.3 @@ -35,12 +31,15 @@ 11.PerPixelLighting 12.TerrainRendering 13.RenderToTexture 15.LoadIrrFile \ Demo -OPTIONS= DEBUG "Compile with debugging simbols" off \ - EXAMPLES "Install example files" on \ - JOYSTICK "Support for Linux Joystick" off +OPTIONS_DEFINE= DEBUG EXAMPLES JOYSTICK +OPTIONS_DEFAULT= EXAMPLES -.include +DEBUG_DESC= Compile with debugging simbols +EXAMPLES_DESC= Install example files +JOYSTICK_DESC= Support for Linux Joystick +.include + .if (${ARCH} == "amd64") || (${ARCH} == "ia64") CFLAGS+= -fPIC .endif @@ -49,18 +48,17 @@ BROKEN= Does not compile on sparc64 .endif -.if !defined(WITHOUT_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} PLIST_SUB+= EXAMPLES="" .else PLIST_SUB+= EXAMPLES="@comment " .endif -.if defined(WITH_JOYSTICK) +.if ${PORT_OPTIONS:MJOYSTICK} BUILD_DEPENDS+= ${LOCALBASE}/include/linux/joystick.h:${PORTSDIR}/devel/linux-js -HAVE_JOYSTICK= true .endif -.if !defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} MAKE_ENV+= NDEBUG=1 .endif @@ -73,7 +71,7 @@ -e '/#define.*_IRR_USE_NON_SYSTEM_ZLIB_/ d' \ -e '/#define.*_IRR_USE_NON_SYSTEM_BZLIB_/ d' \ ${WRKSRC}/include/IrrCompileConfig.h -.if !defined(HAVE_JOYSTICK) +.if ${PORT_OPTIONS:MJOYSTICK} @${REINPLACE_CMD} -e '/define.*_IRR_COMPILE_WITH_JOYSTICK_EVENTS_/ d' \ ${WRKSRC}/include/IrrCompileConfig.h .endif @@ -87,7 +85,7 @@ ${PREFIX}/lib && ${LN} -s libIrrlicht.so.${SHARED_LIB_VER} \ ${PREFIX}/lib/libIrrlicht.so -.if !defined(WITHOUT_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} .for DIRE in ${EXAMPLEDIRS} ${MKDIR} ${EXAMPLESDIR}/${DIRE} ${INSTALL_DATA} ${WRKSRC}/examples/${DIRE}/Makefile \ @@ -103,4 +101,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include +.include Index: x11-toolkits/paragui-devel/Makefile =================================================================== --- x11-toolkits/paragui-devel/Makefile (revision 311527) +++ x11-toolkits/paragui-devel/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: paragui -# Date Created: Mar 28, 2001 -# Whom: Ying-Chieh Liao -# +# Created by: Ying-Chieh Liao # $FreeBSD$ -# PORTNAME= paragui PORTVERSION= 1.1.8 @@ -33,11 +29,13 @@ SHLIB_VER= 4 PLIST_SUB= SHLIB_VER="${SHLIB_VER}" -OPTIONS= DEBUG "Debug information" off +OPTIONS_DEFINE= DEBUG -.include +DEBUG_DESC= Debug information -.if defined(WITH_DEBUG) +.include + +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .endif @@ -54,4 +52,4 @@ s|-L[./]*../src|&/.libs |g ; \ s|-release $$(LT_RELEASE)||g' -.include +.include