summaryrefslogtreecommitdiff
path: root/audio/cmus
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2009-06-07 12:31:43 +0000
committerahoka <ahoka@pkgsrc.org>2009-06-07 12:31:43 +0000
commit8f573a8906b9b1c0cab9686a907da574975d65dc (patch)
tree9f43101bc422fd963e2fd8be069de927ee5b5b61 /audio/cmus
parentc5ae6d32d5e2a43231f9ddcac29a8828d98a28cb (diff)
downloadpkgsrc-8f573a8906b9b1c0cab9686a907da574975d65dc.tar.gz
I need some parts reusable for cmus-unofficial.
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/Makefile36
-rw-r--r--audio/cmus/Makefile.common34
2 files changed, 38 insertions, 32 deletions
diff --git a/audio/cmus/Makefile b/audio/cmus/Makefile
index 41fb0b14f93..bb7a7af4bb3 100644
--- a/audio/cmus/Makefile
+++ b/audio/cmus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2009/01/01 21:47:31 hubertf Exp $
+# $NetBSD: Makefile,v 1.18 2009/06/07 12:31:43 ahoka Exp $
#
DISTNAME= cmus-2.2.0
@@ -9,36 +9,8 @@ EXTRACT_SUFX= .tar.bz2
MAINTAINER= ahoka@NetBSD.org
HOMEPAGE= http://cmus.sourceforge.net/
-COMMENT= Cmus is an ncurses based music player with a lot of features
+COMMENT= Cmus is a curses based music player with a lot of features
-PKG_DESTDIR_SUPPORT= user-destdir
+CONFLICTS+= cmus-unofficial-[0-9]*
-HAS_CONFIGURE= yes
-USE_TOOLS+= gmake pkg-config
-
-CONFIGURE_ARGS+= prefix=${PREFIX}
-CONFIGURE_ARGS+= CONFIG_ALSA=n
-CONFIGURE_ARGS+= mandir=${PREFIX}/${PKGMANDIR}/
-PLIST_VARS+= sunaudio oss
-
-.include "../../mk/oss.buildlink3.mk"
-.if ${OSS_TYPE} != "none"
-PLIST.oss= yes
-CONFIGURE_ARGS+= CONFIG_OSS=y
-.else
-CONFIGURE_ARGS+= CONFIG_OSS=n
-.endif
-
-.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "SunOS" || exists(/usr/include/sys/audioio.h)
-CONFIGURE_ARGS+= CONFIG_SUN=y
-PLIST.sunaudio= yes
-.else
-CONFIGURE_ARGS+= CONFIG_SUN=n
-.endif
-
-.include "options.mk"
-
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../converters/libiconv/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
+.include "../cmus/Makefile.common"
diff --git a/audio/cmus/Makefile.common b/audio/cmus/Makefile.common
new file mode 100644
index 00000000000..9128feb9751
--- /dev/null
+++ b/audio/cmus/Makefile.common
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile.common,v 1.1 2009/06/07 12:31:43 ahoka Exp $
+#
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+HAS_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config
+
+CONFIGURE_ARGS+= prefix=${PREFIX}
+CONFIGURE_ARGS+= CONFIG_ALSA=n
+CONFIGURE_ARGS+= mandir=${PREFIX}/${PKGMANDIR}/
+PLIST_VARS+= sunaudio oss
+
+.include "../../mk/oss.buildlink3.mk"
+.if ${OSS_TYPE} != "none"
+PLIST.oss= yes
+CONFIGURE_ARGS+= CONFIG_OSS=y
+.else
+CONFIGURE_ARGS+= CONFIG_OSS=n
+.endif
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "SunOS" || exists(/usr/include/sys/audioio.h)
+CONFIGURE_ARGS+= CONFIG_SUN=y
+PLIST.sunaudio= yes
+.else
+CONFIGURE_ARGS+= CONFIG_SUN=n
+.endif
+
+.include "../cmus/options.mk"
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"