diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-04-10 16:26:44 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-04-10 16:26:44 +0000 |
commit | e8b06e400e9b994947d745e2e2d9bbcbde221b77 (patch) | |
tree | 3b0d083ed3372bd222d5f4ef9f4330da4afc33f8 /audio | |
parent | Update to 0.9.1. (diff) |
use OPTIONS.
Notes
Notes:
svn path=/head/; revision=132897
Diffstat (limited to 'audio')
-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> |