2009-06-02 20:48:51 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2009/06/03 00:48:51 pyr Exp $
|
2003-05-19 21:57:18 -04:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= turns Apache into an MP3 or Ogg streaming server
|
2003-05-19 21:57:18 -04:00
|
|
|
|
2008-01-30 15:41:41 -05:00
|
|
|
DISTNAME= mod_mp3-0.40
|
2009-06-02 20:48:51 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-05-19 21:57:18 -04:00
|
|
|
CATEGORIES= www audio
|
|
|
|
|
2006-07-20 00:43:27 -04:00
|
|
|
HOMEPAGE= http://tangent.org/
|
2008-01-30 15:41:41 -05:00
|
|
|
MASTER_SITES= http://download.tangent.org/
|
2003-05-19 21:57:18 -04:00
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODULES+= apache-module
|
|
|
|
|
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?=
|
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODAPACHE_NAME= mp3
|
|
|
|
MODAPACHE_LOCATION= ${WRKBUILD}/src
|
|
|
|
|
2003-05-19 21:57:18 -04:00
|
|
|
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}
|
2007-09-15 19:36:43 -04:00
|
|
|
ERRORS+= "Fatal: mutually exclusive flavors: ${FLAVORS}"
|
2003-05-19 21:57:18 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2006-08-03 20:10:42 -04:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
|
2008-01-30 15:41:41 -05:00
|
|
|
CONFIGURE_ARGS+=--with-mysql="${LOCALBASE}/bin"
|
|
|
|
CONF= ${EXAMPLESRC}/mp3_with_mysql.conf
|
2003-05-19 21:57:18 -04:00
|
|
|
EXAMPLES+= ${EXAMPLESRC}/mysql_schema
|
2008-01-30 15:41:41 -05:00
|
|
|
WANTLIB+= crypto m ssl z
|
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
|
2008-01-30 15:41:41 -05:00
|
|
|
CONFIGURE_ARGS+=--with-postgres="${LOCALBASE}"
|
|
|
|
CONF= ${FILESDIR}/mp3_with_postgresql.conf
|
2003-05-19 21:57:18 -04:00
|
|
|
EXAMPLES+= ${EXAMPLESRC}/pgsql_schema
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
2007-06-26 15:19:45 -04:00
|
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
2003-05-19 21:57:18 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${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
|
2007-06-26 15:19:45 -04:00
|
|
|
${MODAPACHE_INSTALL}
|
2003-05-19 21:57:18 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|