- 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)
This commit is contained in:
Rong-En Fan 2006-08-21 15:17:47 +00:00
parent cc1007f427
commit e2c433d4b1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=171112
2 changed files with 13 additions and 12 deletions

View File

@ -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>

View File

@ -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