Convert to new options framework left unconverted ports in databases category

This commit is contained in:
Baptiste Daroussin 2013-03-21 17:43:46 +00:00
parent 7ef963090c
commit 14bc5a6c11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314856
22 changed files with 273 additions and 360 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: adodb # Created by: abgoeree@uwnet.nl
# Date created: 4 May 2001
# Whom: abgoeree@uwnet.nl
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= adodb PORTNAME= adodb
PORTVERSION= 4.99.2 PORTVERSION= 4.99.2
@ -26,13 +22,14 @@ NO_BUILD= YES
ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl
OPTIONS= TESTS "Install tests" off OPTIONS_DEFINE= TESTS DOCS
TESTS_DESC= Install tests
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
SUB_FILES+= pkg-message SUB_FILES+= pkg-message
.if defined (WITH_TESTS) .if ${PORT_OPTIONS:MTESTS}
PLIST_SUB+= TESTS= PLIST_SUB+= TESTS=
.else .else
PLIST_SUB+= TESTS="@comment " PLIST_SUB+= TESTS="@comment "
@ -50,14 +47,14 @@ do-install:
@cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type f \ @cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type f \
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \; -exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \;
.if defined (WITH_TESTS) .if ${PORT_OPTIONS:MTESTS}
@${MKDIR} ${DATADIR}/tests @${MKDIR} ${DATADIR}/tests
@cd ${WRKSRC}; ${FIND} tests -type f \ @cd ${WRKSRC}; ${FIND} tests -type f \
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \; -exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \;
.endif .endif
post-install: post-install:
.if !defined (NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/cute_icons_for_site @${MKDIR} ${DOCSDIR} ${DOCSDIR}/cute_icons_for_site
@cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f -name '*.txt' \ @cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f -name '*.txt' \
-exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \; -exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \;
@ -68,4 +65,4 @@ post-install:
.endif .endif
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,10 +1,5 @@
# ex:ts=8 # Created by: ijliao
# New ports collection makefile for: dbconnect
# Date created: Jul 23, 2001
# Whom: ijliao
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= dbconnect PORTNAME= dbconnect
PORTVERSION= 0.3.5 PORTVERSION= 0.3.5
@ -23,14 +18,14 @@ USE_LDCONFIG= yes
CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD CXXFLAGS+= ${PTHREAD_CFLAGS} -fPIC -DFREEBSD
LDFLAG+= ${PTHREAD_LIBS} LDFLAG+= ${PTHREAD_LIBS}
OPTIONS= MYSQL "With MySQL driver" on \ OPTIONS_DEFINE= MYSQL PGSQL
PGSQL "With PostgreSQL driver" off OPTIONS_DEFAULT= MYSQL
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
PLIST_SUB+= PORTVERSION=${PORTVERSION} PLIST_SUB+= PORTVERSION=${PORTVERSION}
.if !defined(WITHOUT_MYSQL) .if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= YES USE_MYSQL= YES
CONFIGURE_ARGS+= --enable-mysql=yes \ CONFIGURE_ARGS+= --enable-mysql=yes \
--with-mysql_include=${LOCALBASE}/include/mysql \ --with-mysql_include=${LOCALBASE}/include/mysql \
@ -40,7 +35,7 @@ PLIST_SUB+= MYSQL=""
PLIST_SUB+= MYSQL="@comment " PLIST_SUB+= MYSQL="@comment "
.endif .endif
.if defined(WITH_PGSQL) .if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes USE_PGSQL= yes
CONFIGURE_ARGS+= --enable-pgsql=yes \ CONFIGURE_ARGS+= --enable-pgsql=yes \
--with-pgsql_include=${LOCALBASE}/include \ --with-pgsql_include=${LOCALBASE}/include \
@ -65,4 +60,4 @@ do-install:
$${libname}.so); \ $${libname}.so); \
done done
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: drizzle # Created by: Greg Larkin <glarkin@FreeBSD.org>
# Date created: 2010-04-22
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= drizzle PORTNAME= drizzle
PORTVERSION= 2010.05.1561 PORTVERSION= 2010.05.1561
@ -34,7 +30,7 @@ GROUPS= drizzle
# Replace token in the rc.d script # Replace token in the rc.d script
SUB_LIST+= USERS=${USERS} SUB_LIST+= USERS=${USERS}
OPTIONS= DOCS "Build documentation with doxygen (very slow)" Off OPTIONS_DEFINE= DOXYGEN NLS
BUILD_DEPENDS+= libdrizzle>=0:${PORTSDIR}/databases/libdrizzle \ BUILD_DEPENDS+= libdrizzle>=0:${PORTSDIR}/databases/libdrizzle \
e2fsprogs-libuuid>=0:${PORTSDIR}/misc/e2fsprogs-libuuid \ e2fsprogs-libuuid>=0:${PORTSDIR}/misc/e2fsprogs-libuuid \
@ -57,22 +53,21 @@ MAN8= drizzled.8
USE_RC_SUBR= drizzle-server USE_RC_SUBR= drizzle-server
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if ${ARCH} == "i386" .if ${ARCH} == "i386"
CONFIGURE_ARGS+=--disable-64bit CONFIGURE_ARGS+=--disable-64bit
.endif .endif
.if defined(WITHOUT_NLS) .if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes USE_GETTEXT= yes
PLIST_SUB+= NLS="" PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif .endif
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
.if defined(WITH_DOCS)
BUILD_DEPENDS+= doxygen>=0:${PORTSDIR}/devel/doxygen \ BUILD_DEPENDS+= doxygen>=0:${PORTSDIR}/devel/doxygen \
${LOCALBASE}/bin/dot:${PORTSDIR}/graphics/graphviz ${LOCALBASE}/bin/dot:${PORTSDIR}/graphics/graphviz
ALL_TARGET= all doxygen ALL_TARGET= all doxygen
@ -84,6 +79,5 @@ post-install::
.else .else
PLIST_SUB+= PORTDOCS="@comment " PLIST_SUB+= PORTDOCS="@comment "
.endif .endif
.endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,7 +1,4 @@
# New ports collection makefile for: freetds # Created by: Domas Mituzas <midom@dammit.lt>
# Date created: 02 Nov 1999
# Whom: Domas Mituzas <midom@dammit.lt>
#
# $FreeBSD$ # $FreeBSD$
PORTNAME= freetds PORTNAME= freetds
@ -30,35 +27,34 @@ PORTDOCS= *
MAN1= datacopy.1 freebcp.1 tsql.1 bsqldb.1 defncopy.1 MAN1= datacopy.1 freebcp.1 tsql.1 bsqldb.1 defncopy.1
OPTIONS= OPENSSL "Use openssl" off \ OPTIONS_DEFINE= OPENSSL GNUTLS MSDBLIB DOCS
GNUTLS "Use GNUTLS" off \ OPTIONS_RADIO= ODBC
IODBC "Use iodbc (Mutually Exclusive)" off \ OPTIONS_RADIO_ODBC= IODBC UNIXODBC
UNIXODBC "Use unixodbc (Mutually Exclusive)" off \ MSDBLIB_DESC= MS SQL Server support (breaks databases/sybtcl)
MSDBLIB "MS SQL Server support (breaks databases/sybtcl)" off
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_OPENSSL) .if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
.endif .endif
.if defined(WITH_GNUTLS) .if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+=--with-gnutls CONFIGURE_ARGS+=--with-gnutls
.endif .endif
.if defined(WITH_IODBC) .if ${PORT_OPTIONS:MIODBC}
LIB_DEPENDS+= iodbc:${PORTSDIR}/databases/libiodbc LIB_DEPENDS+= iodbc:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE} CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
.endif .endif
.if defined(WITH_UNIXODBC) .if ${PORT_OPTIONS:MUNIXODBC}
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE} CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
.endif .endif
.if defined(WITH_IODBC) || defined(WITH_UNIXODBC) .if ${PORT_OPTIONS:MIODBC) || defined(WITH_UNIXODBC}
PLIST_SUB+= ODBC="" PLIST_SUB+= ODBC=""
.else .else
PLIST_SUB+= ODBC="@comment " PLIST_SUB+= ODBC="@comment "
@ -66,7 +62,7 @@ PLIST_SUB+= ODBC="@comment "
# We cannot use msdblib-style by default, because port databases/sybtcl # We cannot use msdblib-style by default, because port databases/sybtcl
# relies on sybase-style dblib # relies on sybase-style dblib
.if defined(WITH_MSDBLIB) .if ${PORT_OPTIONS:MMSDBLIB}
CONFIGURE_ARGS+= --enable-msdblib CONFIGURE_ARGS+= --enable-msdblib
.endif .endif
@ -84,7 +80,7 @@ post-patch:
s| common.h||g' s| common.h||g'
post-install: post-install:
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${DOCSDIR} @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${DOCSDIR}
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} doc ${DOCSDIR} @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} doc ${DOCSDIR}
.endif .endif
@ -93,4 +89,4 @@ post-install:
@${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}/etc" @${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}/etc"
@${ECHO_CMD} "You should edit them and remove the .dist-suffix from their names" @${ECHO_CMD} "You should edit them and remove the .dist-suffix from their names"
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: gdbm # Created by: Brent J. Nordquist <bjn@visi.com>
# Date created: 8 Apr 1996
# Whom: Brent J. Nordquist <bjn@visi.com>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= gdbm PORTNAME= gdbm
PORTVERSION= 1.9.1 PORTVERSION= 1.9.1
@ -13,7 +9,8 @@ MASTER_SITES= GNU
MAINTAINER= gabor@FreeBSD.org MAINTAINER= gabor@FreeBSD.org
COMMENT= The GNU database manager COMMENT= The GNU database manager
OPTIONS= COMPAT "dbm/ndbm compatibility" off OPTIONS_DEFINE= COMPAT
COMPAT_DESC= dbm/ndbm compatibility
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool USE_AUTOTOOLS= libtool
@ -25,7 +22,7 @@ MAN3= gdbm.3
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if defined(WITH_COMPAT) .if ${PORT_OPTIONS:MCOMPAT}
CONFIGURE_ARGS+=--enable-libgdbm-compat CONFIGURE_ARGS+=--enable-libgdbm-compat
PLIST_SUB= GDBM_COMPAT="" PLIST_SUB= GDBM_COMPAT=""
.else .else
@ -33,10 +30,10 @@ PLIST_SUB= GDBM_COMPAT="@comment "
.endif .endif
pre-everything:: pre-everything::
.if !defined(WITH_COMPAT) .if ! ${PORT_OPTIONS:MCOMPAT}
@${ECHO_MSG} @${ECHO_MSG}
@${ECHO_MSG} "If you need UNIX dbm/ndbm compatibility functions," @${ECHO_MSG} "If you need UNIX dbm/ndbm compatibility functions,"
@${ECHO_MSG} "use \"make WITH_COMPAT=yes\"" @${ECHO_MSG} "use \"make WITH=COMPAT\""
@${ECHO_MSG} @${ECHO_MSG}
.endif .endif

