blob: d92ad47b9fdf5a58e72f7b341796b5d7a9b81f43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Created by: clsung
# $FreeBSD$
PORTNAME= mod_musicindex
PORTVERSION= 1.4.1
PORTREVISION= 4
CATEGORIES= www audio
MASTER_SITES= http://hacks.slashdirt.org/musicindex/
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
MAINTAINER= apache@FreeBSD.org
COMMENT= Apache module that allows downloading and streaming of audio
LICENSE= LGPL21
USES= libarchive
USE_APACHE= 22
OPTIONS_DEFINE= NLS FLAC MP3 MP4 VORBIS LIBARCHIVE FILECACHE MYSQLCACHE
OPTIONS_DEFAULT=NLS MP3 LIBARCHIVE FILECACHE
LIBARCHIVE_DESC= Archive downloading support
FILECACHE_DESC= Flat file caching support
MYSQLCACHE_DESC= MySQL caching support
OPTIONS_SUB= yes
FILECACHE_CONFIGURE_ENABLE= filecache
FLAC_CONFIGURE_ENABLE= flac
FLAC_LIB_DEPENDS= libFLAC.so:${PORTSDIR}/audio/flac
LIBARCHIVE_CONFIGURE_ENABLE= archive
MP3_CONFIGURE_ENABLE= mp3
MP3_LIB_DEPENDS= libid3tag.so:${PORTSDIR}/audio/libid3tag \
libmad.so:${PORTSDIR}/audio/libmad
MP4_CONFIGURE_ENABLE= mp4
MP4_LIB_DEPENDS= libmp4v2.so:${PORTSDIR}/multimedia/mp4v2
MYSQLCACHE_CONFIGURE_ENABLE= mysqlcache
MYSQLCACHE_USE= MYSQL=yes
NLS_CFLAGS= -lintl
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
VORBIS_CONFIGURE_ENABLE= vorbis
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
.include <bsd.port.options.mk>
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-apxs=${APXS} \
--disable-libFLACtest --disable-vorbistest
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
PORTDOCS= README
post-patch:
.if ${PORT_OPTIONS:MNLS}
${RM} ${WRKSRC}/po/*.gmo
.endif
post-build:
.if ${PORT_OPTIONS:MNLS}
@(${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC}/po update-gmo)
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${MODULENAME}.so
.include <bsd.port.mk>
|