summaryrefslogtreecommitdiff
path: root/audio/cmus
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-08-21 15:17:47 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-08-21 15:17:47 +0000
commite2c433d4b1de5dc2ed6b4efebc93936c0a013d08 (patch)
tree7e739bb4d27eb8bb62ec6741c7f0b5419b6ade55 /audio/cmus
parent- Update MASTER_SITES (diff)
- EXAMPLESDIR is not controlled by NOPORTDOCS
- Turn off LIBAO by default - Mark it as BROKEN on 4.x: does not compile (no towupper(3)) - Bump PORTREVISION PR: ports/102187 Submitted by: Simon Olofsson <simon@olofsson.de> (maintainer)
Notes
Notes: svn path=/head/; revision=171112
Diffstat (limited to 'audio/cmus')
-rw-r--r--audio/cmus/Makefile21
-rw-r--r--audio/cmus/pkg-plist4
2 files changed, 13 insertions, 12 deletions
diff --git a/audio/cmus/Makefile b/audio/cmus/Makefile
index 9fe829258198..3f715cffae51 100644
--- a/audio/cmus/Makefile
+++ b/audio/cmus/Makefile
@@ -7,6 +7,7 @@
PORTNAME= cmus
PORTVERSION= 2.0.3
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://onion.dynserv.net/~timo/files/ \
http://mirror.greaterscope.net/cmus/
@@ -15,6 +16,7 @@ MAINTAINER= simon@olofsson.de
COMMENT= Console-based music player with really cool features
USE_BZIP2= yes
+USE_GCC= 3.2+
USE_GMAKE= yes
USE_ICONV= yes
HAS_CONFIGURE= yes
@@ -27,12 +29,16 @@ OPTIONS= FLAC "FLAC (Free Lossless Audio Codec) support" Off \
MODPLUG "libmodplug (mod, x3m, ...) support" Off \
MUSEPACK "libmpcdec (Musepack .mpc) support" Off \
VORBIS "Ogg/Vorbis support" On \
- LIBAO "Libao cross-platform audio library" On \
- ARTS "ARTS support" Off \
- TREMOR "Use Tremor as Ogg/Vorbis input plugin" Off
+ TREMOR "Use Tremor as Ogg/Vorbis input plugin" Off \
+ LIBAO "Libao cross-platform audio library" Off \
+ ARTS "ARTS support" Off
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+BROKEN= does not compile on FreeBSD 4.X
+.endif
+
.if defined(WITH_FLAC)
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
CONFIGURE_ARGS+=CONFIG_FLAC=y
@@ -78,7 +84,7 @@ CONFIGURE_ARGS+=CONFIG_VORBIS=n
PLIST_SUB+= VORBIS="@comment "
.endif
-.if !defined(WITHOUT_LIBAO)
+.if defined(WITH_LIBAO)
LIB_DEPENDS+= ao:${PORTSDIR}/audio/libao
CONFIGURE_ARGS+=CONFIG_AO=y
PLIST_SUB+= AO=""
@@ -105,11 +111,6 @@ MAN1= cmus.1 cmus-remote.1
post-extract:
@${REINPLACE_CMD} -e 's,-lncursesw,-lncurses,g' ${WRKSRC}/configure
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL} ${WRKSRC}/cmus-status-display ${EXAMPLESDIR}
-.endif
+ @${REINPLACE_CMD} -e 's,doc/cmus/examples,examples/cmus,g' ${WRKSRC}/Makefile
.include <bsd.port.post.mk>
diff --git a/audio/cmus/pkg-plist b/audio/cmus/pkg-plist
index d6b6d97528a8..ecd288905205 100644
--- a/audio/cmus/pkg-plist
+++ b/audio/cmus/pkg-plist
@@ -15,8 +15,8 @@ lib/cmus/op/oss.so
%%DATADIR%%/green-mono-88.theme
%%DATADIR%%/rc
%%DATADIR%%/xterm-white.theme
-%%PORTDOCS%%%%EXAMPLESDIR%%/cmus-status-display
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%EXAMPLESDIR%%/cmus-status-display
+@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%
@dirrm lib/cmus/op
@dirrm lib/cmus/ip