View file

@ -1,9 +1,5 @@
# Ports collection makefile for: libdbi-drivers # Created by: ijliao
# Date created: Oct 30, 2003
# Whom: ijliao
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= libdbi-drivers PORTNAME= libdbi-drivers
DISTVERSION= 0.8.3-1 DISTVERSION= 0.8.3-1
@ -22,23 +18,15 @@ CONFIGURE_ARGS= --disable-static \
--with-dbi-incdir=${LOCALBASE}/include/dbi --with-dbi-incdir=${LOCALBASE}/include/dbi
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${DISTVERSION}
OPTIONS= MYSQL "With MySQL Driver" on \ OPTIONS_MULTI= DRIVER
MSQL "With MSQL Driver" off \ OPTIONS_MULTI_DRIVER= MYSQL MSQL PGSQL SQLITE2 SQLITE3 FIREBIRD FREETDS
PGSQL "With PostgreSQL Driver" on \
SQLITE2 "With SQLite 2 Driver" off \
SQLITE3 "With SQLite 3 Driver" on \
FIREBIRD "With Firebird Driver (BROKEN)" off \
FREETDS "With FreeTDS Driver" off
.include <bsd.port.pre.mk> OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3
SQLITE2_DESC= SQLite 2 Database
.if defined(WITHOUT_MYSQL) && defined(WITHOUT_MSQL) && defined(WITHOUT_PGSQL) \ .include <bsd.port.options.mk>
&& defined(WITHOUT_SQLITE2) && defined(WITHOUT_SQLITE3) \
&& defined(WITHOUT_FIREBIRD) && defined(WITHOUT_FREETDS)
IGNORE= choose at least one driver
.endif
.if !defined(WITHOUT_MYSQL) .if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql CONFIGURE_ARGS+= --with-mysql
PLIST_SUB+= MYSQL="" PLIST_SUB+= MYSQL=""
@ -46,7 +34,7 @@ PLIST_SUB+= MYSQL=""
PLIST_SUB+= MYSQL="@comment " PLIST_SUB+= MYSQL="@comment "
.endif .endif
.if defined(WITH_MSQL) .if ${PORT_OPTIONS:MMSQL}
LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql CONFIGURE_ARGS+= --with-msql
PLIST_SUB+= MSQL="" PLIST_SUB+= MSQL=""
@ -54,7 +42,7 @@ PLIST_SUB+= MSQL=""
PLIST_SUB+= MSQL="@comment " PLIST_SUB+= MSQL="@comment "
.endif .endif
.if !defined(WITHOUT_PGSQL) .if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql CONFIGURE_ARGS+= --with-pgsql
PLIST_SUB+= PGSQL="" PLIST_SUB+= PGSQL=""
@ -62,7 +50,7 @@ PLIST_SUB+= PGSQL=""
PLIST_SUB+= PGSQL="@comment " PLIST_SUB+= PGSQL="@comment "
.endif .endif
.if defined(WITH_SQLITE2) .if ${PORT_OPTIONS:MSQLITE2}
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2 LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_ARGS+= --with-sqlite CONFIGURE_ARGS+= --with-sqlite
PLIST_SUB+= SQLITE2="" PLIST_SUB+= SQLITE2=""
@ -70,7 +58,7 @@ PLIST_SUB+= SQLITE2=""
PLIST_SUB+= SQLITE2="@comment " PLIST_SUB+= SQLITE2="@comment "
.endif .endif
.if !defined(WITHOUT_SQLITE3) .if ${PORT_OPTIONS:MSQLITE3}
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+= --with-sqlite3 CONFIGURE_ARGS+= --with-sqlite3
PLIST_SUB+= SQLITE3="" PLIST_SUB+= SQLITE3=""
@ -78,7 +66,7 @@ PLIST_SUB+= SQLITE3=""
PLIST_SUB+= SQLITE3="@comment " PLIST_SUB+= SQLITE3="@comment "
.endif .endif
.if defined(WITH_FIREBIRD) .if ${PORT_OPTIONS:MFIREBIRD}
LIB_DEPENDS+= gds.2:${PORTSDIR}/databases/firebird20-client LIB_DEPENDS+= gds.2:${PORTSDIR}/databases/firebird20-client
CONFIGURE_ARGS+= --with-firebird CONFIGURE_ARGS+= --with-firebird
PLIST_SUB+= FIREBIRD="" PLIST_SUB+= FIREBIRD=""
@ -86,7 +74,7 @@ PLIST_SUB+= FIREBIRD=""
PLIST_SUB+= FIREBIRD="@comment " PLIST_SUB+= FIREBIRD="@comment "
.endif .endif
.if defined(WITH_FREETDS) .if ${PORT_OPTIONS:MFREETDS}
LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-freetds CONFIGURE_ARGS+= --with-freetds
PLIST_SUB+= FREETDS="" PLIST_SUB+= FREETDS=""
@ -102,4 +90,4 @@ post-patch:
-e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@${TOUCH} ${WRKSRC}/drivers/*/dbd_*/* @${TOUCH} ${WRKSRC}/drivers/*/dbd_*/*
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: libdrizzle # Created by: Greg Larkin <glarkin@FreeBSD.org>
# Date created: 2010-03-03
# Whom: Greg Larkin <glarkin@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= libdrizzle PORTNAME= libdrizzle
PORTVERSION= 0.8 PORTVERSION= 0.8
@ -17,7 +13,7 @@ COMMENT= Client and protocol library for the Drizzle database
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
OPTIONS= DOCS "Build documentation with doxygen" Off OPTIONS_DEFINE= DOXYGEN EXAMPLES
USE_GCC= 4.2+ USE_GCC= 4.2+
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
@ -28,10 +24,9 @@ USE_LDCONFIG= yes
SAMPLE_PROGS= client pipe_query proxy server simple \ SAMPLE_PROGS= client pipe_query proxy server simple \
simple_multi sqlite_server simple_multi sqlite_server
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEB}
.if defined(WITH_DOCS)
BUILD_DEPENDS+= doxygen>=0:${PORTSDIR}/devel/doxygen BUILD_DEPENDS+= doxygen>=0:${PORTSDIR}/devel/doxygen
ALL_TARGET= all doxygen ALL_TARGET= all doxygen
PLIST_SUB+= PORTDOCS="" PLIST_SUB+= PORTDOCS=""
@ -42,9 +37,8 @@ post-install::
.else .else
PLIST_SUB+= PORTDOCS="@comment " PLIST_SUB+= PORTDOCS="@comment "
.endif .endif
.endif
.if !defined(NOPORTEXAMPLES) .if ${PORT_OPTIONS:MEXAMPLES}
post-install:: post-install::
@${INSTALL} -d ${EXAMPLESDIR} @${INSTALL} -d ${EXAMPLESDIR}
.for i in ${SAMPLE_PROGS} .for i in ${SAMPLE_PROGS}

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: mysql2odbc # Created by: Max Khon <fjoe@FreeBSD.org>
# Date created: 8 Aug 2005
# Whom: Max Khon <fjoe@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= mysql2odbc PORTNAME= mysql2odbc
PORTVERSION= 0.99.2 PORTVERSION= 0.99.2
@ -14,25 +10,18 @@ MASTER_SITES= http://www.iodbc.org/downloads/mysql2odbc/
MAINTAINER= fjoe@FreeBSD.org MAINTAINER= fjoe@FreeBSD.org
COMMENT= Openlink MySQL-ODBC Gateway COMMENT= Openlink MySQL-ODBC Gateway
OPTIONS= UNIXODBC "Build with unixODBC" on \ OPTIONS_SINGLE= ODBC
IODBC "Build with iODBC" off \ OPTIONS_SINGLE_ODBC= UNIXODBC IODBC
OPTIONS_DEFAULT= UNIXODBC
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if !defined(WITH_UNIXODBC) && !defined(WITH_IODBC) .if ${PORT_OPTIONS:MUNIXODBC}
WITH_UNIXODBC= yes
.endif
.if defined(WITH_UNIXODBC) && defined(WITH_IODBC)
BROKEN= UNIXODBC and IODBC options are mutually exclusive
.endif
.if defined(WITH_UNIXODBC)
LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE} CONFIGURE_ARGS= --with-unixodbc=${LOCALBASE}
.endif .endif
.if defined(WITH_IODBC) .if ${PORT_OPTIONS:MIODBC}
LIB_DEPENDS= iodbc:${PORTSDIR}/databases/libiodbc LIB_DEPENDS= iodbc:${PORTSDIR}/databases/libiodbc
CONFIGURE_ARGS= --with-iodbc CONFIGURE_ARGS= --with-iodbc
.endif .endif
@ -44,4 +33,4 @@ LDFLAGS+= ${PTHREAD_LIBS}
USE_AUTOTOOLS= libtool USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes USE_LDCONFIG= yes
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: opendbx # Created by: tremere@cainites.net
# Date Created: 17 March 2006
# Whom: tremere@cainites.net
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= opendbx PORTNAME= opendbx
PORTVERSION= 1.4.5 PORTVERSION= 1.4.5
@ -23,20 +19,17 @@ CONFIGURE_ARGS+= --with-backends="${CONFIGURE_MODULES}"
USE_LDCONFIG= ${PREFIX}/lib/opendbx USE_LDCONFIG= ${PREFIX}/lib/opendbx
OPTIONS= MYSQL "Support for the MySQL database" on \ OPTIONS_DEFINE= NLS
PGSQL "Support for the PostgreSQL database" off \ OPTIONS_MULTI= DRIVER
SQLITE "Support for the SQLite 2 database" off \ OPTIONS_MULTI_DRIVER= MYSQL PGSQL SQLITE2 MSSQL SYBASE
SQLITE3 "Support for the SQLite 3 database" off \ OPTIONS_DEFAULT= MYSQL
MSSQL "Support for the MSSQL database" off \ SQLITE2_DESC= SQLite 2 database
SYBASE "Support for the Sybase database" off SYBASE_DESC= Sybase database
DRIVER_DESC= Database drivers
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if !defined(WITH_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) && !defined(WITH_SQLITE3) && !defined(WITH_MSSQL) && !defined(WITH_SYBASE) .if ${PORT_OPTIONS:MMYSQL}
IGNORE= needs at least one database backend
.endif
.if defined(WITH_MYSQL)
USE_MYSQL?= YES USE_MYSQL?= YES
CONFIGURE_MODULES+= "mysql" CONFIGURE_MODULES+= "mysql"
CPPFLAGS+= -I${LOCALBASE}/include/mysql CPPFLAGS+= -I${LOCALBASE}/include/mysql
@ -46,7 +39,7 @@ PLIST_SUB+= WITHMYSQL=""
PLIST_SUB+= WITHMYSQL="@comment " PLIST_SUB+= WITHMYSQL="@comment "
.endif .endif
.if !defined(WITHOUT_PGSQL) .if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL?= YES USE_PGSQL?= YES
CONFIGURE_MODULES+= "pgsql" CONFIGURE_MODULES+= "pgsql"
PLIST_SUB+= WITHPGSQL="" PLIST_SUB+= WITHPGSQL=""
@ -54,7 +47,7 @@ PLIST_SUB+= WITHPGSQL=""
PLIST_SUB+= WITHPGSQL="@comment " PLIST_SUB+= WITHPGSQL="@comment "
.endif .endif
.if defined(WITH_SQLITE) .if ${PORT_OPTIONS:MSQLITE}
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2 LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_MODULES+= "sqlite" CONFIGURE_MODULES+= "sqlite"
PLIST_SUB+= WITHSQLITE="" PLIST_SUB+= WITHSQLITE=""
@ -62,7 +55,7 @@ PLIST_SUB+= WITHSQLITE=""
PLIST_SUB+= WITHSQLITE="@comment " PLIST_SUB+= WITHSQLITE="@comment "
.endif .endif
.if defined(WITH_SQLITE3) .if ${PORT_OPTIONS:MSQLITE3}
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3 LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
CONFIGURE_MODULES+= "sqlite3" CONFIGURE_MODULES+= "sqlite3"
PLIST_SUB+= WITHSQLITE3="" PLIST_SUB+= WITHSQLITE3=""
@ -70,7 +63,7 @@ PLIST_SUB+= WITHSQLITE3=""
PLIST_SUB+= WITHSQLITE3="@comment " PLIST_SUB+= WITHSQLITE3="@comment "
.endif .endif
.if defined(WITH_MSSQL) .if ${PORT_OPTIONS:MMSSQL}
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds
CONFIGURE_MODULES+= "mssql" CONFIGURE_MODULES+= "mssql"
PLIST_SUB+= WITHMSSQL="" PLIST_SUB+= WITHMSSQL=""
@ -78,7 +71,7 @@ PLIST_SUB+= WITHMSSQL=""
PLIST_SUB+= WITHMSSQL="@comment " PLIST_SUB+= WITHMSSQL="@comment "
.endif .endif
.if defined(WITH_SYBASE) .if ${PORT_OPTIONS:MSYBASE}
LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds
CONFIGURE_MODULES+= "sybase" CONFIGURE_MODULES+= "sybase"
PLIST_SUB+= WITHSYBASE="" PLIST_SUB+= WITHSYBASE=""
@ -86,12 +79,12 @@ PLIST_SUB+= WITHSYBASE=""
PLIST_SUB+= WITHSYBASE="@comment " PLIST_SUB+= WITHSYBASE="@comment "
.endif .endif
.if defined(WITHOUT_NLS) .if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes USE_GETTEXT= yes
PLIST_SUB+= NLS="" PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: DBD::mysql # Created by: Sergey Skvortsov <skv@FreeBSD.org>
# Date created: 27 Nov 2001
# Whom: Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= DBD-mysql PORTNAME= DBD-mysql
PORTVERSION= 4.021 PORTVERSION= 4.021
@ -29,11 +25,11 @@ PERL_CONFIGURE= yes
MAN3= Bundle::DBD::mysql.3 DBD::mysql.3 DBD::mysql::INSTALL.3 MAN3= Bundle::DBD::mysql.3 DBD::mysql.3 DBD::mysql::INSTALL.3
OPTIONS= SSL "build with OpenSSL support" off OPTIONS_DEFINE= SSL
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if defined(WITH_SSL) .if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --ssl CONFIGURE_ARGS+= --ssl
RUN_DEPENDS+= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay RUN_DEPENDS+= p5-Crypt-SSLeay>=0:${PORTSDIR}/security/p5-Crypt-SSLeay
.endif .endif

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: DBIx::Simple # Created by: Parv <parv@pair.org>
# Date created: 10 December 2005
# Whom: Parv <parv@pair.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= DBIx-Simple PORTNAME= DBIx-Simple
PORTVERSION= 1.35 PORTVERSION= 1.35
@ -16,10 +12,11 @@ COMMENT= Simplified object oriented interface to Perl DBI
RUN_DEPENDS= p5-DBI>=1.21:${PORTSDIR}/databases/p5-DBI RUN_DEPENDS= p5-DBI>=1.21:${PORTSDIR}/databases/p5-DBI
OPTIONS= SQL_INTERP "Interpolate Perl variables into SQL" off \ OPTIONS_DEFINE= SQL_INTERP SQL_ABSTRACT DBIX_XHTML_TABLE TEXT_TABLE
SQL_ABSTRACT "Generate SQL from Perl data structures" off \ SQL_INTERP_DESC= Interpolate Perl variables into SQL
DBIX_XHTML_TABLE "Create XHTML tables from SQL queries" off \ SQL_ABSTRACT_DESC= Generate SQL from Perl data structures
TEXT_TABLE "Create plain text table from data" off DBIX_XHTML_TABLE_DESC= Create XHTML tables from SQL queries
TEXT_TABLE_DESC= Create plain text table from data
PERL_CONFIGURE= yes PERL_CONFIGURE= yes
@ -28,22 +25,22 @@ MAN3= DBIx::Simple.3 \
DBIx::Simple::Comparison.3 \ DBIx::Simple::Comparison.3 \
DBIx::Simple::Result::RowObject.3 DBIx::Simple::Result::RowObject.3
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_SQL_INTERP) .if ${PORT_OPTIONS:MSQL_INTERP}
RUN_DEPENDS+= p5-SQL-Interp>=0:${PORTSDIR}/databases/p5-SQL-Interp RUN_DEPENDS+= p5-SQL-Interp>=0:${PORTSDIR}/databases/p5-SQL-Interp
.endif .endif
.if defined(WITH_SQL_ABSTRACT) .if ${PORT_OPTIONS:MSQL_ABSTRACT}
RUN_DEPENDS+= p5-SQL-Abstract>=0:${PORTSDIR}/databases/p5-SQL-Abstract RUN_DEPENDS+= p5-SQL-Abstract>=0:${PORTSDIR}/databases/p5-SQL-Abstract
.endif .endif
.if defined(WITH_DBIX_XHTML_TABLE) .if ${PORT_OPTIONS:MDBIX_XHTML_TABLE}
RUN_DEPENDS+= p5-DBIx-XHTML_Table>=0:${PORTSDIR}/databases/p5-DBIx-XHTML_Table RUN_DEPENDS+= p5-DBIx-XHTML_Table>=0:${PORTSDIR}/databases/p5-DBIx-XHTML_Table
.endif .endif
.if defined(WITH_TEXT_TABLE) .if ${PORT_OPTIONS:MTEXT_TABLE}
RUN_DEPENDS+= p5-Text-Table>=0:${PORTSDIR}/textproc/p5-Text-Table RUN_DEPENDS+= p5-Text-Table>=0:${PORTSDIR}/textproc/p5-Text-Table
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: pxlib # Created by: Sergey Matveychuk <sem@FreeBSD.org>
# Date created: 10 December 2005
# Whom: Sergey Matveychuk <sem@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= pxlib PORTNAME= pxlib
PORTVERSION= 0.6.3 PORTVERSION= 0.6.3
@ -27,11 +23,12 @@ LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes USE_LDCONFIG= yes
OPTIONS= DOCS "Build and install documentation" off OPTIONS_DEFINE= MAN
MAN_DESC= Build and install manpages
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_DOCS) .if ${PORT_OPTIONS:MMAN}
BUILD_DEPENDS+= docbook-to-man:${PORTSDIR}/textproc/docbook-to-man \ BUILD_DEPENDS+= docbook-to-man:${PORTSDIR}/textproc/docbook-to-man \
docbook2man:${PORTSDIR}/textproc/docbook-utils docbook2man:${PORTSDIR}/textproc/docbook-utils
@ -58,4 +55,4 @@ pre-build:
${REINPLACE_CMD} -e 's/^DOCDIR =.*/DOCDIR =/' ${WRKSRC}/Makefile ${REINPLACE_CMD} -e 's/^DOCDIR =.*/DOCDIR =/' ${WRKSRC}/Makefile
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: rrdtool # Created by: Dmitry Sivachenko <dima@Chg.RU>
# Date created: 20 July 1999
# Whom: Dmitry Sivachenko <dima@Chg.RU>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= rrdtool PORTNAME= rrdtool
PORTVERSION= 1.4.7 PORTVERSION= 1.4.7
@ -38,16 +34,18 @@ PORTDOCS= *
PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl perftest.pl \ PORTEXAMPLES= 4charts.pl bigtops.pl cgi-demo.cgi minmax.pl perftest.pl \
piped-demo.pl shared-demo.pl stripes.pl piped-demo.pl shared-demo.pl stripes.pl
OPTIONS= DEJAVU "Use DejaVu fonts (requires X11)" off \ OPTIONS_DEFINE= DEJAVU JSON MMAP PERL_MODULE PYTHON_MODULE RUBY_MODULE EXAMPLES DOCS
JSON "Support of json export" off \ OPTIONS_DEFAULT= MMAP PERL_MODULE
MMAP "Use mmap in rrd_update" on \ DEJAVU_DESC= Use DejaVu fonts (requires X11)
PERL_MODULE "Build PERL module" on \ JSON_DESC= Support of json export
PYTHON_MODULE "Build PYTHON bindings" off \ MMAP_DESC= Use mmap in rrd_update
RUBY_MODULE "Build RUBY bindings" off PERL_MODULE_DESC= Build PERL module
PYTHON_MODULE_DESC= Build PYTHON bindings
RUBY_MODULE_DESC= Build RUBY bindings
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if defined(WITH_PYTHON_MODULE) .if ${PORT_OPTIONS:MPYTHON_MODULE}
USE_PYTHON= yes USE_PYTHON= yes
INSTALLS_EGGINFO=yes INSTALLS_EGGINFO=yes
PYDISTUTILS_EGGINFO=py_rrdtool-0.2.1-${PYTHON_VERSION:S/thon//}.egg-info PYDISTUTILS_EGGINFO=py_rrdtool-0.2.1-${PYTHON_VERSION:S/thon//}.egg-info
@ -59,7 +57,7 @@ CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= WITH_PYTHON="@comment " PLIST_SUB+= WITH_PYTHON="@comment "
.endif .endif
.if defined(WITH_RUBY_MODULE) .if ${PORT_OPTIONS:MRUBY_MODULE}
USE_RUBY= yes USE_RUBY= yes
.include "${PORTSDIR}/Mk/bsd.ruby.mk" .include "${PORTSDIR}/Mk/bsd.ruby.mk"
PLIST_SUB+= WITH_RUBY="" PLIST_SUB+= WITH_RUBY=""
@ -69,7 +67,7 @@ CONFIGURE_ARGS+= --disable-ruby
PLIST_SUB+= WITH_RUBY="@comment " PLIST_SUB+= WITH_RUBY="@comment "
.endif .endif
.if !defined(WITHOUT_PERL_MODULE) .if ${PORT_OPTIONS:MPERL_MODULE}
USE_PERL5= yes USE_PERL5= yes
CONFIGURE_ARGS+= --enable-perl --enable-perl-site-install CONFIGURE_ARGS+= --enable-perl --enable-perl-site-install
PLIST_SUB+= WITH_PERL="" PLIST_SUB+= WITH_PERL=""
@ -78,15 +76,15 @@ CONFIGURE_ARGS+= --disable-perl
PLIST_SUB+= WITH_PERL="@comment " PLIST_SUB+= WITH_PERL="@comment "
.endif .endif
.if defined(WITHOUT_MMAP) .if ! ${PORT_OPTIONS:MMMAP}
CONFIGURE_ARGS+= --disable-mmap CONFIGURE_ARGS+= --disable-mmap
.endif .endif
.if defined(WITH_JSON) .if ${PORT_OPTIONS:MJSON}
EXTRA_PATCHES+= ${FILESDIR}/thirdparty-json.diff EXTRA_PATCHES+= ${FILESDIR}/thirdparty-json.diff
.endif .endif
.if exists(${LOCALBASE}/lib/X11/fonts/dejavu) || defined(WITH_DEJAVU) .if exists(${LOCALBASE}/lib/X11/fonts/dejavu) || ${PORT_OPTIONS:MDEJAVU}
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
.endif .endif
@ -102,26 +100,26 @@ MAN1= bin_dec_hex.1 cdeftutorial.1 rpntutorial.1 rrd-beginners.1 \
rrdresize.1 rrdrestore.1 rrdthreads.1 rrdtool.1 rrdtune.1 \ rrdresize.1 rrdrestore.1 rrdthreads.1 rrdtool.1 rrdtune.1 \
rrdtutorial.1 rrdupdate.1 rrdxport.1 rrdtutorial.1 rrdupdate.1 rrdxport.1
.if !defined(WITHOUT_PERL_MODULE) .if ${PORT_OPTIONS:MPERL_MODULE}
MAN3= RRDp.3 RRDs.3 MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
.endif .endif
post-extract: post-extract:
@${REINPLACE_CMD} -e 's/^POD3/#POD3/' ${WRKSRC}/doc/Makefile.in @${REINPLACE_CMD} -e 's/^POD3/#POD3/' ${WRKSRC}/doc/Makefile.in
.if defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's/[[:space:]]install-idocDATA//g' \ @${REINPLACE_CMD} -e 's/[[:space:]]install-idocDATA//g' \
-e 's/[[:space:]]install-ihtmlDATA//g' \ -e 's/[[:space:]]install-ihtmlDATA//g' \
-e 's/^[[:space:]].*cd .* rrdtool.html index.html/ #/' \ -e 's/^[[:space:]].*cd .* rrdtool.html index.html/ #/' \
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.in
.endif .endif
.if defined(NOPORTEXAMPLES) .if ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \ ${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in
.endif .endif
post-install: post-install:
.if !defined(BATCH) && !defined(NOPORTEXAMPLES) .if !defined(BATCH) && ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} "" @${ECHO_MSG} ""
@${ECHO_MSG} "############################################################################" @${ECHO_MSG} "############################################################################"
@${ECHO_MSG} "# See ${EXAMPLESDIR} for some demonstration code #" @${ECHO_MSG} "# See ${EXAMPLESDIR} for some demonstration code #"

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: rrdtool # Created by: Dmitry Sivachenko <dima@Chg.RU>
# Date created: 20 July 1999
# Whom: Dmitry Sivachenko <dima@Chg.RU>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= rrdtool PORTNAME= rrdtool
PORTVERSION= 1.0.50 PORTVERSION= 1.0.50
@ -37,11 +33,12 @@ MAN1= RRDp.1 RRDs.1 bin_dec_hex.1 rrdcgi.1 rrdcreate.1 rrddump.1 \
MAN3= RRDp.3 RRDs.3 MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
OPTIONS= LATIN2 "ISO-8859-2 fonts support" off OPTIONS_DEFINE= LATIN2
LATIN2_DESC= ISO-8859-2 fonts support
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_LATIN2) .if ${PORT_OPTIONS:MLATIN2}
CONFIGURE_ARGS+=--enable-latin2 CONFIGURE_ARGS+=--enable-latin2
.endif .endif
@ -54,7 +51,7 @@ BROKEN= Does not build on ia64
.endif .endif
post-extract: post-extract:
.if defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's/install-idocDATA install-ihtmlDATA//g' \ @${REINPLACE_CMD} -e 's/install-idocDATA install-ihtmlDATA//g' \
${WRKSRC}/doc/Makefile.in ${WRKSRC}/doc/Makefile.in
.endif .endif
@ -67,4 +64,4 @@ post-install:
@${ECHO_MSG} "############################################################################" @${ECHO_MSG} "############################################################################"
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -23,13 +23,14 @@ USE_RC_SUBR= slon
SUB_FILES= pkg-message slon-mkservice.sh SUB_FILES= pkg-message slon-mkservice.sh
SUB_LIST+= NAME=slon SUB_LIST+= NAME=slon
OPTIONS= PERLTOOLS "Install perl configuration tools" Off OPTIONS_DEFINE= PERLTOOLS DOCS
PERLTOOLS_DESC= Install perl configuration tools
CONFLICTS?= slony1v2-2* CONFLICTS?= slony1v2-2*
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_PERLTOOLS) .if ${PORT_OPTIONS:MPERLTOOLS}
USE_PERL5= yes USE_PERL5= yes
CONFIGURE_ARGS+= --with-perltools=${LOCALBASE}/sbin CONFIGURE_ARGS+= --with-perltools=${LOCALBASE}/sbin
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
@ -55,7 +56,7 @@ MAN1= slon.1 slonik.1
.endif .endif
post-install: post-install:
.if ! defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR} ${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/adminguide ${MKDIR} ${DOCSDIR}/adminguide
${MKDIR} ${DOCSDIR}/howto ${MKDIR} ${DOCSDIR}/howto
@ -70,4 +71,4 @@ post-install:
@${INSTALL_DATA} ${FILESDIR}/slon.conf-sample ${PREFIX}/etc/ @${INSTALL_DATA} ${FILESDIR}/slon.conf-sample ${PREFIX}/etc/
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: sqlite-ext-mobigroup # Created by: Pavel Volkov <pavelivolkov@googlemail.com>
# Date created: 28 Jul 2010
# Whom: Pavel Volkov <pavelivolkov@googlemail.com>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= sqlite-ext-mobigroup PORTNAME= sqlite-ext-mobigroup
PORTVERSION= 3.7.5.1 PORTVERSION= 3.7.5.1
@ -22,10 +18,11 @@ WRKSRC= ${WRKDIR}/sqlite3-${PORTVERSION:R}
USE_LDCONFIG= ${PREFIX}/libexec/${DIST_SUBDIR} USE_LDCONFIG= ${PREFIX}/libexec/${DIST_SUBDIR}
OPTIONS= COMPRESS "compress content into a blob using libz" off \ OPTIONS_DEFINE= COMPRESS ENV INET MD5 EXAMPLES DOCS
ENV "implements the getenv" off \ COMPRESS_DESC= compress content into a blob using libz
INET "provide the ipv4 functions in SQL queries" on \ ENV_DESC= implements the getenv
MD5 "implements the MD5 message-digest algorithm" off INET_DESC= provide the ipv4 functions in SQL queries
MD5_DESC= implements the MD5 message-digest algorithm
PLIST_DIRS= libexec/${DIST_SUBDIR} PLIST_DIRS= libexec/${DIST_SUBDIR}
PORTDOCS= * PORTDOCS= *
@ -33,74 +30,74 @@ PORTEXAMPLES= *
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.ifdef WITH_COMPRESS .if ${PORT_OPTIONS:MCOMPRESS}
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitecompress.so PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitecompress.so
.endif .endif
.ifdef WITH_INET .if ${PORT_OPTIONS:MINET}
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteipv4.so PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteipv4.so
.endif .endif
.ifdef WITH_ENV .if ${PORT_OPTIONS:MENV}
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteenv.so PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqliteenv.so
.endif .endif
.ifdef WITH_MD5 .if ${PORT_OPTIONS:MMD5}
PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitemd5.so PLIST_FILES+= libexec/${DIST_SUBDIR}/libsqlitemd5.so
.endif .endif
CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared CFLAGS+= -I${PREFIX}/include -fPIC -lm -shared
do-build: do-build:
.ifdef WITH_COMPRESS .if ${PORT_OPTIONS:MCOMPRESS}
@cd ${WRKSRC}/ext/_compress && \ @cd ${WRKSRC}/ext/_compress && \
${CC} -lz ${CFLAGS} compress.c -o libsqlitecompress.so ${CC} -lz ${CFLAGS} compress.c -o libsqlitecompress.so
.endif .endif
.ifdef WITH_INET .if ${PORT_OPTIONS:MINET}
@cd ${WRKSRC}/ext/inet && \ @cd ${WRKSRC}/ext/inet && \
${CC} ${CFLAGS} ipv4-ext.c -o libsqliteipv4.so ${CC} ${CFLAGS} ipv4-ext.c -o libsqliteipv4.so
.endif .endif
.ifdef WITH_ENV .if ${PORT_OPTIONS:MENV}
@cd ${WRKSRC}/ext/env && \ @cd ${WRKSRC}/ext/env && \
${CC} ${CFLAGS} env.c -o libsqliteenv.so ${CC} ${CFLAGS} env.c -o libsqliteenv.so
.endif .endif
.ifdef WITH_MD5 .if ${PORT_OPTIONS:MMD5}
@cd ${WRKSRC}/ext/md5 && \ @cd ${WRKSRC}/ext/md5 && \
${CC} ${CFLAGS} md5.c -o libsqlitemd5.so ${CC} ${CFLAGS} md5.c -o libsqlitemd5.so
.endif .endif
do-install: do-install:
@${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR} @${MKDIR} ${PREFIX}/libexec/${DIST_SUBDIR}
.ifndef NOPORTDOCS .if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} @${MKDIR} ${DOCSDIR}
.endif .endif
.ifndef NOPORTEXAMPLES .if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${EXAMPLESDIR}
.endif .endif
.ifdef WITH_COMPRESS .if ${PORT_OPTIONS:MCOMPRESS}
@${INSTALL_PROGRAM} ${WRKSRC}/ext/_compress/libsqlitecompress.so ${PREFIX}/libexec/${DIST_SUBDIR} @${INSTALL_PROGRAM} ${WRKSRC}/ext/_compress/libsqlitecompress.so ${PREFIX}/libexec/${DIST_SUBDIR}
.endif .endif
.ifdef WITH_INET .if ${PORT_OPTIONS:MINET}
@${INSTALL_PROGRAM} ${WRKSRC}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR} @${INSTALL_PROGRAM} ${WRKSRC}/ext/inet/libsqliteipv4.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS . if ${PORT_OPTIONS:MDOCS}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/inet/ipv4-ext.c > ${WRKSRC}/ext/inet/README-ipv4.txt @${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/inet/ipv4-ext.c > ${WRKSRC}/ext/inet/README-ipv4.txt
@${INSTALL_DATA} ${WRKSRC}/ext/inet/README-ipv4.txt ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/ext/inet/README-ipv4.txt ${DOCSDIR}
. endif . endif
. ifndef NOPORTEXAMPLES . if ${PORT_OPTIONS:MEXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/ext/inet/ipv4-ext.sql ${EXAMPLESDIR}
. endif . endif
.endif .endif
.ifdef WITH_ENV .if ${PORT_OPTIONS:MENV}
@${INSTALL_PROGRAM} ${WRKSRC}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR} @${INSTALL_PROGRAM} ${WRKSRC}/ext/env/libsqliteenv.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS . if ${PORT_OPTIONS:MDOCS}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/env/env.c > ${WRKSRC}/ext/env/README-env.txt @${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/env/env.c > ${WRKSRC}/ext/env/README-env.txt
@${INSTALL_DATA} ${WRKSRC}/ext/env/README-env.txt ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/ext/env/README-env.txt ${DOCSDIR}
. endif . endif
.endif .endif
.ifdef WITH_MD5 .if ${PORT_OPTIONS:MMD5}
@${INSTALL_PROGRAM} ${WRKSRC}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR} @${INSTALL_PROGRAM} ${WRKSRC}/ext/md5/libsqlitemd5.so ${PREFIX}/libexec/${DIST_SUBDIR}
. ifndef NOPORTDOCS . if ${PORT_OPTIONS:MDOCS}
@${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/md5/md5.c > ${WRKSRC}/ext/md5/README-md5.txt @${SED} '/\/\*/d;/\*\//,$$d' ${WRKSRC}/ext/md5/md5.c > ${WRKSRC}/ext/md5/README-md5.txt
@${INSTALL_DATA} ${WRKSRC}/ext/md5/README-md5.txt ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/ext/md5/README-md5.txt ${DOCSDIR}
. endif . endif
. ifndef NOPORTEXAMPLES . if ${PORT_OPTIONS:MEXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/ext/md5/md5.sql ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/ext/md5/md5.sql ${EXAMPLESDIR}
. endif . endif
.endif .endif

View file

@ -17,29 +17,32 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
CONFLICTS= sqlite34-[0-9]* sqlcipher-* CONFLICTS= sqlite34-[0-9]* sqlcipher-*
USE_GNOME= pkgconfig USE_PKGCONFIG= build
USE_LDCONFIG= YES USE_LDCONFIG= YES
GNU_CONFIGURE= YES GNU_CONFIGURE= YES
MAKE_JOBS_UNSAFE= yes MAKE_JOBS_UNSAFE= yes
# Compilation Options For SQLite http://www.sqlite.org/compile.html # Compilation Options For SQLite http://www.sqlite.org/compile.html
OPTIONS= \ OPTIONS_DEFINE= FTS3 ICU RTREE RAMTABLE UPD_DEL_LIMIT URI SOUNDEX METADATA \
FTS3 "Enable FTS3/4 (Full Text Search) module" on \ STAT3 DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADSAFE \
ICU "Enable built with ICU" off \ EXTENSION
RTREE "Enable R*Tree module (${RTREE_INT})" off \ OPTIONS_DEFAULT= FTS3 SECURE_DELETE THREADSAFE EXTENSION
RAMTABLE "Store temporary tables in RAM = ${TEMP_STORE}" off \ FTS3_DESC= Enable FTS3/4 (Full Text Search) module
UPD_DEL_LIMIT "ORDER BY and LIMIT on UPDATE and DELETE" off \ ICU_DESC= Enable built with ICU
URI "Enable use the URI filename" on \ RTREE_DESC= Enable R*Tree module (${RTREE_INT})
SOUNDEX "Enables the soundex() SQL function" off \ RAMTABLE_DESC= Store temporary tables in RAM = ${TEMP_STORE}
METADATA "Enable column metadata" on \ UPD_DEL_LIMIT_DESC= ORDER BY and LIMIT on UPDATE and DELETE
STAT3 "Help SQLite to chose a better query plan" off \ URI_DESC= Enable use the URI filename
DIRECT_READ "File is read directly from disk" off \ SOUNDEX_DESC= Enables the soundex() SQL function
MEMMAN "Allows it to release unused memory" off \ METADATA_DESC= Enable column metadata
SECURE_DELETE "Overwrite deleted information with zeros" on \ STAT3_DESC= Help SQLite to chose a better query plan
UNLOCK_NOTIFY "Enable notification on unlocking" on \ DIRECT_READ_DESC= File is read directly from disk
THREADSAFE "Build thread-safe library" on \ MEMMAN_DESC= Allows it to release unused memory
EXTENSION "Allow loadable extensions" on \ SECURE_DELETE_DESC= Overwrite deleted information with zeros
UNLOCK_NOTIFY_DESC= Enable notification on unlocking
THREADSAFE_DESC= Build thread-safe library
EXTENSION_DESC= Allow loadable extensions
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -55,7 +58,7 @@ MAN1= sqlite3.1
# Some devices are compelled to use an older file system with 8+3 filename # Some devices are compelled to use an older file system with 8+3 filename
# restrictions for backwards compatibility, or due to other non-technical factors. # restrictions for backwards compatibility, or due to other non-technical factors.
# http://www.sqlite.org/shortnames.html # http://www.sqlite.org/shortnames.html
.if defined(WITH_NAME83) .if ${PORT_OPTIONS:MNAME83}
CPPFLAGS+= -DSQLITE_ENABLE_8_3_NAMES=1 CPPFLAGS+= -DSQLITE_ENABLE_8_3_NAMES=1
.endif .endif
@ -72,35 +75,35 @@ CPPFLAGS+= -DSQLITE_DEFAULT_FILE_PERMISSIONS=${DEFAULT_FILE_PERMISSIONS}
CPPFLAGS+= -DSQLITE_DEFAULT_TEMP_CACHE_SIZE=${TEMP_CACHE_SIZE} CPPFLAGS+= -DSQLITE_DEFAULT_TEMP_CACHE_SIZE=${TEMP_CACHE_SIZE}
.endif .endif
.if defined(WITH_MEMMAN) .if ${PORT_OPTIONS:MMEMMAN}
CPPFLAGS+= -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 CPPFLAGS+= -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1
.endif .endif
.if defined(WITH_UPD_DEL_LIMIT) .if ${PORT_OPTIONS:MUPD_DEL_LIMIT}
CPPFLAGS+= -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 CPPFLAGS+= -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1
.endif .endif
.if defined(WITH_URI) .if ${PORT_OPTIONS:MURI}
CPPFLAGS+= -DSQLITE_USE_URI=1 CPPFLAGS+= -DSQLITE_USE_URI=1
.endif .endif
.if defined(WITH_SOUNDEX) .if ${PORT_OPTIONS:MSOUNDEX}
CPPFLAGS+= -DSQLITE_SOUNDEX=1 CPPFLAGS+= -DSQLITE_SOUNDEX=1
.endif .endif
.if defined(WITH_STAT3) .if ${PORT_OPTIONS:MSTAT3}
CPPFLAGS+= -DSQLITE_ENABLE_STAT3=1 CPPFLAGS+= -DSQLITE_ENABLE_STAT3=1
.endif .endif
.if defined(WITH_DIRECT_READ) .if ${PORT_OPTIONS:MDIRECT_READ}
CPPFLAGS+= -DSQLITE_DIRECT_OVERFLOW_READ=1 CPPFLAGS+= -DSQLITE_DIRECT_OVERFLOW_READ=1
.endif .endif
.if defined(WITH_FTS3) .if ${PORT_OPTIONS:MFTS3}
CPPFLAGS+= -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS4=1 CPPFLAGS+= -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS4=1
.endif .endif
.if defined(WITH_RTREE) .if ${PORT_OPTIONS:MRTREE}
CPPFLAGS+= -DSQLITE_ENABLE_RTREE=1 CPPFLAGS+= -DSQLITE_ENABLE_RTREE=1
.ifdef RTREE_INT .ifdef RTREE_INT
CPPFLAGS+= -DSQLITE_RTREE_INT_ONLY=1 CPPFLAGS+= -DSQLITE_RTREE_INT_ONLY=1
@ -110,7 +113,7 @@ RTREE_INT= "float"
.endif .endif
.endif .endif
.if defined(WITH_ICU) .if ${PORT_OPTIONS:MICU}
BUILD_DEPENDS+= ${LOCALBASE}/bin/icu-config:${PORTSDIR}/devel/icu BUILD_DEPENDS+= ${LOCALBASE}/bin/icu-config:${PORTSDIR}/devel/icu
LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu LIB_DEPENDS+= icudata:${PORTSDIR}/devel/icu
CPPFLAGS+= -DSQLITE_ENABLE_ICU=1 CPPFLAGS+= -DSQLITE_ENABLE_ICU=1
@ -120,41 +123,39 @@ LDFLAGS+= `${LOCALBASE}/bin/icu-config --ldflags`
# Use an in-ram database for temporary tables (never,no,yes,always), # Use an in-ram database for temporary tables (never,no,yes,always),
# which is equivalent of TEMP_STORE=[0,1,2,3], default = 1. # which is equivalent of TEMP_STORE=[0,1,2,3], default = 1.
.if defined(WITH_RAMTABLE) .if ${PORT_OPTIONS:MRAMTABLE}
TEMP_STORE?= 2 TEMP_STORE?= 2
CPPFLAGS+= -DSQLITE_TEMP_STORE=${TEMP_STORE} CPPFLAGS+= -DSQLITE_TEMP_STORE=${TEMP_STORE}
.endif .endif
.if defined(WITH_SECURE_DELETE) .if ${PORT_OPTIONS:MSECURE_DELETE}
CPPFLAGS+= -DSQLITE_SECURE_DELETE=1 CPPFLAGS+= -DSQLITE_SECURE_DELETE=1
.endif .endif
.if defined(WITH_UNLOCK_NOTIFY) .if ${PORT_OPTIONS:MUNLOCK_NOTIFY}
CPPFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 CPPFLAGS+= -DSQLITE_ENABLE_UNLOCK_NOTIFY=1
.endif .endif
.if !defined(WITHOUT_METADATA) .if ${PORT_OPTIONS:MMETADATA}
CPPFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1 CPPFLAGS+= -DSQLITE_ENABLE_COLUMN_METADATA=1
.endif .endif
.if !defined(WITHOUT_THREADSAFE) .if ${PORT_OPTIONS:MTHREADSAFE}
CONFIGURE_ARGS+= --enable-threadsafe CONFIGURE_ARGS+= --enable-threadsafe
LDFLAGS+= ${PTHREAD_LIBS} LDFLAGS+= ${PTHREAD_LIBS}
.else .else
CONFIGURE_ARGS+= --disable-threadsafe CONFIGURE_ARGS+= --disable-threadsafe
.endif .endif
.if !defined(WITHOUT_EXTENSION) .if ${PORT_OPTIONS:MEXTENSION}
CONFIGURE_ARGS+= --enable-dynamic-extensions CONFIGURE_ARGS+= --enable-dynamic-extensions
.else .else
CONFIGURE_ARGS+= --disable-dynamic-extensions CONFIGURE_ARGS+= --disable-dynamic-extensions
.endif .endif
.include <bsd.port.pre.mk>
post-install: post-install:
.if !defined(NO_INSTALL_MANPAGES) .if !defined(NO_INSTALL_MANPAGES)
@${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1 @${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: SQL Relay # Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# Date created: 2 July 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= ${SQLRELAY_PORTNAME} PORTNAME= ${SQLRELAY_PORTNAME}
PORTVERSION= ${SQLRELAY_PORTVERSION} PORTVERSION= ${SQLRELAY_PORTVERSION}
@ -36,18 +32,13 @@ PORTDOCS= *
.include "${.CURDIR}/Makefile.common" .include "${.CURDIR}/Makefile.common"
OPTIONS= MSQL "Build MSQL connection" off \ OPTIONS_DEFINE= MSQL MYSQL ODBC PGSQL SQLITE2 FREETDS INTERBASE GTK1 DOCS
MYSQL "Build MySQL connection" off \ SQLITE2_DESC= SQLite 2 database
ODBC "Build ODBC connection" off \ INTERBASE_DESC= Interbase database
POSTGRESQL "Build PostgreSQL connection" off \
SQLITE "Build SQLite connection" off \
FREETDS "Build FreeTDS connection" off \
INTERBASE "Build Interbase connection" off \
GTK "Build GTK configuration tool" off
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_SQLITE) && ${WITH_SQLITE:L} != no .if ${PORT_OPTIONS:MSQLITE2}
LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm \ LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm \
sqlite.2:${PORTSDIR}/databases/sqlite2 sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_ARGS+= --with-gdbm-prefix="${LOCALBASE}" \ CONFIGURE_ARGS+= --with-gdbm-prefix="${LOCALBASE}" \
@ -59,7 +50,7 @@ CONFIGURE_ARGS+= --without-gdbm-prefix \
IF_SQLITE= "@comment " IF_SQLITE= "@comment "
.endif .endif
.if defined(WITH_MYSQL) && ${WITH_MYSQL:L} != no .if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-mysql-prefix="${LOCALBASE}"
IF_MYSQL= "" IF_MYSQL= ""
@ -68,7 +59,7 @@ CONFIGURE_ARGS+= --disable-mysql
IF_MYSQL= "@comment " IF_MYSQL= "@comment "
.endif .endif
.if defined(WITH_INTERBASE) && ${WITH_INTERBASE:L} != no .if ${PORT_OPTIONS:MINTERBASE}
USE_FIREBIRD= yes USE_FIREBIRD= yes
CONFIGURE_ARGS+= --with-interbase-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-interbase-prefix="${LOCALBASE}"
IF_INTERBASE= "" IF_INTERBASE= ""
@ -77,7 +68,7 @@ CONFIGURE_ARGS+= --disable-interbase
IF_INTERBASE= "@comment " IF_INTERBASE= "@comment "
.endif .endif
.if defined(WITH_MSQL) && ${WITH_MSQL:L} != no .if ${PORT_OPTIONS:MMSQL}
LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql LIB_DEPENDS+= msql.1:${PORTSDIR}/databases/msql
CONFIGURE_ARGS+= --with-msql-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-msql-prefix="${LOCALBASE}"
IF_MSQL= "" IF_MSQL= ""
@ -86,7 +77,7 @@ CONFIGURE_ARGS+= --disable-msql
IF_MSQL= "@comment " IF_MSQL= "@comment "
.endif .endif
.if defined(WITH_POSTGRESQL) && ${WITH_POSTGRESQL:L} != no .if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes USE_PGSQL= yes
CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}"
IF_POSTGRESQL= "" IF_POSTGRESQL= ""
@ -95,7 +86,7 @@ CONFIGURE_ARGS+= --disable-postgresql
IF_POSTGRESQL= "@comment " IF_POSTGRESQL= "@comment "
.endif .endif
.if defined(WITH_[BODBC) && ${WITH_ODBC:L} != no .if ${PORT_OPTIONS:MODBC}
LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+= --with-odbc-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-odbc-prefix="${LOCALBASE}"
IF_ODBC= "" IF_ODBC= ""
@ -104,7 +95,7 @@ CONFIGURE_ARGS+= --disable-odbc
IF_ODBC= "@comment " IF_ODBC= "@comment "
.endif .endif
.if defined(WITH_FREETDS) && ${WITH_FREETDS:L} != no .if ${PORT_OPTIONS:MFREETDS}
LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds LIB_DEPENDS+= tds.5:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+= --with-freetds-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-freetds-prefix="${LOCALBASE}"
IF_FREETDS= "" IF_FREETDS= ""
@ -113,7 +104,7 @@ CONFIGURE_ARGS+= --disable-freetds
IF_FREETDS= "@comment " IF_FREETDS= "@comment "
.endif .endif
.if defined(WITH_GTK) && ${WITH_GTK:L} != no .if ${PORT_OPTIONS:MGTK1}
USE_GNOME+= gtk12 USE_GNOME+= gtk12
CONFIGURE_ARGS+= --with-gtk-prefix="${LOCALBASE}" CONFIGURE_ARGS+= --with-gtk-prefix="${LOCALBASE}"
IF_GTK= "" IF_GTK= ""
@ -147,8 +138,8 @@ post-patch:
@${REINPLACE_CMD} -e '/EXAMPLEDIR/d' ${WRKSRC}/etc/Makefile @${REINPLACE_CMD} -e '/EXAMPLEDIR/d' ${WRKSRC}/etc/Makefile
${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \ ${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \
-e 's#-release \$$\(SQLR_VERSION\)##g;' -e 's#-release \$$\(SQLR_VERSION\)##g;'
.ifdef NOPORTDOCS .if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} '/$$(MAKE) -C doc/d' ${WRKSRC}/Makefile @${REINPLACE_CMD} '/$$(MAKE) -C doc/d' ${WRKSRC}/Makefile
.endif .endif
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -27,7 +27,8 @@ MAKE_JOBS_SAFE= yes
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;} PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
OPTIONS= PYTHON "Python bindings" on OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
@ -58,7 +59,7 @@ _MAKE_JOBS= --jobs=${MAKE_JOBS_NUMBER}
.endif .endif
.endif .endif
.if defined(WITH_PYTHON) .if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON_RUN= yes USE_PYTHON_RUN= yes
PLIST_FILES+= %%PYTHON_SITELIBDIR%%/tdb.so PLIST_FILES+= %%PYTHON_SITELIBDIR%%/tdb.so
PLIST_DIRSTRY+= %%PYTHON_SITELIBDIR%% \ PLIST_DIRSTRY+= %%PYTHON_SITELIBDIR%% \

View file

@ -1,5 +1,5 @@
# $FreeBSD$
# Created by: Gea-Suan Lin <gslin@gslin.org> # Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= tokyocabinet PORTNAME= tokyocabinet
PORTVERSION= 1.4.48 PORTVERSION= 1.4.48
@ -17,9 +17,6 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes USE_GMAKE= yes
USE_LDCONFIG= yes USE_LDCONFIG= yes
.if defined(NOPORTDOCS)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.in
.endif
MAN1= tcamgr.1 tcamttest.1 tcatest.1 tcbmgr.1 tcbmttest.1 tcbtest.1 \ MAN1= tcamgr.1 tcamttest.1 tcatest.1 tcbmgr.1 tcbmttest.1 tcbtest.1 \
tcfmgr.1 tcfmttest.1 tcftest.1 \ tcfmgr.1 tcfmttest.1 tcftest.1 \
@ -29,54 +26,61 @@ MAN3= tcadb.3 tcbdb.3 tcfdb.3 tchdb.3 tclist.3 tcmap.3 \
tcmdb.3 tcmpool.3 tcutil.3 tcxstr.3 tokyocabinet.3 tctree.3 \ tcmdb.3 tcmpool.3 tcutil.3 tcxstr.3 tokyocabinet.3 tctree.3 \
tctdb.3 tctdb.3
OPTIONS= DEBUG "Debugging support" off \ OPTIONS_DEFINE= DEBUG DEVEL FASTEST LZMA LZO PTHREAD PROFILE SHARED SWAB UYIELD DOCS
DEVEL "Development build" off \ OPTIONS_DEFAULT= PTHREAD SHARED
FASTEST "Fastest run" off \ DEBUG_DESC= Debugging support
LZMA "Enable LZMA codec" off \ DEVEL_DESC= Development build
LZO "Enable LZO codec" off \ FASTEST_DESC= Fastest run
PTHREAD "Enable POSIX thread support" on \ LZMA_DESC= LZMA codec
PROFILE "Profiling build" off \ LZO_DESC= LZO codec
SHARED "Shared build" on \ PTHREAD_DESC= Enable POSIX thread support
SWAB "Swapping byte-orders build" off \ PROFILE_DESC= Profiling build
UYIELD "Detecting race conditions" off SHARED_DESC= Shared build
SWAB_DESC= Swapping byte-orders build
UYIELD_DESC= Detecting race conditions
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MDOCS}
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile.in
PORTDOCS= * PORTDOCS= *
.endif .endif
.if defined(WITH_DEBUG) .if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug CONFIGURE_ARGS+= --enable-debug
.endif .endif
.if defined(WITH_DEVEL) .if ${PORT_OPTIONS:MDEVEL}
CONFIGURE_ARGS+= --enable-devel CONFIGURE_ARGS+= --enable-devel
.endif .endif
.if defined(WITH_FASTEST) .if ${PORT_OPTIONS:MFASTEST}
CONFIGURE_ARGS+= --enable-fastest CONFIGURE_ARGS+= --enable-fastest
.endif .endif
# liblzma on 9-current does not have liblzma.h file. # liblzma on 9-current does not have liblzma.h file.
.if defined(WITH_LZMA) || exists(${LOCALBASE}/include/liblzma.h) .if ${PORT_OPTIONS:MLZMA}
CONFIGURE_ARGS+= --enable-exlzma CONFIGURE_ARGS+= --enable-exlzma
LIB_DEPENDS+= lzma:${PORTSDIR}/archivers/lzmalib LIB_DEPENDS+= lzma:${PORTSDIR}/archivers/lzmalib
.else
CONFIGURE_ARGS+= --disable-exlzma
.endif .endif
.if defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so) .if ${PORT_OPTIONS:MLZO}
CONFIGURE_ARGS+= --enable-exlzo CONFIGURE_ARGS+= --enable-exlzo
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
.else
CONFIGURE_ARGS+= --disable-exlzo
.endif .endif
.if defined(WITHOUT_PTHREAD) .if ! ${PORT_OPTIONS:MPTHREAD}
CONFIGURE_ARGS+= --disable-pthread CONFIGURE_ARGS+= --disable-pthread
.endif .endif
.if defined(WITH_PROFILE) .if ${PORT_OPTIONS:MPROFILE}
CONFIGURE_ARGS+= --enable-profile CONFIGURE_ARGS+= --enable-profile
.endif .endif
.if defined(WITHOUT_SHARED) .if ! ${PORT_OPTIONS:MSHARED}
CONFIGURE_ARGS+= --disable-shared CONFIGURE_ARGS+= --disable-shared
.endif .endif
.if defined(WITH_SWAB) .if ${PORT_OPTIONS:MSWAB}
CONFIGURE_ARGS+= --enable-swab CONFIGURE_ARGS+= --enable-swab
.endif .endif
.if defined(WITH_UYIELD) .if ${PORT_OPTIONS:MUYIELD}
CONFIGURE_ARGS+= --enable-uyield CONFIGURE_ARGS+= --enable-uyield
.endif .endif
@ -92,4 +96,4 @@ post-patch:
-e 's|@datarootdir@|@datarootdir@/doc|' \ -e 's|@datarootdir@|@datarootdir@/doc|' \
${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: tokyotyrant # Created by: Gea-Suan Lin <gslin@gslin.org>
# Date created: 2009-03-09
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= tokyotyrant PORTNAME= tokyotyrant
PORTVERSION= 1.1.41 PORTVERSION= 1.1.41
@ -25,14 +21,14 @@ MAN1= tcrmgr.1 tcrmttest.1 tcrtest.1 ttserver.1 ttulmgr.1 ttultest.1
MAN3= tcrdb.3 tculog.3 ttutil.3 MAN3= tcrdb.3 tculog.3 ttutil.3
MAN8= ttservctl.8 MAN8= ttservctl.8
OPTIONS= LUA "Enable LUA support" off OPTIONS_DEFINE= LUA
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include CFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_LUA) .if ${PORT_OPTIONS:MLUA}
CONFIGURE_ARGS+= --enable-lua CONFIGURE_ARGS+= --enable-lua
LDFLAGS+= -L${LUA_LIBDIR} LDFLAGS+= -L${LUA_LIBDIR}
CFLAGS+= -I${LUA_INCDIR} CFLAGS+= -I${LUA_INCDIR}
@ -47,4 +43,4 @@ post-patch:
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' \ ${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in
.include <bsd.port.post.mk> .include <bsd.port.mk>

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: virtuoso # Created by: Max Khon <fjoe@FreeBSD.org>
# Date created: Jul 08, 2006
# Whom: Max Khon <fjoe@FreeBSD.org>
#
# $FreeBSD$ # $FreeBSD$
#
PORTNAME= virtuoso PORTNAME= virtuoso
PORTVERSION= 6.1.6 PORTVERSION= 6.1.6
@ -47,9 +43,7 @@ GROUPS= virtuoso
CHECK_PORT= /usr/bin/nc -z localhost $$\1 2>\&1 CHECK_PORT= /usr/bin/nc -z localhost $$\1 2>\&1
OPTIONS= IMAGEMAGICK "ImageMagick support" off\ OPTIONS_DEFINE= IMAGEMAGICK KERBEROS LDAP
KERBEROS "Kerberos extension" off\
OPENLDAP "OpenLDAP support" off
# PERL "Perl hosting" off # PERL "Perl hosting" off
# PYTHON "Python hosting" off # PYTHON "Python hosting" off
# MONO "Mono extension" off\ # MONO "Mono extension" off\
@ -73,9 +67,9 @@ post-install:
check: check:
${SETENV} -u HOST ${MAKE_ENV} ${MAKE} -C ${WRKSRC} check ${SETENV} -u HOST ${MAKE_ENV} ${MAKE} -C ${WRKSRC} check
.include <bsd.port.pre.mk> .include <bsd.port.options.mk>
.if defined(WITH_IMAGEMAGICK) .if ${PORT_OPTIONS:MIMAGEMAGICK}
CONFIGURE_ARGS+=--enable-imagemagick=${LOCALBASE} CONFIGURE_ARGS+=--enable-imagemagick=${LOCALBASE}
LIB_DEPENDS+= MagickWand:${PORTSDIR}/graphics/ImageMagick LIB_DEPENDS+= MagickWand:${PORTSDIR}/graphics/ImageMagick
PLIST_SUB+= WITH_IMAGEMAGICK="" PLIST_SUB+= WITH_IMAGEMAGICK=""
@ -84,47 +78,47 @@ CONFIGURE_ARGS+=--disable-imagemagick
PLIST_SUB+= WITH_IMAGEMAGICK="@comment " PLIST_SUB+= WITH_IMAGEMAGICK="@comment "
.endif .endif
.if defined(WITH_KERBEROS) .if ${PORT_OPTIONS:MKERBEROS}
CONFIGURE_ARGS+=--enable-krb=${LOCALBASE} CONFIGURE_ARGS+=--enable-krb=${LOCALBASE}
LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5 LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5
.endif .endif
# XXX broken (does not build, requires gc.h) # XXX broken (does not build, requires gc.h)
#.if defined(WITH_MONO) #.if ${PORT_OPTIONS:MMONO}
#CONFIGURE_ARGS+=--enable-mono #CONFIGURE_ARGS+=--enable-mono
#.endif #.endif
.if defined(WITH_OPENLDAP) .if ${PORT_OPTIONS:MOPENLDAP}
CONFIGURE_ARGS+=--enable-openldap=${LOCALBASE} CONFIGURE_ARGS+=--enable-openldap=${LOCALBASE}
USE_OPENLDAP= yes USE_OPENLDAP= yes
.endif .endif
# XXX broken (requires perl to be built with -Dusemultiplicity) # XXX broken (requires perl to be built with -Dusemultiplicity)
#.if defined(WITH_PERL) #.if ${PORT_OPTIONS:MPERL}
#CONFIGURE_ARGS+=--enable-perl #CONFIGURE_ARGS+=--enable-perl
#USE_PERL5= yes #USE_PERL5= yes
#.endif #.endif
# XXX broken (no libphp) # XXX broken (no libphp)
#.if defined(WITH_PHP4) #.if ${PORT_OPTIONS:MPHP4}
#CONFIGURE_ARGS+=--enable-php4 #CONFIGURE_ARGS+=--enable-php4
#.endif #.endif
# XXX broken (no libphp) # XXX broken (no libphp)
#.if defined(WITH_PHP5) #.if ${PORT_OPTIONS:MPHP5}
#CONFIGURE_ARGS+=--enable-php5 #CONFIGURE_ARGS+=--enable-php5
#.endif #.endif
# XXX broken (USE_PYTHON does not work with OPTIONS) # XXX broken (USE_PYTHON does not work with OPTIONS)
#.if defined(WITH_PYTHON) #.if ${PORT_OPTIONS:MPYTHON}
#CONFIGURE_ARGS+=--enable-python #CONFIGURE_ARGS+=--enable-python
#USE_PYTHON= yes #USE_PYTHON= yes
#.endif #.endif
# XXX broken (USE_LIBRUBY does not work with OPTIONS) # XXX broken (USE_LIBRUBY does not work with OPTIONS)
#.if defined(WITH_RUBY) #.if ${PORT_OPTIONS:MRUBY}
#CONFIGURE_ARGS+=--enable-ruby #CONFIGURE_ARGS+=--enable-ruby
#USE_LIBRUBY= yes #USE_LIBRUBY= yes
#.endif #.endif
.include <bsd.port.post.mk> .include <bsd.port.mk>