Lines 6-27
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mod_musicindex |
8 |
PORTNAME= mod_musicindex |
9 |
PORTVERSION= 1.3.3 |
9 |
PORTVERSION= 1.3.5 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= www audio |
10 |
CATEGORIES= www audio |
12 |
MASTER_SITES= http://www.parisc-linux.org/~varenet/musicindex/oldsrc/ |
11 |
MASTER_SITES= http://www.parisc-linux.org/~varenet/musicindex/ |
13 |
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} |
12 |
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} |
14 |
|
13 |
|
15 |
MAINTAINER= apache@FreeBSD.org |
14 |
MAINTAINER= apache@FreeBSD.org |
16 |
COMMENT= Apache module that allows downloading and streaming of audio |
15 |
COMMENT= Apache module that allows downloading and streaming of audio |
17 |
|
16 |
|
|
|
17 |
LICENSE= LGPL21 |
18 |
|
18 |
OPTIONS= NLS "Native language support" on \ |
19 |
OPTIONS= NLS "Native language support" on \ |
19 |
FLAC "FLAC support" off \ |
20 |
FLAC "FLAC support" off \ |
20 |
MP3 "MP3 support" on \ |
21 |
MP3 "MP3 support" on \ |
21 |
MP4 "MP4 support" off \ |
22 |
MP4 "MP4 support" off \ |
22 |
VORBIS "Ogg/Vorbis support" off \ |
23 |
VORBIS "Ogg/Vorbis support" off \ |
23 |
LIBARCHIVE "Archive downloading support" on \ |
24 |
LIBARCHIVE "Archive downloading support" on \ |
24 |
FILECACHE "Caching support" on |
25 |
FILECACHE "Flat file caching support" on \ |
|
|
26 |
MYSQLCACHE "MySQL caching support" off |
25 |
|
27 |
|
26 |
MAKE_JOBS_SAFE= yes |
28 |
MAKE_JOBS_SAFE= yes |
27 |
|
29 |
|
Lines 29-35
Link Here
|
29 |
|
31 |
|
30 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
31 |
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib |
33 |
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib |
32 |
CONFIGURE_ARGS+= --with-apxs=${APXS} |
34 |
CONFIGURE_ARGS= --with-apxs=${APXS} \ |
|
|
35 |
--disable-libFLACtest --disable-vorbistest |
33 |
|
36 |
|
34 |
SUB_FILES= pkg-message |
37 |
SUB_FILES= pkg-message |
35 |
SUB_LIST= PORTNAME=${PORTNAME} |
38 |
SUB_LIST= PORTNAME=${PORTNAME} |
Lines 39-45
Link Here
|
39 |
.include <bsd.port.options.mk> |
42 |
.include <bsd.port.options.mk> |
40 |
|
43 |
|
41 |
.if defined(WITHOUT_NLS) |
44 |
.if defined(WITHOUT_NLS) |
42 |
CONFIGURE_ARGS+= --disable-nls |
45 |
CONFIGURE_ARGS+=--disable-nls |
43 |
PLIST_SUB+= NLS="@comment " |
46 |
PLIST_SUB+= NLS="@comment " |
44 |
.else |
47 |
.else |
45 |
USE_GETTEXT= yes |
48 |
USE_GETTEXT= yes |
Lines 48-54
Link Here
|
48 |
.endif |
51 |
.endif |
49 |
|
52 |
|
50 |
.if defined(WITHOUT_FLAC) |
53 |
.if defined(WITHOUT_FLAC) |
51 |
CONFIGURE_ARGS+= --disable-flac |
54 |
CONFIGURE_ARGS+=--disable-flac |
52 |
.else |
55 |
.else |
53 |
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac |
56 |
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac |
54 |
.endif |
57 |
.endif |
Lines 61-83
Link Here
|
61 |
.endif |
64 |
.endif |
62 |
|
65 |
|
63 |
.if defined(WITHOUT_MP4) |
66 |
.if defined(WITHOUT_MP4) |
64 |
CONFIGURE_ARGS+= --disable-mp4 |
67 |
CONFIGURE_ARGS+=--disable-mp4 |
65 |
.else |
68 |
.else |
66 |
LIB_DEPENDS+= mp4v2:${PORTSDIR}/multimedia/mp4v2 |
69 |
LIB_DEPENDS+= mp4v2:${PORTSDIR}/multimedia/mp4v2 |
67 |
.endif |
70 |
.endif |
68 |
|
71 |
|
69 |
.if defined(WITHOUT_VORBIS) |
72 |
.if defined(WITHOUT_VORBIS) |
70 |
CONFIGURE_ARGS+= --disable-vorbis |
73 |
CONFIGURE_ARGS+=--disable-vorbis |
71 |
.else |
74 |
.else |
72 |
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis |
75 |
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis |
73 |
.endif |
76 |
.endif |
74 |
|
77 |
|
75 |
.if defined(WITHOUT_LIBARCHIVE) |
78 |
.if defined(WITHOUT_LIBARCHIVE) |
76 |
CONFIGURE_ARGS+= --disable-archive |
79 |
CONFIGURE_ARGS+=--disable-archive |
77 |
.endif |
80 |
.endif |
78 |
|
81 |
|
79 |
.if defined(WITHOUT_FILECACHE) |
82 |
.if defined(WITHOUT_FILECACHE) |
80 |
CONFIGURE_ARGS+= --disable-filecache |
83 |
CONFIGURE_ARGS+=--disable-filecache |
|
|
84 |
.endif |
85 |
|
86 |
.if defined(WITHOUT_MYSQLCACHE) |
87 |
CONFIGURE_ARGS+=--disable-mysqlcache |
88 |
.else |
89 |
USE_MYSQL= yes |
90 |
.endif |
91 |
|
92 |
post-patch: |
93 |
@${REINPLACE_CMD} -e '/@BUILD_FOR_APACHE2/ s| -i -n musicindex| -a &|' \ |
94 |
${WRKSRC}/src/Makefile.in |
95 |
.if !defined(WITHOUT_NLS) |
96 |
${RM} ${WRKSRC}/po/*.gmo |
97 |
${MV} ${WRKSRC}/po/pt-br.po ${WRKSRC}/po/pt_BR.po |
98 |
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|pt-br|pt_BR|g' ${WRKSRC}/po/LINGUAS ${WRKSRC}/po/pt_BR.po |
99 |
.endif |
100 |
|
101 |
post-build: |
102 |
.if !defined(WITHOUT_NLS) |
103 |
cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${MAKE} update-gmo |
81 |
.endif |
104 |
.endif |
82 |
|
105 |
|
83 |
post-install: |
106 |
post-install: |