summaryrefslogtreecommitdiff
path: root/audio/mad123/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mad123/Makefile')
-rw-r--r--audio/mad123/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/audio/mad123/Makefile b/audio/mad123/Makefile
index cb444639786..0128d7db4d7 100644
--- a/audio/mad123/Makefile
+++ b/audio/mad123/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2005/06/16 06:57:39 jlam Exp $
+# $NetBSD: Makefile,v 1.16 2005/11/11 18:58:18 joerg Exp $
#
DISTNAME= mad123-0.8.5
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.mctavish.co.uk/mad123/
@@ -9,8 +10,14 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.mctavish.co.uk/mad123/
COMMENT= Command-line MPEG audio player
+.include "../../mk/bsd.prefs.mk"
+
PKG_OPTIONS_VAR= PKG_OPTIONS.mad123
-PKG_SUPPORTED_OPTIONS= arts oss
+PKG_SUPPORTED_OPTIONS= arts oss sun
+PKG_DEFAULT_OPTIONS+= oss
+.if ${OPSYS} != "DragonFly"
+PKG_DEFAULT_OPTIONS+= sun
+.endif
.include "../../mk/bsd.options.mk"
@@ -20,9 +27,14 @@ MAKE_FLAGS+= USE_ARTS=yes
.endif
.if !empty(PKG_OPTIONS:Moss)
+MAKE_FLAGS+= USE_OSS=yes
. include "../../mk/ossaudio.buildlink3.mk"
.endif
+.if !empty(PKG_OPTIONS:Msun)
+MAKE_FLAGS+= USE_SUN=yes
+.endif
+
INSTALLATION_DIRS= bin man/man1
do-install: