-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
68 lines (52 loc) · 1.65 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
# $OpenBSD: Makefile,v 1.12 2007/09/15 23:36:43 merdely Exp $
COMMENT= turns Apache into an MP3 or Ogg streaming server
DISTNAME= mod_mp3-0.39
PKGNAME= ${DISTNAME}p3
CATEGORIES= www audio
MASTER_SITES= http://download.tangent.org/ \
ftp://ftp.tangent.org/pub/apache/
HOMEPAGE= http://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}
LIB_DEPENDS+= lib/mysql/mysqlclient.>=10::databases/mysql
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
CONF= ${EXAMPLESRC}/mp3_with_mysql.conf
EXAMPLES+= ${EXAMPLESRC}/mysql_schema
WANTLIB= m
.endif
.if ${FLAVOR:L:Mpostgresql}
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>