aboutsummaryrefslogtreecommitdiff
path: root/www/mod_musicindex/Makefile
blob: f18d71cabcc8a758c43eb17523297293d6bc9a20 (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
# New ports collection makefile for:	mod_musicindex
# Date created:				Nov 1 2003
# Whom:					clsung
#
# $FreeBSD$
#

PORTNAME=	mod_musicindex
PORTVERSION=	0.99.7
PORTREVISION=	3
CATEGORIES=	www audio
# Master site doesn't have a current version'd tarball...
#MASTER_SITES=	http://www.parisc-linux.org/~varenet/musicindex/
MASTER_SITES=	http://depot.fsck.ch/mirror/distfiles/
DISTNAME=	libapache-mod-musicindex_${PORTVERSION}

MAINTAINER=	ports@fsck.ch
COMMENT=	Apache module in C that implements the perl module Apache::MP3

LIB_DEPENDS=	vorbis.3:${PORTSDIR}/audio/libvorbis \
		id3tag.0:${PORTSDIR}/audio/libid3tag \
		mad.2:${PORTSDIR}/audio/libmad \
		FLAC.7:${PORTSDIR}/audio/flac

CPPFLAGS=	-DHAS_MP3 -DHAS_OGG -DHAS_FLAC
CFLAGS+=	-I${LOCALBASE}/include

#WANT_APACHE=	YES
USE_GMAKE=	yes
WRKSRC=		${WRKDIR}/libapache-mod-musicindex-${PORTVERSION}
SUB_FILES=	pkg-message

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/apache20/Makefile.modules.3rd"

MAKE_ENV+=	APXS=${APXS} CPPFLAGS="${CPPFLAGS}" LDFLAGS="-L${LOCALBASE}/lib"

.if "${AP_VER}"=="2"
MAKE_ENV+=	APACHE_VERSION=2 APRCONFIG=${LOCALBASE}/lib/apache2/apr-config
.if "ARCH" = "amd64"
CFLAGS+=	-fPIC
.endif
.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>