View | Details | Raw Unified | Return to bug 152057
Collapse All | Expand All

(-)Makefile (-11 / +34 lines)
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:
(-)distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (mod_musicindex-1.3.3.tar.gz) = 6488db2d6e9dd814fb9d47c7b390c777
1
SHA256 (mod_musicindex-1.3.5.tar.gz) = e9178f8dd6481f2614a17ba1cdf55ec55636cd0802866d236b4230ee801d67ca
2
SHA256 (mod_musicindex-1.3.3.tar.gz) = ae8cb26c946fe2175d09ed89099ddf6f10547ae81e4842cea4627d24d93d1b82
2
SIZE (mod_musicindex-1.3.5.tar.gz) = 488090
3
SIZE (mod_musicindex-1.3.3.tar.gz) = 482313
(-)pkg-plist (-7 / +6 lines)
Lines 1-20 Link Here
1
%%APACHEMODDIR%%/%%AP_MODULE%%
1
%%APACHEMODDIR%%/%%AP_MODULE%%
2
@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %D/%F
2
@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %D/%F
3
@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F
3
@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F
4
%%DATADIR%%/musicindex.css
5
%%DATADIR%%/directory.png
4
%%DATADIR%%/directory.png
6
%%DATADIR%%/fetch.png
5
%%DATADIR%%/fetch.png
6
%%DATADIR%%/fetchok.png
7
%%DATADIR%%/general.png
7
%%DATADIR%%/general.png
8
%%DATADIR%%/musicindex.css
8
%%DATADIR%%/right_arrow.gif
9
%%DATADIR%%/right_arrow.gif
9
%%DATADIR%%/sound.png
10
%%DATADIR%%/shuffle.png
11
%%DATADIR%%/rss.png
10
%%DATADIR%%/rss.png
12
%%DATADIR%%/fetchok.png
11
%%DATADIR%%/shuffle.png
12
%%DATADIR%%/sound.png
13
%%DATADIR%%/soundok.png
13
%%DATADIR%%/soundok.png
14
%%NLS%%share/locale/de/LC_MESSAGES/mod_musicindex.mo
14
%%NLS%%share/locale/fr/LC_MESSAGES/mod_musicindex.mo
15
%%NLS%%share/locale/fr/LC_MESSAGES/mod_musicindex.mo
15
%%NLS%%share/locale/it/LC_MESSAGES/mod_musicindex.mo
16
%%NLS%%share/locale/it/LC_MESSAGES/mod_musicindex.mo
16
%%NLS%%share/locale/nl/LC_MESSAGES/mod_musicindex.mo
17
%%NLS%%share/locale/nl/LC_MESSAGES/mod_musicindex.mo
17
%%NLS%%share/locale/pt-br/LC_MESSAGES/mod_musicindex.mo
18
%%NLS%%share/locale/pt_BR/LC_MESSAGES/mod_musicindex.mo
18
%%NLS%%@dirrm share/locale/pt-br/LC_MESSAGES
19
%%NLS%%@dirrm share/locale/pt-br
20
@dirrm %%DATADIR%%
19
@dirrm %%DATADIR%%

Return to bug 152057