diff options
author | ahoka <ahoka@pkgsrc.org> | 2009-06-07 12:31:43 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2009-06-07 12:31:43 +0000 |
commit | 170fab966c0805b84cab159c4de4e080f3e579c2 (patch) | |
tree | 9f43101bc422fd963e2fd8be069de927ee5b5b61 /audio/cmus | |
parent | c98bea5523281db10125ab05fba5c12a4db51d23 (diff) | |
download | pkgsrc-170fab966c0805b84cab159c4de4e080f3e579c2.tar.gz |
I need some parts reusable for cmus-unofficial.
Diffstat (limited to 'audio/cmus')
-rw-r--r-- | audio/cmus/Makefile | 36 | ||||
-rw-r--r-- | audio/cmus/Makefile.common | 34 |
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" |