diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2013-06-11 08:15:22 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2013-06-11 08:15:22 +0000 |
commit | 55cd3804fa2b7654b02d51e6c60b4b12db88008c (patch) | |
tree | 705289a46d50fa4a67aed64b0af675b7660fba4b /databases/db6 | |
parent | f5fe5190d30224ab570f8a38d54e959b6e2b3c0a (diff) | |
download | ports-55cd3804fa2b7654b02d51e6c60b4b12db88008c.tar.gz ports-55cd3804fa2b7654b02d51e6c60b4b12db88008c.zip |
Notes
Diffstat (limited to 'databases/db6')
-rw-r--r-- | databases/db6/Makefile | 110 | ||||
-rw-r--r-- | databases/db6/distinfo | 2 | ||||
-rw-r--r-- | databases/db6/pkg-descr | 14 | ||||
-rw-r--r-- | databases/db6/pkg-plist | 88 |
4 files changed, 214 insertions, 0 deletions
diff --git a/databases/db6/Makefile b/databases/db6/Makefile new file mode 100644 index 000000000000..db9e66eb1463 --- /dev/null +++ b/databases/db6/Makefile @@ -0,0 +1,110 @@ +# Created by: Matthias Andree <mandree@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= db6 +PORTVERSION= 6.0.19.0 +CATEGORIES= databases java +MASTER_SITES= http://download.oracle.com/berkeley-db/ +PKGNAMEPREFIX?= +# the distfiles aren't named db6-* but db-*: +DISTNAME= db-${PORTVERSION:R} +DIST_SUBDIR= bdb + +MAINTAINER= mandree@FreeBSD.org +COMMENT= The Oracle Berkeley DB, revision ${BDBVER} + +LICENSE= AGPLv3 + +BDBVER= ${PORTVERSION:R:R} +BDBMAJ= ${BDBVER:R} +CONFIGURE_ARGS= --enable-cxx --enable-stl \ + --disable-tcl \ + --includedir=${PREFIX}/include/${PORTNAME} \ + --libdir=${PREFIX}/lib/${PORTNAME} \ + --bindir=${PREFIX}/bin/${PORTNAME} +CONFIGURE_SCRIPT= ../dist/configure +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes +USE_GMAKE= yes +INSTALL_TARGET= install_include install_lib install_utilities +LIBTOOLFILES= ${CONFIGURE_SCRIPT} +WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix +USE_LDCONFIG= yes +PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER} +MAKE_ARGS+= docdir=${DOCSDIR} + +OPTIONS_DEFINE= CRYPTO L10N SQL JAVA +OPTIONS_DEFAULT=CRYPTO +CRYPTO_DESC= Cryptography support +L10N_DESC= Localization support (EXPERIMENTAL) +SQL_DESC= Enable SQL API (EXPERIMENTAL) + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} +INSTALL_TARGET+=install_docs +PORTDOCS= * +.endif + +.if ${PORT_OPTIONS:MSQL} +CONFIGURE_ARGS+= --enable-sql_codegen --enable-sql +PLIST_SUB+= SQL="" +libdb_sql= libdb_sql +.else +PLIST_SUB+= SQL="@comment " +libdb_sql= +.endif + +.if ${PORT_OPTIONS:MJAVA} +USE_JAVA= yes +JAVA_VERSION= 1.6+ +CONFIGURE_ARGS+= --enable-java +CPPFLAGS+= "-I${JAVA_HOME}/include" +CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" +PLIST_SUB+= JAVA="" +libdb_java= libdb_java +.else +PLIST_SUB+= JAVA="@comment " +libdb_java= +.endif + +.if ${PORT_OPTIONS:MCRYPTO} +CONFIGURE_ARGS+= --with-cryptography=yes +.else +CONFIGURE_ARGS+= --with-cryptography=no +.endif + +.if ${PORT_OPTIONS:ML10N} +CONFIGURE_ARGS+= --enable-localization +.endif + +.if ${PORT_OPTIONS:MDEBUG} +CONFIGURE_ARGS+= --enable-debug --enable-umrw +.endif + +post-patch: + ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' ${WRKSRC}/../dist/Makefile.in + +post-install: +.for i in libdb libdb_cxx libdb_stl ${libdb_sql} ${libdb_java} + ${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so ${PREFIX}/lib + ${LN} -s -f ${i}-${BDBVER}.a ${PREFIX}/lib/${PORTNAME}/${i}.a +.endfor + cd ${PREFIX}/bin/${PORTNAME}; \ + for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done +.if ${PORT_OPTIONS:MDOCS} +.for i in api_reference/TCL + ${RM} -r -f ${DOCSDIR}/${i} +.endfor +.if empty(PORT_OPTIONS:MJAVA) + ${RM} -r -f ${DOCSDIR}/java +.for i in gsg gsg_db_rep gsg_txn + ${RM} -r -f ${DOCSDIR}/${i}/JAVA +.endfor +.endif +.if empty(PORT_OPTIONS:MSQL) + ${RM} -r -f ${DOCSDIR}/bdb-sql +.endif +.endif + +.include <bsd.port.mk> diff --git a/databases/db6/distinfo b/databases/db6/distinfo new file mode 100644 index 000000000000..9de59bcbe49c --- /dev/null +++ b/databases/db6/distinfo @@ -0,0 +1,2 @@ +SHA256 (bdb/db-6.0.19.tar.gz) = 2917c28f60903908c2ca4587ded1363b812c4e830a5326aaa77c9879d13ae18e +SIZE (bdb/db-6.0.19.tar.gz) = 36541923 diff --git a/databases/db6/pkg-descr b/databases/db6/pkg-descr new file mode 100644 index 000000000000..5a07be1d25f2 --- /dev/null +++ b/databases/db6/pkg-descr @@ -0,0 +1,14 @@ +Oracle Berkeley DB is a family of open source embeddable databases +that allows developers to incorporate within their applications a +fast, scalable, transactional database engine with industrial grade +reliability and availability. As a result, customers and end-users +will experience an application that simply works, reliably manages +data, can scale under extreme load, but requires no ongoing database +administration. As a developer, you can focus on your application and +be confident that Oracle Berkeley DB will manage your persistence +needs. + +Note that Berkeley DB 6 changed license to the +Affero GNU General Public License v3 (AGPL v3). + +WWW: http://www.oracle.com/us/products/database/berkeley-db/db/ diff --git a/databases/db6/pkg-plist b/databases/db6/pkg-plist new file mode 100644 index 000000000000..b795c67d4098 --- /dev/null +++ b/databases/db6/pkg-plist @@ -0,0 +1,88 @@ +bin/db%%BDBMAJ%%/db_archive +bin/db%%BDBMAJ%%/db_checkpoint +bin/db%%BDBMAJ%%/db_deadlock +bin/db%%BDBMAJ%%/db_dump +bin/db%%BDBMAJ%%/db_hotbackup +bin/db%%BDBMAJ%%/db_load +bin/db%%BDBMAJ%%/db_log_verify +bin/db%%BDBMAJ%%/db_printlog +bin/db%%BDBMAJ%%/db_recover +bin/db%%BDBMAJ%%/db_replicate +%%SQL%%bin/db%%BDBMAJ%%/db_sql_codegen +bin/db%%BDBMAJ%%/db_stat +bin/db%%BDBMAJ%%/db_tuner +bin/db%%BDBMAJ%%/db_upgrade +bin/db%%BDBMAJ%%/db_verify +%%SQL%%bin/db%%BDBMAJ%%/dbsql +bin/db_archive-%%BDBVER%% +bin/db_checkpoint-%%BDBVER%% +bin/db_deadlock-%%BDBVER%% +bin/db_dump-%%BDBVER%% +bin/db_hotbackup-%%BDBVER%% +bin/db_load-%%BDBVER%% +bin/db_log_verify-%%BDBVER%% +bin/db_printlog-%%BDBVER%% +bin/db_recover-%%BDBVER%% +bin/db_replicate-%%BDBVER%% +%%SQL%%bin/db_sql_codegen-%%BDBVER%% +bin/db_stat-%%BDBVER%% +bin/db_tuner-%%BDBVER%% +bin/db_upgrade-%%BDBVER%% +bin/db_verify-%%BDBVER%% +%%SQL%%bin/dbsql-%%BDBVER%% +include/db%%BDBMAJ%%/db.h +include/db%%BDBMAJ%%/db_cxx.h +%%SQL%%include/db%%BDBMAJ%%/dbsql.h +include/db%%BDBMAJ%%/dbstl_base_iterator.h +include/db%%BDBMAJ%%/dbstl_common.h +include/db%%BDBMAJ%%/dbstl_container.h +include/db%%BDBMAJ%%/dbstl_dbc.h +include/db%%BDBMAJ%%/dbstl_dbt.h +include/db%%BDBMAJ%%/dbstl_element_ref.h +include/db%%BDBMAJ%%/dbstl_exception.h +include/db%%BDBMAJ%%/dbstl_inner_utility.h +include/db%%BDBMAJ%%/dbstl_map.h +include/db%%BDBMAJ%%/dbstl_resource_manager.h +include/db%%BDBMAJ%%/dbstl_set.h +include/db%%BDBMAJ%%/dbstl_utility.h +include/db%%BDBMAJ%%/dbstl_vector.h +%%JAVA%%lib/db%%BDBMAJ%%/db.jar +lib/db%%BDBMAJ%%/libdb-%%BDBVER%%.a +lib/db%%BDBMAJ%%/libdb-%%BDBVER%%.la +lib/db%%BDBMAJ%%/libdb-%%BDBVER%%.so +lib/db%%BDBMAJ%%/libdb-%%BDBMAJ%%.so +lib/db%%BDBMAJ%%/libdb.a +lib/db%%BDBMAJ%%/libdb.so +lib/db%%BDBMAJ%%/libdb_cxx-%%BDBVER%%.a +lib/db%%BDBMAJ%%/libdb_cxx-%%BDBVER%%.la +lib/db%%BDBMAJ%%/libdb_cxx-%%BDBVER%%.so +lib/db%%BDBMAJ%%/libdb_cxx-%%BDBMAJ%%.so +lib/db%%BDBMAJ%%/libdb_cxx.a +lib/db%%BDBMAJ%%/libdb_cxx.so +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java-%%BDBVER%%.a +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java-%%BDBVER%%.la +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java-%%BDBVER%%.so +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java-%%BDBVER%%_g.so +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java.a +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java.so +%%JAVA%%lib/db%%BDBMAJ%%/libdb_java-%%BDBMAJ%%.so +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql-%%BDBVER%%.a +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql-%%BDBVER%%.la +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql-%%BDBVER%%.so +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql.a +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql.so +%%SQL%%lib/db%%BDBMAJ%%/libdb_sql-%%BDBMAJ%%.so +lib/db%%BDBMAJ%%/libdb_stl-%%BDBVER%%.a +lib/db%%BDBMAJ%%/libdb_stl-%%BDBVER%%.la +lib/db%%BDBMAJ%%/libdb_stl-%%BDBVER%%.so +lib/db%%BDBMAJ%%/libdb_stl-%%BDBMAJ%%.so +lib/db%%BDBMAJ%%/libdb_stl.a +lib/db%%BDBMAJ%%/libdb_stl.so +lib/libdb-%%BDBVER%%.so +lib/libdb_cxx-%%BDBVER%%.so +%%JAVA%%lib/libdb_java-%%BDBVER%%.so +%%SQL%%lib/libdb_sql-%%BDBVER%%.so +lib/libdb_stl-%%BDBVER%%.so +@dirrm lib/db%%BDBMAJ%% +@dirrm include/db%%BDBMAJ%% +@dirrm bin/db%%BDBMAJ%% |