aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
committermat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
commit9d30f78a00bed11384c7259f662e9352754275db (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /audio
parent996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff)
downloadfreebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'audio')
-rw-r--r--audio/abraca/Makefile6
-rw-r--r--audio/alsa-plugins/Makefile7
-rw-r--r--audio/alure/Makefile7
-rw-r--r--audio/ario/Makefile20
-rw-r--r--audio/asunder/Makefile9
-rw-r--r--audio/baudline/Makefile9
-rw-r--r--audio/clementine-player/Makefile129
-rw-r--r--audio/csound/Makefile6
-rw-r--r--audio/csound6/Makefile8
-rw-r--r--audio/deadbeef/Makefile12
-rw-r--r--audio/dumb-allegro/Makefile1
-rw-r--r--audio/dumb/Makefile32
-rw-r--r--audio/dvda-author/Makefile6
-rw-r--r--audio/easytag/Makefile14
-rw-r--r--audio/espeak/Makefile4
-rw-r--r--audio/etktab/Makefile9
-rw-r--r--audio/festival/Makefile12
-rw-r--r--audio/firefly/Makefile24
-rw-r--r--audio/gbsplay/Makefile9
-rw-r--r--audio/gimmix/Makefile17
-rw-r--r--audio/gmpc/Makefile16
-rw-r--r--audio/gmusicbrowser/Makefile5
-rw-r--r--audio/gnome-media/Makefile13
-rw-r--r--audio/gnome-media/pkg-plist102
-rw-r--r--audio/goobox/Makefile10
-rw-r--r--audio/gspeakers/Makefile9
-rw-r--r--audio/jack/Makefile13
-rw-r--r--audio/jack_ghero/Makefile6
-rw-r--r--audio/jack_umidi/Makefile14
-rw-r--r--audio/juke/Makefile6
-rw-r--r--audio/kaudiocreator/Makefile6
-rw-r--r--audio/lash/Makefile20
-rw-r--r--audio/liba52/Makefile9
-rw-r--r--audio/libaacplus/Makefile13
-rw-r--r--audio/libamrnb/Makefile6
-rw-r--r--audio/libamrwb/Makefile10
-rw-r--r--audio/libfishsound/Makefile12
-rw-r--r--audio/liblo/Makefile11
-rw-r--r--audio/libmpdclient/Makefile10
-rw-r--r--audio/libnjb/Makefile9
-rw-r--r--audio/libsidplayfp/Makefile13
-rw-r--r--audio/mctoolame-decoder/Makefile5
-rw-r--r--audio/mctoolame-encoder/Makefile5
-rw-r--r--audio/mma/Makefile6
-rw-r--r--audio/mp3asm/Makefile6
-rw-r--r--audio/mp3blaster/Makefile46
-rw-r--r--audio/mp3stat/Makefile18
-rw-r--r--audio/mpdscribble/Makefile16
-rw-r--r--audio/mps/Makefile9
-rw-r--r--audio/muse/Makefile5
-rw-r--r--audio/musicpc/Makefile11
-rw-r--r--audio/ncmpc/Makefile25
-rw-r--r--audio/ncmpcpp/Makefile7
-rw-r--r--audio/openal/Makefile5
-rw-r--r--audio/opusfile/Makefile6
-rw-r--r--audio/pacpl/Makefile5
-rw-r--r--audio/paprefs/Makefile16
-rw-r--r--audio/portaudio/Makefile33
-rw-r--r--audio/pulseaudio/Makefile7
-rw-r--r--audio/scrobbler/Makefile7
-rw-r--r--audio/shairport/Makefile5
-rw-r--r--audio/shoutcast/Makefile20
-rw-r--r--audio/soundtracker/Makefile34
-rw-r--r--audio/sox/Makefile6
-rw-r--r--audio/sphinxbase/Makefile21
-rw-r--r--audio/spiralsynth/Makefile8
-rw-r--r--audio/squeezeboxserver/Makefile34
-rw-r--r--audio/streamripper/Makefile18
-rw-r--r--audio/swhplugins/Makefile25
-rw-r--r--audio/taglib/Makefile7
-rw-r--r--audio/tempest_for_eliza/Makefile5
-rw-r--r--audio/timemachine/Makefile9
-rw-r--r--audio/uade/Makefile29
-rw-r--r--audio/vagalume/Makefile20
-rw-r--r--audio/voipong/Makefile6
-rw-r--r--audio/xmp/Makefile22
-rw-r--r--audio/yell/Makefile12
77 files changed, 347 insertions, 826 deletions
diff --git a/audio/abraca/Makefile b/audio/abraca/Makefile
index 7dc59603d59b..2bc9099c8914 100644
--- a/audio/abraca/Makefile
+++ b/audio/abraca/Makefile
@@ -28,13 +28,9 @@ OPTIONS_DEFAULT= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
-.include <bsd.port.options.mk>
-
-post-patch:
-.if ! ${PORT_OPTIONS:MNLS}
+post-patch-NLS-off:
@${REINPLACE_CMD} -e '/\.load(/s/ intltool//' \
-e '/recurse/s/ po//' ${WRKSRC}/wscript
-.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
diff --git a/audio/alsa-plugins/Makefile b/audio/alsa-plugins/Makefile
index 87d68f84c365..b23d52cd7d4f 100644
--- a/audio/alsa-plugins/Makefile
+++ b/audio/alsa-plugins/Makefile
@@ -40,6 +40,7 @@ VERBOSE_CFLAGS= -DFREEBSD_OSS_DEBUG_VERBOSE
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
JACK_CONFIGURE_ENABLE= jack
+JACK_IMPLIES= SAMPLERATE
FFMPEG_LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
FFMPEG_CONFIGURE_ENABLE=avcodec
@@ -55,12 +56,6 @@ SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex
SPEEX_CONFIGURE_ON= --with-speex=lib
SPEEX_CONFIGURE_OFF= --without-speex
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MJACK} && empty(PORT_OPTIONS:MSAMPLERATE)
-IGNORE= JACK audio support requires SAMPLERATE
-.endif
-
post-patch: .SILENT
${REINPLACE_CMD} -e '/LIBS/s/-ldl//g' \
-e '/lt_cv_dlopen/s/-ldl//g' \
diff --git a/audio/alure/Makefile b/audio/alure/Makefile
index 4eafb1beac93..99e1231e2fb8 100644
--- a/audio/alure/Makefile
+++ b/audio/alure/Makefile
@@ -49,21 +49,18 @@ SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
SNDFILE_CMAKE_ON= -DSNDFILE:BOOL=TRUE
SNDFILE_CMAKE_OFF= -DSNDFILE:BOOL=FALSE
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
-e 's|LIBFLAC_LIBRARIES|FLAC_LIBRARIES|' \
${WRKSRC}/CMakeLists.txt
-.if ${PORT_OPTIONS:MDOCS}
+post-patch-DOCS-on:
@${REINPLACE_CMD} \
-e 's|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html"|INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/docs/html" "$${ALURE_SOURCE_DIR}/docs/naturaldocs"|' \
${WRKSRC}/CMakeLists.txt
-.else
+post-patch-DOCS-off:
@${REINPLACE_CMD} -i '' '/FIND_PROGRAM(NATDOCS_BIN NaturalDocs)/,/ENDIF(NATDOCS_BIN)/s/^/#/' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -i '' -e '/INSTALL(DIRECTORY "$${ALURE_SOURCE_DIR}/,+2d' ${WRKSRC}/CMakeLists.txt
-.endif
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
diff --git a/audio/ario/Makefile b/audio/ario/Makefile
index 261aad26b636..82d492449480 100644
--- a/audio/ario/Makefile
+++ b/audio/ario/Makefile
@@ -34,21 +34,11 @@ INSTALL_TARGET= install-strip
OPTIONS_DEFINE= AVAHI NLS
AVAHI_DESC= Zeroconf support (Avahi)
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MAVAHI}
-LIB_DEPENDS+= libavahi-client.so:${PORTSDIR}/net/avahi-app
-CONFIGURE_ARGS+= --enable-avahi
-.else
-CONFIGURE_ARGS+= --disable-avahi
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CONFIGURE_ARGS+= --enable-nls
-.else
-CONFIGURE_ARGS+= --disable-nls
-.endif
+AVAHI_LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app
+AVAHI_CONFIGURE_ENABLE= avahi
+
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e 's|glib/gslist.h|glib.h|g ; \
diff --git a/audio/asunder/Makefile b/audio/asunder/Makefile
index 6590dd3227fc..1b30ed967593 100644
--- a/audio/asunder/Makefile
+++ b/audio/asunder/Makefile
@@ -35,18 +35,13 @@ WAVPACK_RUN_DEPENDS= wavpack:${PORTSDIR}/audio/wavpack
APE_RUN_DEPENDS= mac:${PORTSDIR}/audio/mac
NLS_CONFIGURE_ENABLE= yes
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's/^itlocaledir = .*/itlocaledir = @datarootdir@\/locale/' ${WRKSRC}/po/Makefile.in.in
-.if ${PORT_OPTIONS:MWINDOWS_CHARS}
+post-patch-WINDOWS_CHARS-on:
@${REINPLACE_CMD} -e 's^#define[[:blank:]]*BADCHARS.*^#define BADCHARS "/"^' ${WRKSRC}/src/util.h
-.endif
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
-.endif
.include <bsd.port.mk>
diff --git a/audio/baudline/Makefile b/audio/baudline/Makefile
index e43f75d09a66..756486d16046 100644
--- a/audio/baudline/Makefile
+++ b/audio/baudline/Makefile
@@ -28,9 +28,6 @@ OPTIONS_DEFAULT= MPG123
MMPG123_RUN_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123
-.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
IGNORE= may not be automatically fetched due to licensing\
restrictions. You must manually fetch ${DISTFILES} from\
@@ -44,10 +41,8 @@ do-build:
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/baudline ${STAGEDIR}${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
- @[ -f /compat/linux/proc/stat ] || ${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/clementine-player/Makefile b/audio/clementine-player/Makefile
index 085ae8a7b27e..ac9f6a9c6b22 100644
--- a/audio/clementine-player/Makefile
+++ b/audio/clementine-player/Makefile
@@ -66,90 +66,49 @@ MOODBAR_DESC= Moodbar Support
OPTIONS_DEFAULT= AUDIOCD BOX DEVICEKIT DROPBOX GIO GOOGLE_DRIVE GPOD \
LASTFM MTP VISUALISATION WIIMOTEDEV MOODBAR
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDROPBOX}
-CMAKE_ARGS+= -DENABLE_DROPBOX=ON
-.else
-CMAKE_ARGS+= -DENABLE_DROPBOX=OFF
-.endif
-
-.if ${PORT_OPTIONS:MMOODBAR}
-CMAKE_ARGS+= -DENABLE_MOODBAR=ON
-.else
-CMAKE_ARGS+= -DENABLE_MOODBAR=OFF
-.endif
-
-.if ${PORT_OPTIONS:MAUDIOCD}
-CMAKE_ARGS+= -DENABLE_AUDIOCD=ON
-LIB_DEPENDS+= libcdio.so:${PORTSDIR}/sysutils/libcdio
-.else
-CMAKE_ARGS+= -DENABLE_AUDIOCD=OFF
-.endif
-
-.if ${PORT_OPTIONS:MBOX}
-CMAKE_ARGS+= -DENABLE_BOX=ON
-.else
-CMAKE_ARGS+= -DENABLE_BOX=OFF
-.endif
-
-.if ${PORT_OPTIONS:MBREAKPAD}
-CMAKE_ARGS+= -DENABLE_BREAKPAD=ON
-.else
-CMAKE_ARGS+= -DENABLE_BREAKPAD=OFF
-.endif
-
-.if ${PORT_OPTIONS:MDEVICEKIT}
-CMAKE_ARGS+= -DENABLE_DEVICEKIT=ON
-.else
-CMAKE_ARGS+= -DENABLE_DEVICEKIT=OFF
-.endif
-
-.if ${PORT_OPTIONS:MGIO}
-CMAKE_ARGS+= -DENABLE_GIO=ON
-USE_GNOME= glib20
-.else
-CMAKE_ARGS+= -DENABLE_GIO=OFF
-.endif
-
-.if ${PORT_OPTIONS:MGOOGLE_DRIVE}
-CMAKE_ARGS+= -DENABLE_GOOGLE_DRIVE=ON
-BUILD_DEPENDS+= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
-.else
-CMAKE_ARGS+= -DENABLE_GOOGLE_DRIVE=OFF
-.endif
-
-.if ${PORT_OPTIONS:MGPOD}
-CMAKE_ARGS+= -DENABLE_LIBGPOD=ON
-LIB_DEPENDS+= libgpod.so:${PORTSDIR}/audio/libgpod
-.else
-CMAKE_ARGS+= -DENABLE_LIBGPOD=OFF
-.endif
-
-.if ${PORT_OPTIONS:MLASTFM}
-CMAKE_ARGS+= -DENABLE_LIBLASTFM=ON
-LIB_DEPENDS+= liblastfm.so:${PORTSDIR}/audio/liblastfm
-.else
-CMAKE_ARGS+= -DENABLE_LIBLASTFM=OFF
-.endif
-
-.if ${PORT_OPTIONS:MMTP}
-CMAKE_ARGS+= -DENABLE_LIBMTP=ON
-LIB_DEPENDS+= libmtp.so:${PORTSDIR}/multimedia/libmtp
-.else
-CMAKE_ARGS+= -DENABLE_LIBMTP=OFF
-.endif
-
-.if ${PORT_OPTIONS:MVISUALISATION}
-CMAKE_ARGS+= -DENABLE_VISUALISATIONS=ON
-.else
-CMAKE_ARGS+= -DENABLE_VISUALISATIONS=OFF
-.endif
-
-.if ${PORT_OPTIONS:MWIIMOTEDEV}
-CMAKE_ARGS+= -DENABLE_WIIMOTEDEV=ON
-.else
-CMAKE_ARGS+= -DENABLE_WIIMOTEDEV=OFF
-.endif
+DROPBOX_CMAKE_ON= -DENABLE_DROPBOX=ON
+DROPBOX_CMAKE_OFF= -DENABLE_DROPBOX=OFF
+
+MOODBAR_CMAKE_ON= -DENABLE_MOODBAR=ON
+MOODBAR_CMAKE_OFF= -DENABLE_MOODBAR=OFF
+
+AUDIOCD_LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio
+AUDIOCD_CMAKE_ON= -DENABLE_AUDIOCD=ON
+AUDIOCD_CMAKE_OFF= -DENABLE_AUDIOCD=OFF
+
+BOX_CMAKE_ON= -DENABLE_BOX=ON
+BOX_CMAKE_OFF= -DENABLE_BOX=OFF
+
+BREAKPAD_CMAKE_ON= -DENABLE_BREAKPAD=ON
+BREAKPAD_CMAKE_OFF= -DENABLE_BREAKPAD=OFF
+
+DEVICEKIT_CMAKE_ON= -DENABLE_DEVICEKIT=ON
+DEVICEKIT_CMAKE_OFF= -DENABLE_DEVICEKIT=OFF
+
+GIO_USE= GNOME=glib20
+GIO_CMAKE_ON= -DENABLE_GIO=ON
+GIO_CMAKE_OFF= -DENABLE_GIO=OFF
+
+GOOGLE_DRIVE_BUILD_DEPENDS= google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
+GOOGLE_DRIVE_CMAKE_ON= -DENABLE_GOOGLE_DRIVE=ON
+GOOGLE_DRIVE_CMAKE_OFF= -DENABLE_GOOGLE_DRIVE=OFF
+
+GPOD_LIB_DEPENDS= libgpod.so:${PORTSDIR}/audio/libgpod
+GPOD_CMAKE_ON= -DENABLE_LIBGPOD=ON
+GPOD_CMAKE_OFF= -DENABLE_LIBGPOD=OFF
+
+LASTFM_LIB_DEPENDS= liblastfm.so:${PORTSDIR}/audio/liblastfm
+LASTFM_CMAKE_ON= -DENABLE_LIBLASTFM=ON
+LASTFM_CMAKE_OFF= -DENABLE_LIBLASTFM=OFF
+
+MPT_LIB_DEPENDS= libmtp.so:${PORTSDIR}/multimedia/libmtp
+MTP_CMAKE_ON= -DENABLE_LIBMTP=ON
+MTP_CMAKE_OFF= -DENABLE_LIBMTP=OFF
+
+VISUALISATION_CMAKE_ON= -DENABLE_VISUALISATIONS=ON
+VISUALISATION_CMAKE_OFF= -DENABLE_VISUALISATIONS=OFF
+
+WIIMOTEDEV_CMAKE_ON= -DENABLE_WIIMOTEDEV=ON
+WIIMOTEDEV_CMAKE_OFF= -DENABLE_WIIMOTEDEV=OFF
.include <bsd.port.mk>
diff --git a/audio/csound/Makefile b/audio/csound/Makefile
index bd12948333e5..972d6092d995 100644
--- a/audio/csound/Makefile
+++ b/audio/csound/Makefile
@@ -131,8 +131,6 @@ MAKE_ARGS+= buildCsound5GUI=0 buildCSEditor=0 buildWinsound=0 useFLTK=0
CSOUND_DOCS= Csound${PORTVERSION:R}_manual_html.zip
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == amd64 || ${ARCH} == sparc64 || ${ARCH} == ia64
MAKE_ARGS+= Word64=1
.endif
@@ -148,8 +146,6 @@ CXXLIB= c++
CXXLIB= # empty
.endif
-.include <bsd.port.options.mk>
-
post-patch:
@${SED} -e "s|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|" \
@@ -190,4 +186,4 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/* ${STAGEDIR}${PREFIX}/lib/*.so* \
${STAGEDIR}${PREFIX}/lib/csound/plugins64/*.so
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/csound6/Makefile b/audio/csound6/Makefile
index 645c36c0d5f4..5cb258fe4f2b 100644
--- a/audio/csound6/Makefile
+++ b/audio/csound6/Makefile
@@ -48,6 +48,7 @@ OPTIONS_SUB= yes
ALSA_DESC= Build ALSA I/O module
ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
ALSA_CMAKE_OFF= -DUSE_ALSA:BOOL=OFF
+ALSA_PREVENTS= DSSI
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
CURL_CMAKE_OFF= -DUSE_CURL:BOOL=OFF
DSSI_DESC= Build DSSI/LADSPA host opcodes
@@ -105,10 +106,6 @@ BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING="${LOCALBASE}/bin/flex"
.endif
-.if ${PORT_OPTIONS:MALSA} && ${PORT_OPTIONS:MDSSI}
-IGNORE= ALSA and DSSI options are mutually exclusive
-.endif
-
post-patch:
@${REINPLACE_CMD} -e \
'/-O3/s|^|#| ; \
@@ -138,8 +135,7 @@ post-patch:
post-install:
@${LN} -sf libcsnd6.so.6.0 ${STAGEDIR}${PREFIX}/lib/libcsnd6.so.6
@${LN} -sf libcsound64.so.6.0 ${STAGEDIR}${PREFIX}/lib/libcsound64.so.6
-.if ${PORT_OPTIONS:MFLTK}
+post-install-FLTK-on:
@${LN} -sf libCsoundAC.so.6.0 ${STAGEDIR}${PREFIX}/lib/libCsoundAC.so.6
-.endif
.include <bsd.port.mk>
diff --git a/audio/deadbeef/Makefile b/audio/deadbeef/Makefile
index e3f76a14d3f7..a666915206e6 100644
--- a/audio/deadbeef/Makefile
+++ b/audio/deadbeef/Makefile
@@ -73,6 +73,7 @@ PULSEAUDIO_CONFIGURE_OFF= --disable-pulse
GUI_USE= gnome=gtk20,glib20
GUI_CONFIGURE_OFF= --disable-gtkui --disable-gtk3
+GUI_IMPLIES= CONVERTER
VFS_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
VFS_CONFIGURE_OFF= --disable-vfs-curl
@@ -84,6 +85,7 @@ ART_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libImlib2.so:${PORTSDIR}/graphics/imlib2
ART_USES= jpeg
ART_CONFIGURE_OFF= --disable-artwork --disable-artwork-imlib2
+ART_IMPLIES= VFS
SUPEREQ_CONFIGURE_OFF= --disable-supereq
@@ -168,16 +170,6 @@ PLTBROWSER_CONFIGURE_OFF= --disable-pltbrowser
WMA_CONFIGURE_OFF= --disable-wma
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MART} && ! ${PORT_OPTIONS:MVFS}
-BROKEN= VFS plugin required for album art loader, please rerun 'make config' and either disable ART or enable VFS
-.endif
-
-.if ${PORT_OPTIONS:MCONVERTER} && ! ${PORT_OPTIONS:MGUI}
-BROKEN= CONVERTER plugin required for gui, please rerun 'make config' and either disable CONVERTER or enable GUI
-.endif
-
post-patch:
# Do not link to libsupc++ which may be PIC-unsafe (breaks 64-bit arches)
@${REINPLACE_CMD} -e 's, -lsupc++,,' \
diff --git a/audio/dumb-allegro/Makefile b/audio/dumb-allegro/Makefile
index ed4625b29708..afe0e60f63bd 100644
--- a/audio/dumb-allegro/Makefile
+++ b/audio/dumb-allegro/Makefile
@@ -3,5 +3,6 @@
OPTIONS_SLAVE= ALLEGRO
MASTERDIR= ${.CURDIR}/../dumb
+PKGNAMESUFFIX= -allegro
.include "${MASTERDIR}/Makefile"
diff --git a/audio/dumb/Makefile b/audio/dumb/Makefile
index 9cf4697b7af3..959da04e5cad 100644
--- a/audio/dumb/Makefile
+++ b/audio/dumb/Makefile
@@ -13,26 +13,19 @@ COMMENT= IT, XM, S3M, and MOD player library
USES= gmake
OPTIONS_DEFINE= ALLEGRO
+OPTIONS_SUB= yes
ALLEGRO_DESC= Enable allegro support
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MALLEGRO}
-LIB_DEPENDS+= liballeg.so:${PORTSDIR}/devel/allegro
-PLIST_SUB+= ALLEGRO=""
-MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`"
-MAKE_ARGS+= LINK_ALLEGRO="`allegro-config --libs` -lm"
-PKGNAMESUFFIX= -allegro
-CONFLICTS= dumb-[0-9]*
-.else
-PLIST_SUB+= ALLEGRO="@comment "
-MAKE_ARGS= _PORT_ALLEGRO_CFLAGS=
-CONFLICTS= dumb-allegro-[0-9]*
-.endif
-
-.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
-CFLAGS+= -fPIC
-.endif
+ALLEGRO_LIB_DEPENDS= liballeg.so:${PORTSDIR}/devel/allegro
+ALLEGRO_MAKE_ARGS= _PORT_ALLEGRO_CFLAGS="`allegro-config --cflags`" \
+ LINK_ALLEGRO="`allegro-config --libs` -lm"
+ALLEGRO_CONFLICTS= dumb-[0-9]*
+ALLEGRO_MAKE_ARGS_OFF= _PORT_ALLEGRO_CFLAGS=
+ALLEGRO_CONFLICTS_OFF= dumb-allegro-[0-9]*
+
+CFLAGS_amd64= -fPIC
+CFLAGS_ia64= -fPIC
+CFLAGS_sparc64= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's|_INSTALL_PATH := |&$${DESTDIR}|' ${WRKSRC}/Makefile
@@ -40,8 +33,7 @@ post-patch:
do-configure:
@${ECHO_CMD} 'include make/unix.inc' > ${WRKSRC}/make/config.txt
@${ECHO_CMD} 'ALL_TARGETS := core core-examples core-headers' >> ${WRKSRC}/make/config.txt
-.if ${PORT_OPTIONS:MALLEGRO}
+do-configure-ALLEGRO-on:
@${ECHO_CMD} 'ALL_TARGETS += allegro allegro-examples allegro-headers' >> ${WRKSRC}/make/config.txt
-.endif
.include <bsd.port.mk>
diff --git a/audio/dvda-author/Makefile b/audio/dvda-author/Makefile
index cceaec24d568..d14b720426cf 100644
--- a/audio/dvda-author/Makefile
+++ b/audio/dvda-author/Makefile
@@ -33,11 +33,7 @@ USE_CSTD= gnu89
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MDOCS}
-CONFIGURE_ARGS+= --docdir=${WRKDIR}/doc
-.endif
+DOCS_CONFIGURE_OFF= --docdir=${WRKDIR}/doc
post-patch:
@${REINPLACE_CMD} 's|-std=c99||g' \
diff --git a/audio/easytag/Makefile b/audio/easytag/Makefile
index 21b5d1bc3e64..f2ed494e2ae1 100644
--- a/audio/easytag/Makefile
+++ b/audio/easytag/Makefile
@@ -48,19 +48,13 @@ OPUS_CONFIGURE_ENABLE= opus
SPEEX_LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex
SPEEX_CONFIGURE_ENABLE= speex
-.include <bsd.port.options.mk>
-
NLS_USES= gettext-runtime
-.if ${PORT_OPTIONS:MGTK2}
-USE_GNOME+= gtk20
-CONFIGURE_ARGS+=--with-gtk2
-.endif
+GTK2_USE= GNOME=gtk20
+GTK2_CONFIGURE_ON=--with-gtk2
-.if ${PORT_OPTIONS:MGTK3}
-USE_GNOME+= gtk30
-CONFIGURE_ARGS+=--without-gtk2
-.endif
+GTK3_USE= GNOME=gtk30
+GTK3_CONFIGURE_ON=--without-gtk2
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/audio/espeak/Makefile b/audio/espeak/Makefile
index fbc9089b7cf2..2388c8721ee4 100644
--- a/audio/espeak/Makefile
+++ b/audio/espeak/Makefile
@@ -49,13 +49,11 @@ REINPLACE_ARGS= -i.bak -e "s|%%DATADIR%%|${DATADIR}|g"
BROKEN_sparc64= Does not compile on sparc64
-.include <bsd.port.options.mk>
post-patch:
cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} ${REINPLACE_FILES}
-.if ${PORT_OPTIONS:MPORTAUDIO}
+post-patch-PORTAUDIO-on:
${MV} ${WRKSRC}/src/portaudio19.h ${WRKSRC}/src/portaudio.h
-.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/audio/etktab/Makefile b/audio/etktab/Makefile
index 75e99a56481d..4849e6c3b290 100644
--- a/audio/etktab/Makefile
+++ b/audio/etktab/Makefile
@@ -23,14 +23,10 @@ WRKSRC= ${WRKDIR}/eTktab-${PORTVERSION}
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+= canada_multi-3.2.etk:keyboard \
+DOCS_DISTFILES= canada_multi-3.2.etk:keyboard \
dvorak-3.2.etk:keyboard \
uk-3.2.etk:keyboard \
us-3.2.etk:keyboard
-.endif
post-patch:
${REINPLACE_CMD} -e 's|wish|${WISH}|g' ${WRKSRC}/eTktab
@@ -42,12 +38,11 @@ post-extract:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/eTktab ${STAGEDIR}${PREFIX}/bin/etktab
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in CHANGES.html LICENSE.html README.html eTktab-small.xpm eTktab.xpm \
canada_multi-3.2.etk dvorak-3.2.etk uk-3.2.etk us-3.2.etk
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/festival/Makefile b/audio/festival/Makefile
index 758670cf720f..de23dc6accdc 100644
--- a/audio/festival/Makefile
+++ b/audio/festival/Makefile
@@ -75,18 +75,12 @@ post-patch::
${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
${WRKSRC}/*/config/systems/default.mak
-.include <bsd.port.options.mk>
-
.for m in nas esd
-. if ${PORT_OPTIONS:M${m:tu}}
-LIB_DEPENDS+= lib${m:nas=audio}.so:${PORTSDIR}/audio/${m:esd=esound}
-post-patch::
+${m:tu}_LIB_DEPENDS= lib${m:nas=audio}.so:${PORTSDIR}/audio/${m:esd=esound}
+post-patch-${m:tu}-on:
${REINPLACE_CMD} -e 's,# INCLUDE_MODULES += ${m:tu}_AUDIO,INCLUDE_MODULES += ${m:tu}_AUDIO,' \
${WRKDIR}/*/config/config.in
-CONFIGURE_ARGS+=--enable-$m
-. else
-CONFIGURE_ARGS+=--disable-$m
-. endif
+${m:tu}_CONFIGURE_ENABLE=${m}
.endfor
do-configure:
diff --git a/audio/firefly/Makefile b/audio/firefly/Makefile
index 55f3dd16bcd2..524664b69ec7 100644
--- a/audio/firefly/Makefile
+++ b/audio/firefly/Makefile
@@ -51,13 +51,9 @@ USE_GCC= any
OPTIONS_DEFINE= JAPANESE DOCS
JAPANESE_DESC= Japanese support in ID3 tags
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MJAPANESE}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_scan-mp3.c
-USES+= iconv
-CONFIGURE_ARGS+= --enable-iconv
-.endif
+JAPANESE_EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_scan-mp3.c
+JAPANESE_USES= iconv
+JAPANESE_CONFIGURE_ON= --enable-iconv
pre-everything::
@${ECHO_CMD} "Define vars below if you need:"
@@ -66,17 +62,17 @@ pre-everything::
@${ECHO_CMD} "DAAPD_DBDIR=${DAAPD_DBDIR} (default: /var/db/${PORTNAME})"
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in README AUTHORS COPYING CREDITS \
- ChangeLog INSTALL NEWS TODO
- ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
-.endfor
-.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}/mt-daapd.conf.sample
@${MKDIR} ${STAGEDIR}${DAAPD_DBDIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for i in README AUTHORS COPYING CREDITS \
+ ChangeLog INSTALL NEWS TODO
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
+.endfor
+
.include <bsd.port.mk>
diff --git a/audio/gbsplay/Makefile b/audio/gbsplay/Makefile
index 74ed506f06dd..07861577ce7c 100644
--- a/audio/gbsplay/Makefile
+++ b/audio/gbsplay/Makefile
@@ -29,15 +29,10 @@ OPTIONS_DEFINE= NAS DOCS
.endif
-.include <bsd.port.options.mk>
-
.if ${PKGNAMEPREFIX} == ""
-.if ${PORT_OPTIONS:MNAS}
-LIB_DEPENDS+= libaudio.so:${PORTSDIR}/audio/nas
-.else
-CONFIGURE_ARGS+= --disable-nas
-.endif
+NAS_LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas
+NAS_CONFIGURE_ENABLE= nas
.endif
diff --git a/audio/gimmix/Makefile b/audio/gimmix/Makefile
index ee37a5c89d0c..e4f7f7abe9c6 100644
--- a/audio/gimmix/Makefile
+++ b/audio/gimmix/Makefile
@@ -16,6 +16,7 @@ LIB_DEPENDS= libmpd.so:${PORTSDIR}/audio/libmpd \
LICENSE= GPLv2
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
USE_GNOME= gtk20 intltool libglade2
@@ -24,18 +25,10 @@ USES= tar:bzip2 desktop-file-utils gmake pkgconfig
CONFIGURE_ENV= DATADIRNAME=share
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lintl
-CONFIGURE_ARGS+= --enable-nls
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib -lintl
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
post-patch:
@${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in
diff --git a/audio/gmpc/Makefile b/audio/gmpc/Makefile
index d61799f7cc47..ba97e2cfe58d 100644
--- a/audio/gmpc/Makefile
+++ b/audio/gmpc/Makefile
@@ -31,17 +31,9 @@ LIBS+= -L${LOCALBASE}/lib -lm
OPTIONS_DEFINE= MMKEYS XSPF
OPTIONS_DEFAULT= MMKEYS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMMKEYS}
-CONFIGURE_ARGS+=--disable-mmkeys
-.endif
-
-.if ${PORT_OPTIONS:MXSPF}
-LIB_DEPENDS+= libxspf.so:${PORTSDIR}/multimedia/libxspf
-CONFIGURE_ARGS+=--enable-libxspf
-.else
-CONFIGURE_ARGS+=--disable-libxspf
-.endif
+MMKEYS_CONFIGURE_ON=--disable-mmkeys
+
+XSPF_LIB_DEPENDS= libxspf.so:${PORTSDIR}/multimedia/libxspf
+XSPF_CONFIGURE_ENABLE= libxspf
.include <bsd.port.mk>
diff --git a/audio/gmusicbrowser/Makefile b/audio/gmusicbrowser/Makefile
index 6e605ca71579..c00b80fd1644 100644
--- a/audio/gmusicbrowser/Makefile
+++ b/audio/gmusicbrowser/Makefile
@@ -34,8 +34,6 @@ LIBNOTIFY_RUN_DEPENDS= p5-Gtk2-Notify>=0.05:${PORTSDIR}/devel/p5-Gtk2-Notify
NLS_RUN_DEPENDS= p5-Locale-gettext>=1.0:${PORTSDIR}/devel/p5-Locale-gettext
OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${STAGEDIR}${MANPREFIX}/man/man1/${MAN1}
@@ -47,9 +45,8 @@ do-install:
${INSTALL_SCRIPT} iceserver.pl ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
-.if ${PORT_OPTIONS:MNLS}
+do-install-NLS-on:
(cd ${WRKSRC}/locale && \
${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/share/locale)
-.endif
.include <bsd.port.mk>
diff --git a/audio/gnome-media/Makefile b/audio/gnome-media/Makefile
index 75fc0e6fda08..619cc51b0243 100644
--- a/audio/gnome-media/Makefile
+++ b/audio/gnome-media/Makefile
@@ -34,17 +34,10 @@ GCONF_SCHEMAS= gnome-audio-profiles.schemas \
OPTIONS_DEFINE= PULSEAUDIO
OPTIONS_DEFAULT=PULSEAUDIO
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-LIB_DEPENDS+= libpulse.so:${PORTSDIR}/audio/pulseaudio
-CONFIGURE_ARGS+=--enable-pulseaudio
-PLIST_SUB+= PULSE=""
-.else
-CONFIGURE_ARGS+=--disable-pulseaudio
-PLIST_SUB+= PULSE="@comment "
-.endif
+PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_CONFIGURE_ENABLE=pulseaudio
post-patch:
@${REINPLACE_CMD} -e 's|have_gladeui=true|have_gladeui=false|g' \
diff --git a/audio/gnome-media/pkg-plist b/audio/gnome-media/pkg-plist
index f9fde61b998c..543418fc4317 100644
--- a/audio/gnome-media/pkg-plist
+++ b/audio/gnome-media/pkg-plist
@@ -1,9 +1,9 @@
bin/gnome-audio-profiles-properties
bin/gnome-sound-recorder
-%%PULSE%%bin/gnome-volume-control
-%%PULSE%%bin/gnome-volume-control-applet
+%%PULSEAUDIO%%bin/gnome-volume-control
+%%PULSEAUDIO%%bin/gnome-volume-control-applet
bin/gstreamer-properties
-%%PULSE%%etc/xdg/autostart/gnome-volume-control-applet.desktop
+%%PULSEAUDIO%%etc/xdg/autostart/gnome-volume-control-applet.desktop
include/gnome-media/profiles/audio-profile-choose.h
include/gnome-media/profiles/audio-profile-edit.h
include/gnome-media/profiles/audio-profile.h
@@ -16,48 +16,48 @@ lib/libgnome-media-profiles.so.0
lib/libgnome-media-profiles.so.0.0.0
libdata/pkgconfig/gnome-media-profiles.pc
share/applications/gnome-sound-recorder.desktop
-%%PULSE%%share/applications/gnome-volume-control.desktop
+%%PULSEAUDIO%%share/applications/gnome-volume-control.desktop
share/applications/gstreamer-properties.desktop
%%DATADIR%%/gnome-audio-profile-edit.ui
%%DATADIR%%/gnome-audio-profile-new.ui
-%%PULSE%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-high.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-low.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-medium.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-muted.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-high.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-low.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-medium.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-muted.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-high.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-low.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-medium.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-muted.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-high.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-low.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-medium.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-muted.png
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-back.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-back-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-side.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-side-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-back.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-back-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-side.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-side-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-back-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-back.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-subwoofer.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-subwoofer-testing.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-high.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-low.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-medium.svg
-%%PULSE%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-muted.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-high.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-low.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-medium.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/16x16/status/audio-input-microphone-muted.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-high.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-low.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-medium.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/22x22/status/audio-input-microphone-muted.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-high.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-low.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-medium.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/24x24/status/audio-input-microphone-muted.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-high.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-low.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-medium.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/32x32/status/audio-input-microphone-muted.png
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-back.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-back-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-side.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-side-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-left-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-back.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-back-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-side.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-side-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-right-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-back-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-speaker-center-back.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-subwoofer.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/48x48/devices/audio-subwoofer-testing.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-high.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-low.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-medium.svg
+%%PULSEAUDIO%%%%DATADIR%%/icons/hicolor/scalable/status/audio-input-microphone-muted.svg
%%DATADIR%%/sounds/gnome-sounds-default.xml
share/gnome-sound-recorder/ui/ui.xml
share/gnome/help/gnome-audio-profiles/C/figures/gnome-audio-profiles-profile-window.png
@@ -157,21 +157,21 @@ share/gnome/help/gstreamer-properties/zh_CN/gstreamer-properties.xml
share/gstreamer-properties/gstreamer-properties.ui
share/gstreamer-properties/icons/gstreamer-properties.png
share/icons/hicolor/16x16/apps/gnome-sound-recorder.png
-%%PULSE%%share/icons/hicolor/16x16/apps/multimedia-volume-control.png
-%%PULSE%%share/icons/hicolor/16x16/apps/multimedia-volume-control.svg
+%%PULSEAUDIO%%share/icons/hicolor/16x16/apps/multimedia-volume-control.png
+%%PULSEAUDIO%%share/icons/hicolor/16x16/apps/multimedia-volume-control.svg
share/icons/hicolor/22x22/apps/gnome-sound-recorder.png
-%%PULSE%%share/icons/hicolor/22x22/apps/multimedia-volume-control.png
-%%PULSE%%share/icons/hicolor/22x22/apps/multimedia-volume-control.svg
+%%PULSEAUDIO%%share/icons/hicolor/22x22/apps/multimedia-volume-control.png
+%%PULSEAUDIO%%share/icons/hicolor/22x22/apps/multimedia-volume-control.svg
share/icons/hicolor/24x24/apps/gnome-sound-recorder.png
-%%PULSE%%share/icons/hicolor/24x24/apps/multimedia-volume-control.png
+%%PULSEAUDIO%%share/icons/hicolor/24x24/apps/multimedia-volume-control.png
share/icons/hicolor/32x32/apps/gnome-sound-recorder.png
-%%PULSE%%share/icons/hicolor/32x32/apps/multimedia-volume-control.png
-%%PULSE%%share/icons/hicolor/32x32/apps/multimedia-volume-control.svg
+%%PULSEAUDIO%%share/icons/hicolor/32x32/apps/multimedia-volume-control.png
+%%PULSEAUDIO%%share/icons/hicolor/32x32/apps/multimedia-volume-control.svg
share/icons/hicolor/48x48/apps/gnome-sound-recorder.png
-%%PULSE%%share/icons/hicolor/48x48/apps/multimedia-volume-control.png
+%%PULSEAUDIO%%share/icons/hicolor/48x48/apps/multimedia-volume-control.png
share/icons/hicolor/48x48/apps/gstreamer-properties.png
share/icons/hicolor/scalable/apps/gnome-sound-recorder.svg
-%%PULSE%%share/icons/hicolor/scalable/apps/multimedia-volume-control.svg
+%%PULSEAUDIO%%share/icons/hicolor/scalable/apps/multimedia-volume-control.svg
share/locale/af/LC_MESSAGES/gnome-media-2.0.mo
share/locale/am/LC_MESSAGES/gnome-media-2.0.mo
share/locale/ar/LC_MESSAGES/gnome-media-2.0.mo
diff --git a/audio/goobox/Makefile b/audio/goobox/Makefile
index 7f35da7fc785..456061fa3c5e 100644
--- a/audio/goobox/Makefile
+++ b/audio/goobox/Makefile
@@ -33,13 +33,7 @@ GLIB_SCHEMAS= org.gnome.Goobox.gschema.xml
OPTIONS_DEFINE= NOTIFY
OPTIONS_DEFAULT=NOTIFY
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNOTIFY}
-LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify
-CONFIGURE_ARGS+=--enable-notification
-.else
-CONFIGURE_ARGS+=--disable-notification
-.endif
+NOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
+NOTIFY_CONFIGURE_ENABLE=notification
.include <bsd.port.mk>
diff --git a/audio/gspeakers/Makefile b/audio/gspeakers/Makefile
index 313422292548..ea0a496547db 100644
--- a/audio/gspeakers/Makefile
+++ b/audio/gspeakers/Makefile
@@ -24,13 +24,8 @@ CFLAGS+= -O0
OPTIONS_DEFINE= SPICE
SPICE_DESC= Use spice instead of gnucap
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSPICE}
-RUN_DEPENDS+= spice3:${PORTSDIR}/cad/spice
-.else
-RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap
-.endif
+SPICE_RUN_DEPENDS= spice3:${PORTSDIR}/cad/spice
+SPICE_RUN_DEPENDS_OFF= gnucap:${PORTSDIR}/cad/gnucap
post-extract:
@${FIND} ${WRKSRC} -type l -delete
diff --git a/audio/jack/Makefile b/audio/jack/Makefile
index ce616919812c..618528db574b 100644
--- a/audio/jack/Makefile
+++ b/audio/jack/Makefile
@@ -41,18 +41,11 @@ ALSA_CONFIGURE_ENABLE= alsa
READLINE_LIB_DEPENDS= libreadline.so:${PORTSDIR}/devel/readline
-.include <bsd.port.options.mk>
+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
+DOXYGEN_CONFIGURE_ENV_OFF= ac_cv_prog_HAVE_DOXYGEN="false"
-.if ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
-.else
-CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN="false"
-.endif
-
-.if ! ${PORT_OPTIONS:MREADLINE}
-CONFIGURE_ENV+= ac_cv_lib_readline_readline=no \
+READLINE_CONFIGURE_ENV_OFF= ac_cv_lib_readline_readline=no \
ac_cv_header_readline_chardefs_h=no
-.endif
post-patch:
@${REINPLACE_CMD} -e 's|define USE_MLOCK|undef USE_MLOCK|' \
diff --git a/audio/jack_ghero/Makefile b/audio/jack_ghero/Makefile
index 6bc64e518db8..95b7a2d78a3b 100644
--- a/audio/jack_ghero/Makefile
+++ b/audio/jack_ghero/Makefile
@@ -21,13 +21,9 @@ PLIST_FILES= sbin/jack_ghero \
OPTIONS_DEFINE= DEBUG
-.include <bsd.port.options.mk>
-
MAKE_ARGS+= HAVE_MAN="YES"
MAKE_ARGS+= PTHREAD_LIBS="-lpthread"
-.if ${PORT_OPTIONS:MDEBUG}
-MAKE_ARGS+= HAVE_DEBUG="YES"
-.endif
+DEBUG_MAKE_ARGS= HAVE_DEBUG="YES"
.include <bsd.port.mk>
diff --git a/audio/jack_umidi/Makefile b/audio/jack_umidi/Makefile
index 1bbc473caa35..8634c066f3d7 100644
--- a/audio/jack_umidi/Makefile
+++ b/audio/jack_umidi/Makefile
@@ -23,24 +23,16 @@ OPTIONS_DEFINE= DEBUG DEVD_SCRIPT
DEVD_SCRIPT_DESC= Install devd script to auto-launch jack_umidi
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDEVD_SCRIPT}
-PLIST_FILES+= etc/devd/jack_umidi.conf
-.endif
+DEVD_SCRIPT_PLIST_FILES= etc/devd/jack_umidi.conf
MAKE_ARGS+= HAVE_MAN="YES"
MAKE_ARGS+= PTHREAD_LIBS="-lpthread"
-.if ${PORT_OPTIONS:MDEBUG}
-MAKE_ARGS+= HAVE_DEBUG="YES"
-.endif
+DEBUG_MAKE_ARGS= HAVE_DEBUG="YES"
-post-install:
-.if ${PORT_OPTIONS:MDEVD_SCRIPT}
+post-install-DEVD_SCRIPT-on::
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/devd
${INSTALL_DATA} ${WRKDIR}/jack_umidi.conf \
${STAGEDIR}${PREFIX}/etc/devd
-.endif
.include <bsd.port.mk>
diff --git a/audio/juke/Makefile b/audio/juke/Makefile
index 969ff8863047..ae04627273d2 100644
--- a/audio/juke/Makefile
+++ b/audio/juke/Makefile
@@ -17,11 +17,7 @@ SUB_FILES= pkg-message
OPTIONS_DEFINE= VI_BINDINGS
VI_BINDINGS_DESC= Use vi-like key bindings
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MVI_BINDINGS}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-vi
-.endif
+VI_BINDINGS_EXTRA_PATCHES= ${FILESDIR}/extra-patch-vi
post-install:
${INSTALL_DATA} ${WRKSRC}/juke.conf ${STAGEDIR}${PREFIX}/etc/juke.conf.sample
diff --git a/audio/kaudiocreator/Makefile b/audio/kaudiocreator/Makefile
index c7ab38a469c5..0d5e624c1b30 100644
--- a/audio/kaudiocreator/Makefile
+++ b/audio/kaudiocreator/Makefile
@@ -31,11 +31,7 @@ OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
-.include <bsd.port.options.mk>
-
-.if empty(PORT_OPTIONS:MNLS)
-post-patch:
+post-patch-NLS-off:
${REINPLACE_CMD} 's,add_subdirectory(po),,' ${WRKSRC}/CMakeLists.txt
-.endif
.include <bsd.port.mk>
diff --git a/audio/lash/Makefile b/audio/lash/Makefile
index 68f40c2b8d7e..5a1720f3bc46 100644
--- a/audio/lash/Makefile
+++ b/audio/lash/Makefile
@@ -37,19 +37,11 @@ PYTHON_USES= python
PYTHON_BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
PYTHON_CONFIGURE_OFF= --disable-pylash
-.include <bsd.port.options.mk>
+READLINE_USES= readline
+READLINE_CONFIGURE_ENV_OFF= vl_cv_lib_readline=no
-.if ${PORT_OPTIONS:MREADLINE}
-USES+= readline
-.else
-CONFIGURE_ENV+= vl_cv_lib_readline=no
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html
-.else
-CONFIGURE_ENV+= ac_cv_prog_lash_texi2html=no
-.endif
+DOCS_BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html
+DOCS_CONFIGURE_ENV_OFF= ac_cv_prog_lash_texi2html=no
post-patch:
@${REINPLACE_CMD} -e \
@@ -57,11 +49,9 @@ post-patch:
@${REINPLACE_CMD} -e \
'/texi2html/s|--number||' ${WRKSRC}/docs/Makefile.in
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/lash-manual-html-one-page/lash-manual.html \
${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile
index 973b6aed3975..6782b3cfbfcf 100644
--- a/audio/liba52/Makefile
+++ b/audio/liba52/Makefile
@@ -28,22 +28,17 @@ DJBFFT_CFLAGS= -I${LOCALBASE}/include
DJBFFT_LDFLAGS= -L${LOCALBASE}/lib
DJBFFT_CONFIGURE_ON= --enable-djbfft
-.include <bsd.port.options.mk>
-
CFLAGS_aarch64= -fPIC
CFLAGS_amd64= -fPIC
CFLAGS_powerpc= -fPIC
HEADER_FILES= liba52/a52_internal.h
-post-patch:
-.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+post-patch-OPTIMIZED_CFLAGS-off:
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-.endif
-.if ${PORT_OPTIONS:MDJBFFT}
+post-patch-DJBFFT-on:
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
-.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/audio/libaacplus/Makefile b/audio/libaacplus/Makefile
index 99d171a8d217..9c1a01d83b5f 100644
--- a/audio/libaacplus/Makefile
+++ b/audio/libaacplus/Makefile
@@ -42,15 +42,10 @@ SRC26410= 26410-800.zip
FFTW3_DESC= Use FFTW3 library for performance
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MFFTW3}
-LIB_DEPENDS+= libfftw3.so:${PORTSDIR}/math/fftw3 \
- libfftw3f.so:${PORTSDIR}/math/fftw3-float
-CONFIGURE_ARGS+=--with-fftw3=yes --with-fftw3-prefix=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-fftw3=no
-.endif
+FFTW3_LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \
+ libfftw3f.so:${PORTSDIR}/math/fftw3-float
+FFTW3_CONFIGURE_ON= --with-fftw3=yes --with-fftw3-prefix=${LOCALBASE}
+FFTW3_CONFIGURE_OFF= --with-fftw3=no
pre-configure:
@${CP} ${DISTDIR}/26410-800.zip ${WRKSRC}/src
diff --git a/audio/libamrnb/Makefile b/audio/libamrnb/Makefile
index f8a7855c884c..71dbbdc20431 100644
--- a/audio/libamrnb/Makefile
+++ b/audio/libamrnb/Makefile
@@ -41,15 +41,11 @@ OPTIONS_DEFINE= DOCS
SRC26104= 26104-b00.zip
-.include <bsd.port.options.mk>
-
post-extract:
@${CP} ${_DISTDIR}/${SRC26104} ${WRKSRC}/
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-off:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
.include <bsd.port.mk>
diff --git a/audio/libamrwb/Makefile b/audio/libamrwb/Makefile
index 34feabcf4512..9072fedd1390 100644
--- a/audio/libamrwb/Makefile
+++ b/audio/libamrwb/Makefile
@@ -40,15 +40,11 @@ OPTIONS_DEFINE= DOCS
SRC26204= 26204-b00.zip
-.include <bsd.port.options.mk>
-
post-extract:
- @${CP} ${_DISTDIR}/${SRC26204} ${WRKSRC}/
+ @${CP} ${_DISTDIR}/${SRC26204} ${WRKSRC}
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/audio/libfishsound/Makefile b/audio/libfishsound/Makefile
index 4b1774734c52..e4d23be81049 100644
--- a/audio/libfishsound/Makefile
+++ b/audio/libfishsound/Makefile
@@ -24,16 +24,12 @@ INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USES= libtool pathfix pkgconfig
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS+= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
PORTDOCS= *
-.endif
-post-patch:
-.if !${PORT_OPTIONS:MDOCS} || !${PORT_OPTIONS:MDOXYGEN}
+DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
+DOXYGEN_IMPLIES= DOCS
+
+post-patch-DOCS-off:
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| doc||' ${WRKSRC}/Makefile.in
-.endif
.include <bsd.port.mk>
diff --git a/audio/liblo/Makefile b/audio/liblo/Makefile
index 14d0712c888f..ecafb1ab3dc4 100644
--- a/audio/liblo/Makefile
+++ b/audio/liblo/Makefile
@@ -26,8 +26,6 @@ OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
-.include <bsd.port.options.mk>
-
post-patch:
.if ${ARCH} == i386 || ${ARCH} == powerpc
@${REINPLACE_CMD} -e 's,deadbeef,, ; s,f00baa23,,' \
@@ -39,13 +37,12 @@ post-install:
.for f in AUTHORS ChangeLog NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.if ${PORT_OPTIONS:MDOXYGEN}
- (cd ${WRKSRC}/doc/man/man3 && ${INSTALL_MAN} l*.3 p*.3 \
- ${STAGEDIR}${MAN3PREFIX}/man/man3/)
- (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
-.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \
${STAGEDIR}${EXAMPLESDIR}
+post-install-DOXYGEN-on:
+ (cd ${WRKSRC}/doc/man/man3 && ${INSTALL_MAN} l*.3 p*.3 \
+ ${STAGEDIR}${MAN3PREFIX}/man/man3/)
+ (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
diff --git a/audio/libmpdclient/Makefile b/audio/libmpdclient/Makefile
index d2df63d0e0cd..bfa6cd84c77a 100644
--- a/audio/libmpdclient/Makefile
+++ b/audio/libmpdclient/Makefile
@@ -16,13 +16,9 @@ INSTALL_TARGET= install-strip
OPTIONS_DEFINE= DOCS DOXYGEN
OPTIONS_SUB= yes
+DOXYGEN_IMPLIES= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
-.else
-CONFIGURE_ARGS= --disable-documentation
-.endif
+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
+DOCS_CONFIGURE_OFF= --disable-documentation
.include <bsd.port.mk>
diff --git a/audio/libnjb/Makefile b/audio/libnjb/Makefile
index 2fdc4c6ad985..f2d518cd20d8 100644
--- a/audio/libnjb/Makefile
+++ b/audio/libnjb/Makefile
@@ -25,13 +25,8 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
-.else
-CONFIGURE_ENV+= ac_cv_prog_HAVE_DOXYGEN=no
-.endif
+DOCS_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
+DOCS_CONFIGURE_ENV_OFF= ac_cv_prog_HAVE_DOXYGEN=no
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/audio/libsidplayfp/Makefile b/audio/libsidplayfp/Makefile
index ff8fc7661bbd..e868739c0542 100644
--- a/audio/libsidplayfp/Makefile
+++ b/audio/libsidplayfp/Makefile
@@ -34,8 +34,6 @@ MMX_CONFIGURE_ENABLE= mmx
BUILD_DEPENDS+= xa65:${PORTSDIR}/devel/xa65
-.include <bsd.port.options.mk>
-
SIDPLAYFP_SHLIB_VERSION= 3.2.0
STILVIEW_SHLIB_VERSION= 0.0.2
PLIST_SUB+= \
@@ -44,17 +42,13 @@ PLIST_SUB+= \
STILVIEW_SHLIB_VER=${STILVIEW_SHLIB_VERSION:C/\.[[:digit:].]+//} \
STILVIEW_SHLIB_VERSION=${STILVIEW_SHLIB_VERSION}
-post-build:
-.if ${PORT_OPTIONS:MDOXYGEN}
+post-build-DOXYGEN-on:
cd ${WRKSRC} && ${MAKE} doc
-.endif
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} ; \
cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MDOXYGEN}
+post-install-DOXYGEN-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html ; \
${INSTALL_MAN} ${WRKSRC}/docs/html/* ${STAGEDIR}${DOCSDIR}/html ; \
${RM} -f ${WRKDIR}/PLIST.doc ; \
@@ -62,6 +56,5 @@ post-install:
${SED} 's|${STAGEDIR}${PREFIX}/||' \
>> ${WRKDIR}/PLIST.doc
cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST}
-.endif
.include <bsd.port.mk>
diff --git a/audio/mctoolame-decoder/Makefile b/audio/mctoolame-decoder/Makefile
index 0a2d962b3124..8cc6f1a019f5 100644
--- a/audio/mctoolame-decoder/Makefile
+++ b/audio/mctoolame-decoder/Makefile
@@ -19,8 +19,6 @@ PLIST_SUB= PKGNAMESUFFIX="${PKGNAMESUFFIX}"
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|$$(ARCH)||' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -E \
@@ -29,9 +27,8 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mctoolamed ${STAGEDIR}${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
-.endif
.include <bsd.port.mk>
diff --git a/audio/mctoolame-encoder/Makefile b/audio/mctoolame-encoder/Makefile
index ed0a4564e4d0..de645c3c923d 100644
--- a/audio/mctoolame-encoder/Makefile
+++ b/audio/mctoolame-encoder/Makefile
@@ -19,8 +19,6 @@ PLIST_SUB= PKGNAMESUFFIX="${PKGNAMESUFFIX}"
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|$$(ARCH)||' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -E \
@@ -29,9 +27,8 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mctoolame ${STAGEDIR}${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
${INSTALL_DATA} ${WRKSRC}/html/* ${STAGEDIR}${DOCSDIR}${PKGNAMESUFFIX}/html
-.endif
.include <bsd.port.mk>
diff --git a/audio/mma/Makefile b/audio/mma/Makefile
index d27fab0233c5..2871aa76389e 100644
--- a/audio/mma/Makefile
+++ b/audio/mma/Makefile
@@ -33,11 +33,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-bin-${DISTVERSION}
python_OLD_CMD= /usr/bin/env python
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES+= ${PORTNAME}-pdf-${DISTVERSION:S,a,,}.tar.gz
-.endif
+DOCS_DISTFILES= ${PORTNAME}-pdf-${DISTVERSION:S,a,,}.tar.gz
post-patch:
@(cd ${WRKSRC} && \
diff --git a/audio/mp3asm/Makefile b/audio/mp3asm/Makefile
index ac10ff951356..4606c95ebe9a 100644
--- a/audio/mp3asm/Makefile
+++ b/audio/mp3asm/Makefile
@@ -21,8 +21,6 @@ PORTDOCS= Changelog README
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-extract:
${RM} ${WRKSRC}/config.cache
@@ -33,10 +31,8 @@ post-patch:
-e 's|\([ (!]\)\(log[\.;]\)|\1mp3asm\2|g' \
${WRKSRC}/src/mp3asm.h ${WRKSRC}/src/*.c
-.if ${PORT_OPTIONS:MDOCS}
-post-install:
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
-.endif
.include <bsd.port.mk>
diff --git a/audio/mp3blaster/Makefile b/audio/mp3blaster/Makefile
index 731cba2be2c7..25ec6d97c9fc 100644
--- a/audio/mp3blaster/Makefile
+++ b/audio/mp3blaster/Makefile
@@ -22,43 +22,23 @@ OPTIONS_DEFINE= LIRC SIDPLAY VORBIS DOCS
OPTIONS_DEFAULT= SIDPLAY VORBIS
SIDPLAY_DESC= Sidplayer support
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= AUTHORS CREDITS ChangeLog FAQ README TODO
-.endif
-.if ${PORT_OPTIONS:MLIRC}
-LIB_DEPENDS+= liblirc_client.so:${PORTSDIR}/comms/lirc
-CONFIGURE_ARGS+= --with-lirc
-.endif
+LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc
+LIRC_CONFIGURE_WITH= lirc
-.if ${PORT_OPTIONS:MSIDPLAY}
-LIB_DEPENDS+= libsidplay.so:${PORTSDIR}/audio/libsidplay
-.else
-CONFIGURE_ARGS+= --without-sidplay
-.endif
+SIDPLAY_LIB_DEPENDS= libsidplay.so:${PORTSDIR}/audio/libsidplay
+SIDPLAY_CONFIGURE_WITH= sidplay
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
-.else
-CONFIGURE_ARGS+= --without-oggvorbis
-.endif
+VORBIS_LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
+VORBIS_CONFIGURE_WITH= oggvorbis
-.if ${PORT_OPTIONS:MSDL}
-CONFIGURE_ARGS+= --with-sdl
-USE_SDL= yes
-.else
-CONFIGURE_ARGS+= --without-sdl
-.endif
+SDL_CONFIGURE_WITH= sdl
+SDL_USE= SDL=yes
-.if ${PORT_OPTIONS:MNAS}
-CONFIGURE_ARGS+= --with-nas
-LIB_DEPENDS+= libaudio.so:${PORTSDIR}/audio/nas
-LDFLAGS+= -laudio
-.else
-CONFIGURE_ARGS+= --without-nas
-.endif
+NAS_CONFIGURE_WITH= nas
+NAS_LIB_DEPENDS= libaudio.so:${PORTSDIR}/audio/nas
+NAS_LDFLAGS= -laudio
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mesound} != ""
@@ -72,12 +52,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/share/mp3blaster/win2koi.tbl|${DATADIR}/charmap/win2koi.tbl|' \
${WRKSRC}/doc/sample.mp3blasterrc
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.post.mk>
diff --git a/audio/mp3stat/Makefile b/audio/mp3stat/Makefile
index 43a59707a995..4e164d6a7bd4 100644
--- a/audio/mp3stat/Makefile
+++ b/audio/mp3stat/Makefile
@@ -32,14 +32,9 @@ PLIST_FILES= bin/mp3stat \
lib/mp3stat/ui_gtk2.so \
lib/mp3stat/ui_console.so
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MVORBIS}
-LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
-PLIST_FILES+= lib/mp3stat/input_vorb.so
-.else
-MAKE_ARGS+= VORBIS=""
-.endif
+VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
+VORBIS_PLIST_FILES= lib/mp3stat/input_vorb.so
+VORBIS_MAKE_ARGS_OFF= VORBIS=""
post-patch:
@${FIND} ${WRKSRC} -name "Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
@@ -59,11 +54,10 @@ do-install:
${STAGEDIR}${PREFIX}/lib/mp3stat)
(cd ${WRKSRC}/input/mp3 && ${INSTALL_LIB} input_mp3.so \
${STAGEDIR}${PREFIX}/lib/mp3stat)
-.if ${PORT_OPTIONS:MVORBIS}
- (cd ${WRKSRC}/input/vorbis && ${INSTALL_LIB} input_vorb.so \
- ${STAGEDIR}${PREFIX}/lib/mp3stat)
-.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
+do-install-VORBIS-on:
+ (cd ${WRKSRC}/input/vorbis && ${INSTALL_LIB} input_vorb.so \
+ ${STAGEDIR}${PREFIX}/lib/mp3stat)
.include <bsd.port.mk>
diff --git a/audio/mpdscribble/Makefile b/audio/mpdscribble/Makefile
index 8931e9e5add7..3441c55854fd 100644
--- a/audio/mpdscribble/Makefile
+++ b/audio/mpdscribble/Makefile
@@ -23,25 +23,19 @@ USE_RC_SUBR= mpdscribble
OPTIONS_DEFINE= SOUP DOCS
SOUP_DESC= Use libsoup instead of libcurl
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSOUP}
-LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/devel/libsoup
-CONFIGURE_ARGS+= --with-http-client=soup
-.else
-LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
-CONFIGURE_ARGS+= --with-http-client=curl
-.endif
+SOUP_LIB_DEPENDS= libsoup-2.4.so:${PORTSDIR}/devel/libsoup
+SOUP_CONFIGURE_ON= --with-http-client=soup
+SOUP_LIB_DEPENDS_OFF= libcurl.so:${PORTSDIR}/ftp/curl
+SOUP_CONFIGURE_OFF= --with-http-client=curl
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mpdscribble ${STAGEDIR}${PREFIX}/bin/mpdscribble
${INSTALL_MAN} ${WRKSRC}/doc/mpdscribble.1 ${STAGEDIR}${MANPREFIX}/man/man1/mpdscribble.1
${INSTALL_DATA} ${WRKSRC}/doc/mpdscribble.conf ${STAGEDIR}${PREFIX}/etc/mpdscribble.conf.sample
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/mps/Makefile b/audio/mps/Makefile
index fec638690525..916d3da8231f 100644
--- a/audio/mps/Makefile
+++ b/audio/mps/Makefile
@@ -24,12 +24,7 @@ MPV_DESC= Mpv media player support
USES= python
USE_PYTHON= distutils autoplist
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMPLAYER}
-RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
-.elif ${PORT_OPTIONS:MMPV}
-RUN_DEPENDS= mpv:${PORTSDIR}/multimedia/mpv
-.endif
+MPLAYER_RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
+MPV_RUN_DEPENDS= mpv:${PORTSDIR}/multimedia/mpv
.include <bsd.port.mk>
diff --git a/audio/muse/Makefile b/audio/muse/Makefile
index c52488ab11b8..88ff8179547a 100644
--- a/audio/muse/Makefile
+++ b/audio/muse/Makefile
@@ -37,15 +37,12 @@ SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
X11_USE= GNOME=gtk20
X11_CONFIGURE_OFF= --without-x --with-rubik
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \
${WRKSRC}/src/portaudio/pa_unix_oss.c
-.if empty(PORT_OPTIONS:MSNDFILE)
+post-patch-SNDFILE-off:
@${REINPLACE_CMD} -e '/sndfile >=/s|$$PKG_CONFIG|${FALSE}|' \
${WRKSRC}/configure
-.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/audio/musicpc/Makefile b/audio/musicpc/Makefile
index 46697ecbfe5f..d6737f28f700 100644
--- a/audio/musicpc/Makefile
+++ b/audio/musicpc/Makefile
@@ -27,14 +27,9 @@ PLIST_FILES= bin/mpc man/man1/mpc.1.gz
PORTDOCS= AUTHORS README NEWS
PORTEXAMPLES= *
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MICONV}
-USES+= iconv
-LDFLAGS+= ${ICONV_LIB}
-.else
-CONFIGURE_ARGS+=--disable-iconv
-.endif
+ICONV_USES= iconv
+ICONV_LDFLAGS= ${ICONV_LIB}
+ICONV_CONFIGURE_ENABLE= iconv
post-patch:
@${REINPLACE_CMD} -e 's|-lintl|${ICONV_LIB}|g' ${WRKSRC}/configure
diff --git a/audio/ncmpc/Makefile b/audio/ncmpc/Makefile
index aff4a05c2390..045c11d52ab6 100644
--- a/audio/ncmpc/Makefile
+++ b/audio/ncmpc/Makefile
@@ -23,8 +23,6 @@ OPTIONS_DEFINE= NLS LYRICS
OPTIONS_DEFAULT= LYRICS
LYRICS_DESC= Compile with lyrics screen
-.include <bsd.port.options.mk>
-
USES= iconv pkgconfig
PLIST_FILES= bin/ncmpc \
man/man1/ncmpc.1.gz \
@@ -32,23 +30,17 @@ PLIST_FILES= bin/ncmpc \
%%EXAMPLESDIR%%/keys \
%%EXAMPLESDIR%%/ncmpc.lirc
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
+NLS_USES= gettext
+
LANGUAGES=cs da de eo es fi fr gl he hu it ko nb nl pl pt_BR ru sk sv uk zh_CN
.for language in ${LANGUAGES}
-PLIST_FILES+=share/locale/${language}/LC_MESSAGES/ncmpc.mo
+NLS_PLIST_FILES+=share/locale/${language}/LC_MESSAGES/ncmpc.mo
.endfor
-.else
-CONFIGURE_ARGS+=--disable-nls
-.endif
+NLS_CONFIGURE_OFF=--disable-nls
-.if ${PORT_OPTIONS:MLYRICS}
-CONFIGURE_ARGS+=--enable-lyrics-screen
-PLIST_FILES+= lib/ncmpc/lyrics/10-hd.sh \
+LYRICS_CONFIGURE_ENABLE= lyrics-screen
+LYRICS_PLIST_FILES= lib/ncmpc/lyrics/10-hd.sh \
lib/ncmpc/lyrics/20-lyricwiki.rb
-.else
-CONFIGURE_ARGS+=--disable-lyrics-screen
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpc ${STAGEDIR}${PREFIX}/bin
@@ -57,14 +49,13 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/keys.sample ${STAGEDIR}${EXAMPLESDIR}/keys
${INSTALL_DATA} ${WRKSRC}/doc/ncmpc.lirc ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/doc/ncmpc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
-.if ${PORT_OPTIONS:MNLS}
+do-install-NLS-on:
.for language in ${LANGUAGES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${language}.gmo \
${STAGEDIR}${PREFIX}/share/locale/${language}/LC_MESSAGES/ncmpc.mo
.endfor
-.endif
-.if ${PORT_OPTIONS:MLYRICS}
+do-install-LYRICS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ncmpc/lyrics
(cd ${WRKSRC}/lyrics && ${INSTALL_SCRIPT} \
10-hd.sh 20-lyricwiki.rb \
diff --git a/audio/ncmpcpp/Makefile b/audio/ncmpcpp/Makefile
index 2e774d200afd..d9b2cc94695c 100644
--- a/audio/ncmpcpp/Makefile
+++ b/audio/ncmpcpp/Makefile
@@ -50,8 +50,6 @@ OUTPUTS_CONFIGURE_ENABLE= outputs
VISUALIZER_BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
VISUALIZER_CONFIGURE_ENABLE= visualizer
-.include <bsd.port.pre.mk>
-
.if ${NCURSESBASE} == /usr
# no need to use ncurses-config if we use ncurses from the base system
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
@@ -59,10 +57,9 @@ CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${STAGEDIR}${PREFIX}/bin/
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${WRKSRC}/AUTHORS ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/bindings ${WRKSRC}/doc/config ${STAGEDIR}${DOCSDIR}/
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/openal/Makefile b/audio/openal/Makefile
index 54ff84767606..2e004065b1d3 100644
--- a/audio/openal/Makefile
+++ b/audio/openal/Makefile
@@ -44,8 +44,6 @@ ASM_BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
NOT_FOR_ARCHS= ia64
NOT_FOR_ARCHS_REASON_ia64= does not compile
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's/x86_64\*/amd64\* | \*ia64\*/g; \
/CPPFLAGS=/ d; s/ \*linux\*)/ \*bsd\*)/' ${WRKSRC}/configure
@@ -55,8 +53,7 @@ post-patch:
${WRKSRC}/src/mixaudio16.h
@${REINPLACE_CMD} -e 's|@requirements@||' \
${WRKSRC}/admin/pkgconfig/openal.pc.in
-.if ! ${PORT_OPTIONS:MASM}
+post-patch-ASM-off:
@${REINPLACE_CMD} -e '/^NASM=/ s|=.*|=no|' ${WRKSRC}/configure
-.endif
.include <bsd.port.mk>
diff --git a/audio/opusfile/Makefile b/audio/opusfile/Makefile
index 58d1c61405c6..b1cf05c320d3 100644
--- a/audio/opusfile/Makefile
+++ b/audio/opusfile/Makefile
@@ -33,8 +33,6 @@ DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
INSTALL_TARGET= install-strip
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's| @openssl@||' \
${WRKSRC}/opusfile.pc.in ${WRKSRC}/opusurl.pc.in
@@ -43,13 +41,11 @@ post-patch:
${WRKSRC}/Makefile.am
@${CP} ${FILESDIR}/ftime.c ${WRKSRC}/src/
-post-install:
-.if ${PORT_OPTIONS:MDOXYGEN}
+post-install-DOXYGEN-on:
@${RM} -f ${WRKDIR}/PLIST.doc ; \
${FIND} ${STAGEDIR}${DOCSDIR}/html -type f | \
${SED} 's|${STAGEDIR}${PREFIX}/||' \
>> ${WRKDIR}/PLIST.doc ; \
(cd ${WRKDIR} ; ${SED} -i -e '/PLIST.doc/ r PLIST.doc' ${TMPPLIST})
-.endif
.include <bsd.port.mk>
diff --git a/audio/pacpl/Makefile b/audio/pacpl/Makefile
index 0f45a15a3594..894b22abe75c 100644
--- a/audio/pacpl/Makefile
+++ b/audio/pacpl/Makefile
@@ -58,8 +58,6 @@ TTA_RUN_DEPENDS= ttaenc:${PORTSDIR}/audio/tta
VORBIS_RUN_DEPENDS= vorbiscomment:${PORTSDIR}/audio/vorbis-tools
WAVPACK_RUN_DEPENDS= wavpack:${PORTSDIR}/audio/wavpack
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e \
's|"/etc/pacpl|"${ETCDIR}| ; \
@@ -100,12 +98,11 @@ do-install:
${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/plugins/gnome/nautilus && ${INSTALL_SCRIPT} PACPL-Convert \
${STAGEDIR}${PREFIX}/libexec)
-.if ${PORT_OPTIONS:MKDE4}
+do-install-KDE4-on:
(cd ${WRKSRC}/plugins/kde && ${INSTALL_SCRIPT} PACPL-Konvert \
${STAGEDIR}${PREFIX}/libexec)
@${MKDIR} ${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus
(cd ${WRKSRC}/plugins/kde && ${INSTALL_DATA} pacpl.desktop \
${STAGEDIR}${PREFIX}/share/kde4/services/ServiceMenus)
-.endif
.include <bsd.port.mk>
diff --git a/audio/paprefs/Makefile b/audio/paprefs/Makefile
index c7cc65ae5776..7cd388b853f6 100644
--- a/audio/paprefs/Makefile
+++ b/audio/paprefs/Makefile
@@ -21,20 +21,12 @@ USE_GNOME= gconfmm26 gnomeprefix intltool
CONFIGURE_ARGS= --disable-lynx
OPTIONS_DEFINE= PK NLS
+OPTIONS_SUB= yes
PK_DESC= Force dependency on PackageKit
-.include <bsd.port.options.mk>
+PK_LIB_DEPENDS= libpackagekit-glib2.so:${PORTSDIR}/ports-mgmt/packagekit
-.if ${PORT_OPTIONS:MPK}
-LIB_DEPENDS+= libpackagekit-glib2.so:${PORTSDIR}/ports-mgmt/packagekit
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.mk>
diff --git a/audio/portaudio/Makefile b/audio/portaudio/Makefile
index 2094bded6975..f671d47190d3 100644
--- a/audio/portaudio/Makefile
+++ b/audio/portaudio/Makefile
@@ -46,49 +46,38 @@ JACK_CONFIGURE_OFF= --without-jack
EXAMPLES_BIN= pa_d* pa_f* paex_*
PATEST_BIN= pa_m* paqa_* patest*
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
-.endif
+DOXYGEN_IMPLIES= DOCS
+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
post-patch:
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' ${WRKSRC}/configure.in \
${WRKSRC}/src/hostapi/oss/pa_unix_oss.c ${WRKSRC}/src/SConscript
@${REINPLACE_CMD} -e 's|PACKAGE_NAME=|PACKAGE_NAME=portaudio2|' ${WRKSRC}/configure
-.if ! ${PORT_OPTIONS:MEXAMPLES}
+post-patch-EXAMPLES-off:
@${REINPLACE_CMD} -i '' '/EXAMPLES =/,/bin\/paex_write_sine_nonint/s/^/#/' \
${WRKSRC}/Makefile.in
-.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libportaudio.so.2
-.if ${PORT_OPTIONS:MEXAMPLES}
-.for f in ${EXAMPLES_BIN}
- ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/bin/
-.endfor
-.endif
-
-.if ${PORT_OPTIONS:MPATEST}
+post-install-PATEST-on:
.for f in ${PATEST_BIN}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/bin/
.endfor
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
+post-install-DOXYGEN-on:
@cd ${WRKSRC} && doxygen
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
-.endif
+post-install-EXAMPLES-on:
+.for f in ${EXAMPLES_BIN}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${STAGEDIR}${PREFIX}/bin/
+.endfor
+ (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile
index f58a349f66be..fadd818bfa6a 100644
--- a/audio/pulseaudio/Makefile
+++ b/audio/pulseaudio/Makefile
@@ -79,8 +79,6 @@ ZSH_CONFIGURE_OFF= --without-zsh-completion-dir
PULSE_VERSION= ${PORTVERSION}
PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/src/daemon/default.pa.in
@@ -94,8 +92,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/src/${ii} \
${STAGEDIR}${PREFIX}/etc/pulse/${ii}.sample
.endfor
-.if !${PORT_OPTIONS:MBASH}
+post-install-BASH-off:
@${RM} -rf ${STAGEDIR}${PREFIX}/etc/bash_completion.d
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/scrobbler/Makefile b/audio/scrobbler/Makefile
index 861ea3c06bda..823cf6ee6170 100644
--- a/audio/scrobbler/Makefile
+++ b/audio/scrobbler/Makefile
@@ -41,11 +41,6 @@ APE_CONFIGURE_ENABLE= prefer-ape
ENCODINGS_PATCH_USES= iconv
-.include <bsd.port.options.mk>
-
-post-patch::
-.if ${PORT_OPTIONS:MENCODINGS_PATCH}
- @${PATCH} ${PATCH_ARGS} -p1 < ${FILESDIR}/extra-encodings-patch
-.endif
+ENCODINGS_PATCH_EXTRA_PATCHES= ${FILESDIR}/extra-encodings-patch:-p1
.include <bsd.port.mk>
diff --git a/audio/shairport/Makefile b/audio/shairport/Makefile
index d81e74754b2e..1d79536540db 100644
--- a/audio/shairport/Makefile
+++ b/audio/shairport/Makefile
@@ -34,8 +34,6 @@ REV= b1cb9ea
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|avahi-|${LOCALBASE}/bin/avahi-|g' \
-e 's|$$FindBin.*|"${PREFIX}/bin/hairtunes";|' \
@@ -48,11 +46,10 @@ do-install:
.for file in ${PORTNAME} hairtunes
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin
.endfor
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} -p ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/shoutcast/Makefile b/audio/shoutcast/Makefile
index 373aa030597a..a69caefd6984 100644
--- a/audio/shoutcast/Makefile
+++ b/audio/shoutcast/Makefile
@@ -27,6 +27,7 @@ NO_BUILD= yes
OPTIONS_DEFAULT= SERVERSETUP EXAMPLES
OPTIONS_DEFINE= SERVERSETUP DOCS EXAMPLES
+OPTIONS_SUB= yes
SETUPSERVER_DESC= SHOUTcast Server Setup Tools
EXAMPLE_DESC= SHOUTcast Server Example Configuration Files
@@ -50,8 +51,6 @@ SUB_LIST= ${SHOUTCAST_SUB}
USERS= ${SHOUTCASTUSER}
GROUPS= ${SHOUTCASTGROUP}
-.include <bsd.port.options.mk>
-
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000010
.if ${ARCH} == "i386"
RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
@@ -60,12 +59,6 @@ RUN_DEPENDS+= ${LOCALBASE}/lib32/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
.endif
.endif
-.if ${PORT_OPTIONS:MSERVERSETUP}
-PLIST_SUB+= SERVERSETUP=""
-.else
-PLIST_SUB+= SERVERSETUP="@comment "
-.endif
-
post-patch:
.for _file in basic public relay simple
@${REINPLACE_CMD} -e '/sc_serv2 directory/d' \
@@ -80,7 +73,8 @@ do-install:
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/logs
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/control
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DNAS_Server_Changelog.html ${STAGEDIR}${DOCSDIR}/DNAS_Server_Changelog.html
${INSTALL_DATA} ${WRKSRC}/Readme_DNAS_Server.html ${STAGEDIR}${DOCSDIR}/Readme_DNAS_Server.html
@@ -127,20 +121,18 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/docs/res/Console_Windows.png ${STAGEDIR}${DOCSDIR}/docs/res/Console_Windows.png
${INSTALL_DATA} ${WRKSRC}/docs/res/View_Source_Connection_Details.png ${STAGEDIR}${DOCSDIR}/docs/res/View_Source_Connection_Details.png
-.endif
-.if ${PORT_OPTIONS:MSERVERSETUP}
+do-install-SERVERSETUP-on:
${MKDIR} ${STAGEDIR}${WWWDIR}/setup
${INSTALL_DATA} ${WRKSRC}/setup.sh ${STAGEDIR}${WWWDIR}/setup.sh
${INSTALL_DATA} ${WRKSRC}/setup/setup.js ${STAGEDIR}${WWWDIR}/setup/setup.js
${INSTALL_DATA} ${WRKSRC}/setup/setup.html ${STAGEDIR}${WWWDIR}/setup/setup.html
${INSTALL_DATA} ${WRKSRC}/setup/setup.txt ${STAGEDIR}${WWWDIR}/setup/setup.txt
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
+
+do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_basic.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_basic.conf
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_public.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_public.conf
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_relay.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_relay.conf
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_simple.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_simple.conf
-.endif
.include <bsd.port.mk>
diff --git a/audio/soundtracker/Makefile b/audio/soundtracker/Makefile
index 9f59731a5cab..66218be0223d 100644
--- a/audio/soundtracker/Makefile
+++ b/audio/soundtracker/Makefile
@@ -23,6 +23,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= JACK SDL NLS
OPTIONS_DEFINE_i386= ASM
+OPTIONS_SUB= yes
ASM_DESC= Use optimized assembly (potentially unstable)
CONFIGURE_ARGS+= --disable-gnome
@@ -31,31 +32,16 @@ DESKTOP_ENTRIES="SoundTracker" "Pattern-oriented music editor" \
"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \
"soundtracker" "AudioVideo;Audio;AudioVideoEditing;" false
-.include <bsd.port.options.mk>
+ASM_CONFIGURE_ENABLE= asm
-.if ${PORT_OPTIONS:MASM}
-CONFIGURE_ARGS+= --enable-asm
-.endif
+JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
+JACK_CONFIGURE_ENABLE= jack
-.if ${PORT_OPTIONS:MJACK}
-LIB_DEPENDS+= libjack.so:${PORTSDIR}/audio/jack
-.else
-CONFIGURE_ARGS+= --disable-jack
-.endif
+DSL_USE= SDL=sdl
+DSL_CONFIGURE_ENABLE= sdl
-.if ${PORT_OPTIONS:MSDL}
-USE_SDL= sdl
-.else
-CONFIGURE_ARGS+= --disable-sdl
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e 's|soundtracker.desktop||' \
@@ -67,10 +53,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|PREFIX"/share/soundtracker|DATADIR"|' \
${WRKSRC}/app/gui.c
-pre-build:
-.if ${PORT_OPTIONS:MNLS}
+pre-build-NLS-on:
cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt -c -o ja.gmo ja.po
-.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/sharp.xpm \
diff --git a/audio/sox/Makefile b/audio/sox/Makefile
index b64b552a4777..a9b0947c735a 100644
--- a/audio/sox/Makefile
+++ b/audio/sox/Makefile
@@ -92,14 +92,10 @@ TWOLAME_LIB_DEPENDS= libtwolame.so:${PORTSDIR}/audio/twolame
OPUS_CONFIGURE_WITH= opus
OPUS_LIB_DEPENDS= libopusfile.so:${PORTSDIR}/audio/opusfile
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MGSM}
# We cannot ask for gsm to be enabled without it trying to use external gsm,
# so force the autoconf checks to fail
-CONFIGURE_ENV+= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
+GSM_CONFIGURE_ENV_OFF= ac_cv_header_gsm_h=no ac_cv_header_gsm_gsm_h=no \
ac_cv_lib_gsm_gsm_create=no
-.endif
INSTALL_TARGET= install-strip
diff --git a/audio/sphinxbase/Makefile b/audio/sphinxbase/Makefile
index 2b240996d993..3f83b74391bf 100644
--- a/audio/sphinxbase/Makefile
+++ b/audio/sphinxbase/Makefile
@@ -28,21 +28,12 @@ OPTIONS_DEFAULT= THREADS
SNDFILE_DESC= libsndfile support
THREADS_DESC= Build with thread safety support
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSNDFILE}
-USES+= pkgconfig
-LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
-.else
-CONFIGURE_ENV+= HAVE_PKGCONFIG=no
-.endif
-
-.if ${PORT_OPTIONS:MTHREADS}
-LDFLAGS+= -lpthread
-CONFIGURE_ARGS+= --enable-threads
-.else
-CONFIGURE_ARGS+= --disable-threads
-.endif
+SNDFILE_USES= pkgconfig
+SNDFILE_LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
+SNDFILE_CONFIGURE_ENV_OFF= HAVE_PKGCONFIG=no
+
+THREADS_LDFLAGS= -lpthread
+THREADS_CONFIGURE_ENABLE= threads
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsphinx*.so
diff --git a/audio/spiralsynth/Makefile b/audio/spiralsynth/Makefile
index d6c31c7eb691..db5c776e6472 100644
--- a/audio/spiralsynth/Makefile
+++ b/audio/spiralsynth/Makefile
@@ -23,8 +23,6 @@ DOC_FILES= CHANGES COPYING README
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
.for ii in \
Makefile.in \
@@ -70,11 +68,10 @@ pre-install:
.else
${ECHO_CMD} bin/SpiralSynth > ${PLIST}
.endif
-.if ${PORT_OPTIONS:MDOCS}
+pre-install-DOCS-on:
.for ii in ${DOC_FILES}
${ECHO_CMD} share/doc/spiralsynth/${ii} >> ${PLIST}
.endfor
-.endif
do-install:
.if defined(PLUGIN)
@@ -83,11 +80,10 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${STAGEDIR}${PREFIX}/bin
.endif
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for ii in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${ii} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/squeezeboxserver/Makefile b/audio/squeezeboxserver/Makefile
index ce84aa3c2c96..489301b38c28 100644
--- a/audio/squeezeboxserver/Makefile
+++ b/audio/squeezeboxserver/Makefile
@@ -44,28 +44,14 @@ USERS= ${SLIMUSER}
GROUPS= ${SLIMGROUP}
USES= perl5 tar:tgz
-.include <bsd.port.pre.mk>
-
USE_MYSQL= server
-.if ${PORT_OPTIONS:MAPE}
-RUN_DEPENDS+= mac:${PORTSDIR}/audio/mac
-.endif
-.if ${PORT_OPTIONS:MFAAD}
-RUN_DEPENDS+= faad:${PORTSDIR}/audio/faad
-.endif
-.if ${PORT_OPTIONS:MFLAC}
-RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac
-.endif
-.if ${PORT_OPTIONS:MLAME}
-RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
-.endif
-.if ${PORT_OPTIONS:MSHORTEN}
-RUN_DEPENDS+= shorten:${PORTSDIR}/audio/shorten
-.endif
-.if ${PORT_OPTIONS:MSOX}
-RUN_DEPENDS+= sox:${PORTSDIR}/audio/sox
-.endif
+APE_RUN_DEPENDS= mac:${PORTSDIR}/audio/mac
+FAAD_RUN_DEPENDS= faad:${PORTSDIR}/audio/faad
+FLAC_RUN_DEPENDS= flac:${PORTSDIR}/audio/flac
+LAME_RUN_DEPENDS= lame:${PORTSDIR}/audio/lame
+SHORTEN_RUN_DEPENDS= shorten:${PORTSDIR}/audio/shorten
+SOX_RUN_DEPENDS= sox:${PORTSDIR}/audio/sox
USE_RC_SUBR= squeezeboxserver
TMP_SLIMDIR= ${WRKDIR}/_squeezeboxserver
@@ -187,10 +173,9 @@ do-build:
.for _CONF in ${CONFFILES}
@cd ${WRKSRC} && ${INSTALL_DATA} ${_CONF} ${TMP_SLIMDIR}/${_CONF}.sample
.endfor
-.if ${PORT_OPTIONS:MDOCS}
+do-build-DOCS-on:
@${MKDIR} ${TMP_DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${TMP_DOCSDIR}
-.endif
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@@ -208,9 +193,8 @@ do-install:
${LOCALBASE}/share/mysql/english/errmsg.sys \
${STAGEDIR}${PREFIX}/${SLIMDIR}/MySQL/
@${INSTALL_SCRIPT} ${WRKDIR}/softsqueeze.sh ${STAGEDIR}${PREFIX}/bin/softsqueeze
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${TMP_DOCSDIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/streamripper/Makefile b/audio/streamripper/Makefile
index 45f555cd2133..1e1c847e6627 100644
--- a/audio/streamripper/Makefile
+++ b/audio/streamripper/Makefile
@@ -38,19 +38,11 @@ LDFLAGS+= -Lcdk-${CDK_VERSION} -L${LOCALBASE}/lib
CDK_VERSION= 5.0-20060507
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MFAAD}
-CONFIGURE_ARGS+=ac_cv_lib_faad_NeAACDecDecode2=no
-.else
-LIB_DEPENDS+= libfaad.so:${PORTSDIR}/audio/faad
-.endif
-
-.if ! ${PORT_OPTIONS:MVORBIS}
-CONFIGURE_ARGS+=--without-ogg
-.else
-LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
-.endif
+FAAD_CONFIGURE_OFF= ac_cv_lib_faad_NeAACDecDecode2=no
+FAAD_LIB_DEPENDS= libfaad.so:${PORTSDIR}/audio/faad
+
+VORBIS_CONFIGURE_WITH= ogg
+VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
post-extract:
${MV} ${WRKDIR}/cdk-${CDK_VERSION} ${WRKSRC}
diff --git a/audio/swhplugins/Makefile b/audio/swhplugins/Makefile
index ffb1035a7717..7ca8cc11f4d4 100644
--- a/audio/swhplugins/Makefile
+++ b/audio/swhplugins/Makefile
@@ -27,26 +27,17 @@ USE_LDCONFIG= yes
CFLAGS+= -fPIC -DPIC
OPTIONS_DEFINE= NLS 3DNOW SSE
+OPTIONS_SUB= yes
3DNOW_DESC= use 3DNow! instructions
SSE_DESC= use SSE instructions
-.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-LDFLAGS+= -lintl
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:M3DNOW}
-CONFIGURE_ARGS+= --enable-3dnow
-.endif
-
-.if ${PORT_OPTIONS:MSSE}
-CONFIGURE_ARGS+= --enable-sse
-.endif
+NLS_USES= gettext
+NLS_LDFLAGS= -lintl
+NLS_CONFIGURE_ENABLE= nls
+
+3DNOW_CONFIGURE_ENABLE= 3dnow
+
+SSE_CONFIGURE_ENABLE= sse
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/audio/taglib/Makefile b/audio/taglib/Makefile
index b51fcb14361e..84ac07345979 100644
--- a/audio/taglib/Makefile
+++ b/audio/taglib/Makefile
@@ -35,15 +35,12 @@ RCC_EXTRA_PATCHES= ${FILESDIR}/extrapatch-rcc
RCC_CFLAGS= -I${LOCALBASE}/include
RCC_LDFLAGS= -L${LOCALBASE}/lib
-.include <bsd.port.options.mk>
-
-post-patch:
-.if ${PORT_OPTIONS:MRCC}
+post-patch-RCC-on:
@${REINPLACE_CMD} -e 's|-ltag|-ltag -lrcc|g' \
${WRKSRC}/taglib.pc.cmake ${WRKSRC}/taglib-config.cmake
@${REINPLACE_CMD} -e 's|-ltag_c|-ltag_c -lrcc|g' \
${WRKSRC}/bindings/c/taglib_c.pc.cmake
-.endif
+post-patch:
${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt ${WRKSRC}/bindings/c/CMakeLists.txt
diff --git a/audio/tempest_for_eliza/Makefile b/audio/tempest_for_eliza/Makefile
index 2ce3b754f862..ddebb4e88c7a 100644
--- a/audio/tempest_for_eliza/Makefile
+++ b/audio/tempest_for_eliza/Makefile
@@ -20,14 +20,11 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/tempest
${INSTALL_DATA} ${SONGS:S,^,${WRKSRC}/songs/,} ${STAGEDIR}${PREFIX}/share/tempest
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/audio/timemachine/Makefile b/audio/timemachine/Makefile
index 88f16a1f594e..b12ff1a3e9fe 100644
--- a/audio/timemachine/Makefile
+++ b/audio/timemachine/Makefile
@@ -23,13 +23,8 @@ USE_GNOME= gtk20
GNU_CONFIGURE= yes
LDFLAGS+= -lm
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MLASH}
-LIB_DEPENDS+= liblash.so:${PORTSDIR}/audio/lash
-.else
-CONFIGURE_ARGS+=--disable-lash
-.endif
+LASH_LIB_DEPENDS= liblash.so:${PORTSDIR}/audio/lash
+LASH_CONFIGURE_OFF= --disable-lash
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/audio/uade/Makefile b/audio/uade/Makefile
index dc8032ef1780..cbb29f565925 100644
--- a/audio/uade/Makefile
+++ b/audio/uade/Makefile
@@ -35,31 +35,18 @@ PORTDOCS= BUGS PLANS REDUNDANT_REPLAYERS UAE-CREDITS UAE-README \
play_loop_state_diagram.txt uade.html
OPTIONS_DEFINE= TEXTSCOPE FUSE XMMS DOCS
+OPTIONS_SUB= yes
TEXTSCOPE_DESC= Audio register debug mode
XMMS_DESC= XMMS plugin
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MTEXTSCOPE}
-CONFIGURE_ARGS+=--with-text-scope
-.endif
-
-.if ${PORT_OPTIONS:MFUSE}
-USES+= fuse
-PLIST_SUB+= FUSE=""
-.else
-CONFIGURE_ARGS+=--without-uadefs
-PLIST_SUB+= FUSE="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MXMMS}
-LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms
-PLIST_SUB+= XMMS=""
-.else
-CONFIGURE_ARGS+=--without-xmms
-PLIST_SUB+= XMMS="@comment "
-.endif
+TEXTSCOPE_CONFIGURE_WITH= text-scope
+
+FUSE_USES= fuse
+FUSE_CONFIGURE_WITH= uadefs
+
+XMMS_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms
+XMMS_CONFIGURE_WITH= xmms
post-extract:
@${RM} -rf ${WRKSRC}/players/S
diff --git a/audio/vagalume/Makefile b/audio/vagalume/Makefile
index 941112bae90f..a31320342031 100644
--- a/audio/vagalume/Makefile
+++ b/audio/vagalume/Makefile
@@ -25,7 +25,6 @@ OPTIONS_DEFAULT= DBUS TRAY
OPTIONS_SUB= NLS DBUS
TRAY_DESC= Tray icon and libnotify support
-.include <bsd.port.options.mk>
DBUS_LIB_DEPENDS= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
DBUS_CONFIGURE_ON= --enable-dbus --enable-im-status
@@ -35,26 +34,21 @@ TRAY_BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/libnotify.pc:${PORTSDIR}/deve
TRAY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
TRAY_CONFIGURE_ENABLE= tray-icon
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+=--disable-nls
-.endif
+NLS_USES= gettext
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+NLS_CONFIGURE_ENABLE= nls
-.if ${PORT_OPTIONS:MGCONF}
-USE_GNOME+= gconf2
-CONFIGURE_ARGS+=--enable-gconf
+GCONF_USE= GNOME=gconf2
+GCONF_CONFIGURE_ENABLE= gconf
.endif
post-patch:
@${REINPLACE_CMD} -e 's|serviceentrydir = @serviceentrydir@|serviceentrydir = ${PREFIX}/share/dbus-1/services|' \
${WRKSRC}/Makefile.in
-.if empty(PORT_OPTIONS:MNLS)
+post-patch-NLS-off:
@${REINPLACE_CMD} -e 's|SUBDIRS = src po|SUBDIRS = src|' \
${WRKSRC}/Makefile.in
-.endif
post-install:
${CP} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps
diff --git a/audio/voipong/Makefile b/audio/voipong/Makefile
index e66970c53927..c4986d17cdd1 100644
--- a/audio/voipong/Makefile
+++ b/audio/voipong/Makefile
@@ -16,10 +16,7 @@ MAKEFILE= Makefile.bsd
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}/users-manual
${INSTALL_DATA} ${WRKSRC}/docs/users-manual/*.html ${STAGEDIR}${DOCSDIR}/users-manual/
@@ -27,6 +24,5 @@ post-install:
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/audio/xmp/Makefile b/audio/xmp/Makefile
index f64c89826d4d..869312e7f5ce 100644
--- a/audio/xmp/Makefile
+++ b/audio/xmp/Makefile
@@ -27,22 +27,12 @@ CONFIG_FILES= xmp.conf modules.conf
OPTIONS_DEFINE= ALSA PULSEAUDIO
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MALSA}
-LIB_DEPENDS+= libasound.so:${PORTSDIR}/audio/alsa-lib
-RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
-CONFIGURE_ARGS+= --enable-alsa
-.else
-CONFIGURE_ARGS+= --disable-alsa
-.endif
-
-.if ${PORT_OPTIONS:MPULSEAUDIO}
-LIB_DEPENDS+= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
-CONFIGURE_ARGS+= --enable-pulseaudio
-.else
-CONFIGURE_ARGS+= --disable-pulseaudio
-.endif
+ALSA_LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib
+ALSA_RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
+ALSA_CONFIGURE_ENABLE= alsa
+
+PULSEAUDIO_LIB_DEPENDS= libpulse-simple.so:${PORTSDIR}/audio/pulseaudio
+PULSEAUDIO_CONFIGURE_ENABLE= pulseaudio
post-patch:
@${REINPLACE_CMD} -e 's|\ install-conf||' ${WRKSRC}/Makefile.in
diff --git a/audio/yell/Makefile b/audio/yell/Makefile
index 3b61612d8cb7..dd67dbf4a44a 100644
--- a/audio/yell/Makefile
+++ b/audio/yell/Makefile
@@ -9,25 +9,19 @@ MASTER_SITES= LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Command-line pc speaker bell
-PLIST_FILES= bin/yell
-
ONLY_FOR_ARCHS= i386 amd64
OPTIONS_DEFINE= SUID
SUID_DESC= Use suid to allow execution as non root
-.include <bsd.port.options.mk>
+SUID_PLIST_FILES= "@(,,4110) bin/yell"
+SUID_PLIST_FILES_OFF= "@(,,0100) bin/yell"
do-build:
${CC} ${WRKSRC}/yell.c ${CFLAGS} -o ${WRKSRC}/${PORTNAME}
do-install:
-.if ${PORT_OPTIONS:MSUID}
- ${INSTALL_PROGRAM} -m 4110 ${WRKSRC}/${PORTNAME} \
- ${STAGEDIR}/${PREFIX}/bin
-.else
- ${INSTALL_PROGRAM} -m 0100 ${WRKSRC}/${PORTNAME} \
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
${STAGEDIR}/${PREFIX}/bin
-.endif
.include <bsd.port.mk>