diff options
author | timur <timur@FreeBSD.org> | 2010-07-16 08:03:49 +0800 |
---|---|---|
committer | timur <timur@FreeBSD.org> | 2010-07-16 08:03:49 +0800 |
commit | f9f1f256481148e60dc981f1de492d51a4ce98e6 (patch) | |
tree | 2ce0cc5a75bb48f62306e10fb41aae2acd878a6d /www | |
parent | 29c1609064c3749ceb7a587d3afbf26e204b8d3c (diff) | |
download | freebsd-ports-gnome-f9f1f256481148e60dc981f1de492d51a4ce98e6.tar.gz freebsd-ports-gnome-f9f1f256481148e60dc981f1de492d51a4ce98e6.tar.zst freebsd-ports-gnome-f9f1f256481148e60dc981f1de492d51a4ce98e6.zip |
PR: 148633
Add OPTIONS to the port and ability to link against mysql, pgsql and sqlite3.
Diffstat (limited to 'www')
-rw-r--r-- | www/kannel/Makefile | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/www/kannel/Makefile b/www/kannel/Makefile index b449ee0ed94b..1573f28dba15 100644 --- a/www/kannel/Makefile +++ b/www/kannel/Makefile @@ -6,9 +6,9 @@ PORTNAME= kannel PORTVERSION= 1.4.3 +PORTREVISION= 1 CATEGORIES= www -MASTER_SITES= http://www.kannel.org/download/%SUBDIR%/ \ - http://farrokhi.net/distfiles/ +MASTER_SITES= http://www.kannel.org/download/ MASTER_SITE_SUBDIR= ${PORTVERSION} DISTNAME= gateway-${PORTVERSION} @@ -25,15 +25,41 @@ USE_BZIP2= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-cflags="${CPPFLAGS}" --with-libs="${LDFLAGS}" \ --enable-pcre=yes --enable-docs=no --with-malloc=native \ - --enable-start-stop-daemon=no + --enable-start-stop-daemon=no --without-sdb --without-oracle \ + --without-sqlite2 MAN1= mtbatch.1 seewbmp.1 wmlsc.1 wmlsdasm.1 MAN8= kannel.8 run_kannel_box.8 +OPTIONS= MYSQL "Enable MySQL support" off \ + PGSQL "Enable PostgreSQL support" off \ + SQLITE3 "Enable SQLite support" off + +.include <bsd.port.options.mk> + CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -.include <bsd.port.pre.mk> +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+=--with-mysql +.else +CONFIGURE_ARGS+=--without-mysql +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL= yes +CONFIGURE_ARGS+=--with-pgsql +.else +CONFIGURE_ARGS+=--without-pgsql +.endif + +.if defined(WITH_SQLITE3) +USE_SQLITE= 3 +CONFIGURE_ARGS+=--with-sqlite3 +.else +CONFIGURE_ARGS+=--without-sqlite3 +.endif .if ${ARCH} == "alpha" BROKEN= Does not compile on alpha @@ -55,4 +81,4 @@ post-install: @${STRIP_CMD} ${PREFIX}/sbin/${filename} .endfor -.include <bsd.port.post.mk> +.include <bsd.port.mk> |