aboutsummaryrefslogtreecommitdiff
path: root/devel/apr1/Makefile
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2013-01-13 22:26:01 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2013-01-13 22:26:01 +0000
commit0fff18ce57b2c16c992b0de553605ef1403e6042 (patch)
tree284046f66022efdde567a16b1a147e976ea41759 /devel/apr1/Makefile
parentae655e5d4af7e69d3921ce2ea5ee85460e18191f (diff)
- add apu OPTION for freetds
(no PORTREVISION bump, since not a default option) Requested on http://lists.freebsd.org/pipermail/freebsd-apache/2013-January/003020.html Apache bug Id. https://issues.apache.org/bugzilla/show_bug.cgi?id=53666 Submitted by: "Mikhail T." <mi+thun@aldan.algebra.com>
Notes
Notes: svn path=/head/; revision=310344
Diffstat (limited to 'devel/apr1/Makefile')
-rw-r--r--devel/apr1/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/devel/apr1/Makefile b/devel/apr1/Makefile
index 2dbfe298d41e..0788069e3a99 100644
--- a/devel/apr1/Makefile
+++ b/devel/apr1/Makefile
@@ -19,7 +19,7 @@ MAKE_JOBS_SAFE= yes
NO_OPTIONS_SORT=yes
OPTIONS_GROUP= APR APU
OPTIONS_GROUP_APR= THREADS IPV6 DEVRANDOM
-OPTIONS_GROUP_APU= BDB GDBM LDAP MYSQL NDBM PGSQL SQLITE
+OPTIONS_GROUP_APU= BDB GDBM LDAP MYSQL NDBM PGSQL SQLITE FREETDS
OPTIONS_RADIO= CRYPTO
OPTIONS_RADIO_CRYPTO= SSL
OPTIONS_DEFAULT= THREADS IPV6 DEVRANDOM BDB GDBM SSL
@@ -115,6 +115,16 @@ PLIST_SUB+= LDAP="@comment "
APU_CONF_ARGS+= --without-ldap
.endif
+.if ${PORT_OPTIONS:MFREETDS}
+APU_EXTRAS= yes
+PLIST_SUB+= FREETDS=""
+APU_CONF_ARGS+= --with-freetds=${LOCALBASE}
+LIB_DEPENDS= sybdb:${PORTSDIR}/databases/freetds
+.else
+PLIST_SUB+= FREETDS="@comment "
+APU_CONF_ARGS+= --without-freetds
+.endif
+
.if ${PORT_OPTIONS:MMYSQL}
APU_EXTRAS= yes
PLIST_SUB+= MYSQL=""
@@ -185,7 +195,7 @@ PLIST_SUB+= APU_EXTRAS=""
PLIST_SUB+= APU_EXTRAS="@comment "
.endif
-post-patch:
+post-patch: .SILENT
${REINPLACE_CMD} -e 's/OSVERSION/${OSVERSION}/g' \
${APR_WRKDIR}/build/apr_hints.m4
${FIND} ${APR_WRKDIR} ${APU_WRKDIR} -name "Makefile.in*" | ${XARGS} ${REINPLACE_CMD} -e \
@@ -197,9 +207,6 @@ post-patch:
${APR_WRKDIR}/build/gen-build.py
${REINPLACE_CMD} -e 's/void main/int main/' ${APR_WRKDIR}/build/apr_network.m4
-# http://svn.apache.org/viewvc?view=revision&revision=1362895
- ${REINPLACE_CMD} -e 's|sql = apr_palloc|sql = apr_pcalloc|' ${APU_WRKDIR}/dbd/apr_dbd_freetds.c
-
run-autotools::
cd ${APR_WRKDIR} ; \
${SETENV} ${CONFIGURE_ENV} ${SH} ./buildconf