openbsd-ports/www/mod_mp3/Makefile

68 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.14 2009/06/03 00:48:51 pyr Exp $
COMMENT= turns Apache into an MP3 or Ogg streaming server
DISTNAME= mod_mp3-0.40
PKGNAME= ${DISTNAME}p0
CATEGORIES= www audio
2006-07-20 00:43:27 -04:00
HOMEPAGE= http://tangent.org/
MASTER_SITES= http://download.tangent.org/
MODULES+= apache-module
# Apache
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FLAVORS= mysql postgresql
FLAVOR?=
MODAPACHE_NAME= mp3
MODAPACHE_LOCATION= ${WRKBUILD}/src
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
CONFIGURE_ARGS+=--with-mysql="${LOCALBASE}/bin"
CONF= ${EXAMPLESRC}/mp3_with_mysql.conf
EXAMPLES+= ${EXAMPLESRC}/mysql_schema
WANTLIB+= crypto m ssl z
.endif
.if ${FLAVOR:L:Mpostgresql}
2006-08-03 20:10:42 -04:00
LIB_DEPENDS+= pq.>=2::databases/postgresql
CONFIGURE_ARGS+=--with-postgres="${LOCALBASE}"
CONF= ${FILESDIR}/mp3_with_postgresql.conf
EXAMPLES+= ${EXAMPLESRC}/pgsql_schema
.endif
post-build:
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
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
${MODAPACHE_INSTALL}
.include <bsd.port.mk>