blob: 1278efd6b97a29ea53be6bc34b12e95410d82e00 (
plain) (
blame)
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
|
# New ports collection makefile for: mod_musicindex
# Date created: Nov 1 2003
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= mod_musicindex
PORTVERSION= 0.9.0
PORTREVISION= 2
CATEGORIES= www audio
MASTER_SITES= http://www.esiee.fr/~puffin/musicindex/
DISTNAME= libapache-mod-musicindex_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Apache module in C implements Perl module Apache::MP3
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
id3tag.2:${PORTSDIR}/audio/libid3tag \
mad.2:${PORTSDIR}/audio/libmad
APXS?= ${LOCALBASE}/sbin/apxs
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
MAKE_ENV+= APXS=${APXS} BUILDDIR=${WRKSRC}
PORTDOCS= directory.png musicindex.css fetch.png \
right_arrow.gif general.png sound.png
.if defined (WITH_APACHE2)
MODULE_EXT= la
MAKEFILE= Makefile.apache2
PLIST_SUB+= MOD_DIR=libexec/apache2
APACHE_PORT?= ${PORTSDIR}/www/apache2
MAKE_TARGET= all
.else
MODULE_EXT= so
PLIST_SUB+= MOD_DIR=libexec/apache
APACHE_PORT?= ${PORTSDIR}/www/apache13
.endif
post-patch:
@${CP} ${WRKSRC}/modules.mk.apache2 ${WRKSRC}/modules.mk
@${TOUCH} ${WRKSRC}/.deps
do-install:
${APXS} -i -n musicindex -A ${WRKSRC}/mod_musicindex.${MODULE_EXT}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/musicindex/${f} ${DOCSDIR}
.endfor
.endif
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|