blob: e7d5b53c5c81c45fc004e9a4d3ba21d3f4d77315 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# New ports collection makefile for: mod_musicindex
# Date created: Nov 1 2003
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= mod_musicindex
PORTVERSION= 1.2.2
PORTREVISION= 1
CATEGORIES= www audio
MASTER_SITES= http://www.parisc-linux.org/~varenet/musicindex/ \
http://depot.fsck.ch/mirror/distfiles/
MAINTAINER= ports@fsck.ch
COMMENT= Apache module that allows downloading and streaming of audio
OPTIONS= NLS "Native language support" on \
FLAC "FLAC support" off \
MP3 "MP3 support" on \
MP4 "MP4 support" off \
VORBIS "Ogg/Vorbis support" off \
LIBARCHIVE "Archive downloading support" on \
FILECACHE "Caching support" on
USE_APACHE= 1.3+
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ARGS+= --with-apxs=${APXS}
PORTDOCS= README
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
CFLAGS+= -lintl
PLIST_SUB+= NLS=""
.endif
.if defined(WITHOUT_FLAC)
CONFIGURE_ARGS+= --disable-flac
.else
LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac
.endif
.if defined(WITHOUT_MP3)
CONFIGURE_ARGS+=--disable-mp3
.else
LIB_DEPENDS+= id3tag:${PORTSDIR}/audio/libid3tag \
mad:${PORTSDIR}/audio/libmad
.endif
.if defined(WITHOUT_MP4)
CONFIGURE_ARGS+= --disable-mp4
.else
LIB_DEPENDS+= mp4v2:${PORTSDIR}/multimedia/mpeg4ip-libmp4v2
.endif
.if defined(WITHOUT_VORBIS)
CONFIGURE_ARGS+= --disable-vorbis
.else
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis
.endif
.if defined(WITHOUT_LIBARCHIVE)
CONFIGURE_ARGS+= --disable-archive
.endif
.if defined(WITHOUT_FILECACHE)
CONFIGURE_ARGS+= --disable-filecache
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${ECHO_MSG} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
.include <bsd.port.post.mk>
|