|
Lines 6-12
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= cmus |
8 |
PORTNAME= cmus |
| 9 |
PORTVERSION= 2.0.2 |
9 |
PORTVERSION= 2.0.3 |
| 10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
| 11 |
MASTER_SITES= http://onion.dynserv.net/~timo/files/ \ |
11 |
MASTER_SITES= http://onion.dynserv.net/~timo/files/ \ |
| 12 |
http://mirror.greaterscope.net/cmus/ |
12 |
http://mirror.greaterscope.net/cmus/ |
|
Lines 14-121
Link Here
|
| 14 |
MAINTAINER= simon@olofsson.de |
14 |
MAINTAINER= simon@olofsson.de |
| 15 |
COMMENT= Console-based music player with really cool features |
15 |
COMMENT= Console-based music player with really cool features |
| 16 |
|
16 |
|
| 17 |
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash |
|
|
| 18 |
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac \ |
| 19 |
mad:${PORTSDIR}/audio/libmad |
| 20 |
|
| 21 |
USE_BZIP2= yes |
17 |
USE_BZIP2= yes |
| 22 |
USE_GMAKE= yes |
18 |
USE_GMAKE= yes |
| 23 |
USE_ICONV= yes |
19 |
USE_ICONV= yes |
| 24 |
HAS_CONFIGURE= yes |
20 |
HAS_CONFIGURE= yes |
| 25 |
CONFIGURE_ARGS+=--prefix=${PREFIX} |
21 |
CONFIGURE_ARGS+=prefix=${TARGETDIR} mandir=${TARGETDIR}/man |
| 26 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ |
22 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ |
| 27 |
LDFLAGS="-L${LOCALBASE}/lib" |
23 |
LDFLAGS="-L${LOCALBASE}/lib" |
| 28 |
|
24 |
|
| 29 |
.include <bsd.port.pre.mk> |
25 |
OPTIONS= FLAC "FLAC (Free Lossless Audio Codec) support" Off \ |
| 30 |
|
26 |
MAD "MPEG Audio Decoder (libmad) support" On \ |
| 31 |
.if exists(${LOCALBASE}/lib/libvorbisfile.so) |
27 |
MODPLUG "libmodplug (mod, x3m, ...) support" Off \ |
| 32 |
WITH_VORBIS= yes |
28 |
MUSEPACK "libmpcdec (Musepack .mpc) support" Off \ |
| 33 |
.endif |
29 |
VORBIS "Ogg/Vorbis support" On \ |
| 34 |
.if exists(${LOCALBASE}/lib/libmodplug.so) |
30 |
LIBAO "Libao cross-platform audio library" On \ |
| 35 |
WITH_MODPLUG= yes |
31 |
ARTS "ARTS support" Off \ |
| 36 |
.endif |
32 |
TREMOR "Use Tremor as Ogg/Vorbis input plugin" Off |
| 37 |
.if exists(${LOCALBASE}/lib/libvorbisidec.so) |
|
|
| 38 |
WITH_TREMOR= yes |
| 39 |
.endif |
| 40 |
.if exists(${LOCALBASE}/lib/libmpcdec.so) |
| 41 |
WITH_MUSEPACK= yes |
| 42 |
.endif |
| 43 |
.if exists(${LOCALBASE}/lib/libao.so) |
| 44 |
WITH_LIBAO= yes |
| 45 |
.endif |
| 46 |
.if exists(${LOCALBASE}/lib/libartsc.so) |
| 47 |
WITH_ARTS= yes |
| 48 |
.endif |
| 49 |
|
33 |
|
| 50 |
PREMSG= \n |
34 |
.include <bsd.port.pre.mk> |
| 51 |
|
35 |
|
| 52 |
.if defined(WITH_VORBIS) |
36 |
.if defined(WITH_FLAC) |
| 53 |
LIB_DEPENDS+= vorbisfile:${PORTSDIR}/audio/libvorbis |
37 |
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac |
| 54 |
PLIST_SUB+= VORBIS="" |
38 |
CONFIGURE_ARGS+=CONFIG_FLAC=y |
|
|
39 |
PLIST_SUB+= FLAC="" |
| 40 |
.else |
| 41 |
CONFIGURE_ARGS+=CONFIG_FLAC=n |
| 42 |
PLIST_SUB+= FLAC="@comment " |
| 43 |
.endif |
| 44 |
|
| 45 |
.if defined(WITH_MAD) |
| 46 |
LIB_DEPENDS+= mad:${PORTSDIR}/audio/libmad |
| 47 |
CONFIGURE_ARGS+=CONFIG_MAD=y |
| 48 |
PLIST_SUB+= MAD="" |
| 55 |
.else |
49 |
.else |
| 56 |
PLIST_SUB+= VORBIS="@comment " |
50 |
CONFIGURE_ARGS+=CONFIG_MAD=n |
| 57 |
PREMSG+= Define WITH_VORBIS=yes to enable OGG/Vorbis support.\n |
51 |
PLIST_SUB+= MAD="@comment " |
| 58 |
.endif |
52 |
.endif |
| 59 |
|
53 |
|
| 60 |
.if defined(WITH_MODPLUG) |
54 |
.if defined(WITH_MODPLUG) |
| 61 |
LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug |
55 |
LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug |
|
|
56 |
CONFIGURE_ARGS+=CONFIG_MODPLUG=y |
| 62 |
PLIST_SUB+= MODPLUG="" |
57 |
PLIST_SUB+= MODPLUG="" |
| 63 |
.else |
58 |
.else |
|
|
59 |
CONFIGURE_ARGS+=CONFIG_MODPLUG=n |
| 64 |
PLIST_SUB+= MODPLUG="@comment " |
60 |
PLIST_SUB+= MODPLUG="@comment " |
| 65 |
PREMSG+= Define WITH_MODPLUG=yes to enable module music files.\n |
|
|
| 66 |
.endif |
| 67 |
|
| 68 |
.if defined(WITH_TREMOR) |
| 69 |
LIB_DEPENDS+= vorbisidec:${PORTSDIR}/audio/libtremor |
| 70 |
CONFIGURE_ARGS+=--with-tremor |
| 71 |
.else |
| 72 |
PREMSG+= Define WITH_TREMOR=yes to enable libtremor support.\n |
| 73 |
.endif |
61 |
.endif |
| 74 |
|
62 |
|
| 75 |
.if defined(WITH_MUSEPACK) |
63 |
.if defined(WITH_MUSEPACK) |
| 76 |
LIB_DEPENDS+= mpcdec:${PORTSDIR}/audio/libmpcdec |
64 |
LIB_DEPENDS+= mpcdec:${PORTSDIR}/audio/libmpcdec |
|
|
65 |
CONFIGURE_ARGS+=CONFIG_MPC=y |
| 77 |
PLIST_SUB+= MPC="" |
66 |
PLIST_SUB+= MPC="" |
| 78 |
.else |
67 |
.else |
|
|
68 |
CONFIGURE_ARGS+=CONFIG_MPC=n |
| 79 |
PLIST_SUB+= MPC="@comment " |
69 |
PLIST_SUB+= MPC="@comment " |
| 80 |
PREMSG+= Define WITH_MUSEPACK=yes to enable musepack support.\n |
70 |
.endif |
|
|
71 |
|
| 72 |
.if defined(WITH_VORBIS) |
| 73 |
LIB_DEPENDS+= vorbisfile:${PORTSDIR}/audio/libvorbis |
| 74 |
CONFIGURE_ARGS+=CONFIG_VORBIS=y |
| 75 |
PLIST_SUB+= VORBIS="" |
| 76 |
.else |
| 77 |
CONFIGURE_ARGS+=CONFIG_VORBIS=n |
| 78 |
PLIST_SUB+= VORBIS="@comment " |
| 81 |
.endif |
79 |
.endif |
| 82 |
|
80 |
|
| 83 |
.if defined(WITH_LIBAO) |
81 |
.if defined(WITH_LIBAO) |
| 84 |
LIB_DEPENDS+= ao:${PORTSDIR}/audio/libao |
82 |
LIB_DEPENDS+= ao:${PORTSDIR}/audio/libao |
|
|
83 |
CONFIGURE_ARGS+=CONFIG_AO=y |
| 85 |
PLIST_SUB+= AO="" |
84 |
PLIST_SUB+= AO="" |
| 86 |
.else |
85 |
.else |
|
|
86 |
CONFIGURE_ARGS+=CONFIG_AO=n |
| 87 |
PLIST_SUB+= AO="@comment " |
87 |
PLIST_SUB+= AO="@comment " |
| 88 |
PREMSG+= Define WITH_LIBAO=yes to enable the libao output library.\n |
|
|
| 89 |
.endif |
88 |
.endif |
| 90 |
|
89 |
|
| 91 |
.if defined(WITH_ARTS) |
90 |
.if defined(WITH_ARTS) |
| 92 |
LIB_DEPENDS+= artsc:${PORTSDIR}/audio/arts |
91 |
LIB_DEPENDS+= artsc:${PORTSDIR}/audio/arts |
|
|
92 |
CONFIGURE_ARGS+=CONFIG_ARTS=y |
| 93 |
PLIST_SUB+= ARTS="" |
93 |
PLIST_SUB+= ARTS="" |
| 94 |
.else |
94 |
.else |
|
|
95 |
CONFIGURE_ARGS+=CONFIG_ARTS=n |
| 95 |
PLIST_SUB+= ARTS="@comment " |
96 |
PLIST_SUB+= ARTS="@comment " |
| 96 |
PREMSG+= Define WITH_ARTS=yes to enable arts output support.\n |
|
|
| 97 |
.endif |
97 |
.endif |
| 98 |
|
98 |
|
| 99 |
MAN1= cmus.1 cmus-remote.1 |
99 |
.if defined(WITH_TREMOR) |
|
|
100 |
LIB_DEPENDS+= vorbisidec:${PORTSDIR}/audio/libtremor |
| 101 |
CONFIGURE_ARGS+=CONFIG_TREMOR=y |
| 102 |
.endif |
| 100 |
|
103 |
|
| 101 |
pre-everything:: |
104 |
MAN1= cmus.1 cmus-remote.1 |
| 102 |
@${PRINTF} "${PREMSG}" |
|
|
| 103 |
@${ECHO_CMD} |
| 104 |
|
105 |
|
| 105 |
post-extract: |
106 |
post-extract: |
| 106 |
@${REINPLACE_CMD} -e 's, -Wno-pointer-sign,,' ${WRKSRC}/configure |
107 |
@${REINPLACE_CMD} -e 's,-lncursesw,-lncurses,g' ${WRKSRC}/configure |
| 107 |
@${REINPLACE_CMD} -e 's,$$(mandir)/man1,${PREFIX}/man/man1,' \ |
|
|
| 108 |
${WRKSRC}/Doc/Makefile |
| 109 |
|
| 110 |
post-patch: |
| 111 |
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \ |
| 112 |
"s|/bin/bash|${LOCALBASE}/bin/bash|; \ |
| 113 |
s|-lncursesw|-lncurses|g" |
| 114 |
|
108 |
|
| 115 |
post-install: |
109 |
post-install: |
| 116 |
.if !defined(NOPORTDOCS) |
110 |
.if !defined(NOPORTDOCS) |
| 117 |
${MKDIR} ${DOCSDIR}/examples |
111 |
${MKDIR} ${EXAMPLESDIR} |
| 118 |
${INSTALL} ${WRKSRC}/cmus-status-display ${DOCSDIR}/examples |
112 |
${INSTALL} ${WRKSRC}/cmus-status-display ${EXAMPLESDIR} |
| 119 |
.endif |
113 |
.endif |
| 120 |
|
114 |
|
| 121 |
.include <bsd.port.post.mk> |
115 |
.include <bsd.port.post.mk> |