2006-08-03 20:10:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2006/08/04 00:10:42 espie Exp $
|
2003-05-19 21:57:18 -04:00
|
|
|
|
|
|
|
COMMENT= "turns Apache into an MP3 or Ogg streaming server"
|
|
|
|
|
|
|
|
# This port currently only works with archs supporting dynamic loading
|
|
|
|
# and has Apache that supports DSO's.
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
|
|
|
|
|
|
|
DISTNAME= mod_mp3-0.39
|
2006-07-20 00:43:27 -04:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2003-05-19 21:57:18 -04:00
|
|
|
CATEGORIES= www audio
|
2006-07-20 00:43:27 -04:00
|
|
|
MASTER_SITES= http://download.tangent.org/ \
|
2003-05-19 21:57:18 -04:00
|
|
|
ftp://ftp.tangent.org/pub/apache/
|
|
|
|
|
2006-07-20 00:43:27 -04:00
|
|
|
HOMEPAGE= http://tangent.org/
|
2003-05-19 21:57:18 -04:00
|
|
|
|
|
|
|
# Apache
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
FLAVORS= mysql postgresql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= --with-apxs=/usr/sbin/apxs \
|
|
|
|
--with-perl=/usr/bin/perl
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
EXAMPLESRC= ${WRKSRC}/support
|
|
|
|
CONF= ${EXAMPLESRC}/mp3.conf
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql} && ${FLAVOR:L:Mpostgresql}
|
|
|
|
ERRORS+= "Fatal: mutually exclusive flavors: ${FLAVORS}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2006-08-03 20:10:42 -04:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
|
2003-05-19 21:57:18 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
|
|
|
|
CONF= ${EXAMPLESRC}/mp3_with_mysql.conf
|
|
|
|
EXAMPLES+= ${EXAMPLESRC}/mysql_schema
|
2004-12-11 08:29:20 -05:00
|
|
|
WANTLIB= m
|
2003-05-19 21:57:18 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2006-08-03 20:10:42 -04:00
|
|
|
LIB_DEPENDS+= pq.>=2::databases/postgresql
|
2003-05-19 21:57:18 -04:00
|
|
|
CONFIGURE_ARGS+= --with-postgres="${LOCALBASE}"
|
|
|
|
CONF= ${FILESDIR}/mp3_with_postgresql.conf
|
|
|
|
EXAMPLES+= ${EXAMPLESRC}/pgsql_schema
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@sed 's,!!PREFIX!!,${PREFIX},' \
|
|
|
|
< ${FILESDIR}/mod_mp3-enable \
|
|
|
|
> ${WRKBUILD}/mod_mp3-enable
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/src/mod_mp3.so ${PREFIX}/lib
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/mod_mp3-enable ${PREFIX}/sbin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_mp3
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/faq.html ${PREFIX}/share/doc/mod_mp3
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mod_mp3
|
|
|
|
${INSTALL_DATA} ${CONF} ${PREFIX}/share/examples/mod_mp3/mp3.conf
|
|
|
|
.if defined(EXAMPLES)
|
|
|
|
${INSTALL_DATA} ${EXAMPLES} ${PREFIX}/share/examples/mod_mp3
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|