diff options
author | ume <ume@FreeBSD.org> | 2005-04-11 00:26:44 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-04-11 00:26:44 +0800 |
commit | 8a48f005056b07f4a1e0411f88e2684d68f42c8b (patch) | |
tree | 1e53813006c38042122d24ab8abbe83db4ce3796 /audio/gkrellmms2 | |
parent | e1849b799a5e585eef2cdc544c7131612ef5bca7 (diff) | |
download | freebsd-ports-gnome-8a48f005056b07f4a1e0411f88e2684d68f42c8b.tar.gz freebsd-ports-gnome-8a48f005056b07f4a1e0411f88e2684d68f42c8b.tar.zst freebsd-ports-gnome-8a48f005056b07f4a1e0411f88e2684d68f42c8b.zip |
use OPTIONS.
Diffstat (limited to 'audio/gkrellmms2')
-rw-r--r-- | audio/gkrellmms2/Makefile | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/audio/gkrellmms2/Makefile b/audio/gkrellmms2/Makefile index a3caed5b3a68..f81eec274635 100644 --- a/audio/gkrellmms2/Makefile +++ b/audio/gkrellmms2/Makefile @@ -15,12 +15,6 @@ MASTER_SITES= http://gkrellm.luon.net/files/ MAINTAINER= ume@FreeBSD.org COMMENT= GKrellM XMMS Plugin -.if defined(WITH_BEEP_MEDIA_PLAYER) -LIB_DEPENDS= beep.2:${PORTSDIR}/multimedia/beep-media-player -MAKE_ENV+= WITH_BMP=yes -.else -LIB_DEPENDS= xmms.4:${PORTSDIR}/multimedia/xmms -.endif BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2 RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 @@ -41,4 +35,24 @@ MAKE_ENV+= PLUGIN_DIR=${PREFIX}/libexec/gkrellm2/plugins \ LOCALEDIR=${PREFIX}/share/locale \ enable_nls=1 -.include <bsd.port.mk> +OPTIONS= BEEP_MEDIA_PLAYER "Use beep" off \ + XMMS "Use XMMS" on + +.include <bsd.port.pre.mk> + +.if !defined(WITH_BEEP_MEDIA_PLAYER) && !defined(WITH_XMMS) +.if defined(WITHOUT_BEEP_MEDIA_PLAYER) && defined(WITHOUT_XMMS) +BROKEN= "You need to select beep or XMMS. Run 'make config' again!" +.endif +WITH_XMMS= yes +.elif defined(WITH_BEEP_MEDIA_PLAYER) && defined(WITH_XMMS) +BROKEN= "beep and XMMS is mutually exclusive. Run 'make config' again!" +.endif +.if defined(WITH_BEEP_MEDIA_PLAYER) +LIB_DEPENDS= beep.2:${PORTSDIR}/multimedia/beep-media-player +MAKE_ENV+= WITH_BMP=yes +.elif defined(WITH_XMMS) +LIB_DEPENDS= xmms.4:${PORTSDIR}/multimedia/xmms +.endif + +.include <bsd.port.post.mk> |