Lines 1-25
Link Here
|
1 |
# Created by: Matthias Andree <mandree@FreeBSD.org> |
1 |
# Created by: Matthias Andree <mandree@FreeBSD.org> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= db6 |
4 |
PORTNAME= db18 |
5 |
PORTVERSION= 6.2.32 |
5 |
PORTVERSION= 18.1.40 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= databases java |
6 |
CATEGORIES= databases java |
8 |
MASTER_SITES= https://download.oracle.com/berkeley-db/ |
7 |
MASTER_SITES= https://github.com/yasuhirokimura/${PORTNAME}/releases/download/${PORTVERSION}/ |
9 |
PKGNAMEPREFIX?= |
8 |
PKGNAMEPREFIX?= |
10 |
# |
9 |
# |
11 |
# the distfiles aren't named db6-* but db-*: |
10 |
# the distfiles aren't named db18-* but db-*: |
12 |
DISTNAME= db-${PORTVERSION} |
11 |
DISTNAME= db-${PORTVERSION} |
13 |
DIST_SUBDIR= bdb |
12 |
DIST_SUBDIR= bdb |
14 |
|
13 |
|
15 |
DEPRECATED= latest 6.2.x version and newer not downloadable without registration |
14 |
MAINTAINER= yasu@utahime.org |
16 |
EXPIRATION_DATE=2020-12-02 |
15 |
COMMENT= Oracle Berkeley DB, Release ${BDBVER} |
17 |
|
16 |
|
18 |
MAINTAINER= mandree@FreeBSD.org |
17 |
LICENSE= AGPLv3 BSD3CLAUSE UPL10 |
19 |
COMMENT= Oracle Berkeley DB, revision ${BDBVER} |
18 |
LICENSE_COMB= multi |
20 |
|
19 |
LICENSE_NAME_UPL10= The Universal Permissive License (UPL), Version 1.0 |
21 |
LICENSE= AGPLv3 |
|
|
22 |
LICENSE_FILE= ${WRKSRC}/../LICENSE |
20 |
LICENSE_FILE= ${WRKSRC}/../LICENSE |
|
|
21 |
LICENSE_FILE_UPL10= ${WRKSRC}/../EXAMPLES-LICENSE |
22 |
LICENSE_PERMS_UPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
23 |
|
23 |
|
24 |
BROKEN_mips64= no usable MUTEX implementation, assy works only for MIPS32, POSIX mutexes are unshared |
24 |
BROKEN_mips64= no usable MUTEX implementation, assy works only for MIPS32, POSIX mutexes are unshared |
25 |
|
25 |
|
Lines 32-38
Link Here
|
32 |
--bindir=${PREFIX}/bin/${PORTNAME} |
32 |
--bindir=${PREFIX}/bin/${PORTNAME} |
33 |
CONFIGURE_SCRIPT= ../dist/configure |
33 |
CONFIGURE_SCRIPT= ../dist/configure |
34 |
GNU_CONFIGURE= yes |
34 |
GNU_CONFIGURE= yes |
35 |
USES= gmake libtool |
35 |
USES= gmake libtool ssl |
36 |
INSTALL_TARGET= install_include install_lib install_utilities |
36 |
INSTALL_TARGET= install_include install_lib install_utilities |
37 |
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix |
37 |
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix |
38 |
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} |
38 |
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} |
Lines 40-51
Link Here
|
40 |
PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER} |
40 |
PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER} |
41 |
MAKE_ARGS+= docdir=${DOCSDIR} |
41 |
MAKE_ARGS+= docdir=${DOCSDIR} |
42 |
|
42 |
|
43 |
OPTIONS_DEFINE= CRYPTO DEBUG L10N SQL JAVA TCL DOCS |
43 |
OPTIONS_DEFINE= CRYPTO DEBUG L10N JAVA TCL DOCS |
44 |
OPTIONS_DEFAULT=CRYPTO |
44 |
OPTIONS_DEFAULT=CRYPTO |
45 |
OPTIONS_SUB= yes |
45 |
OPTIONS_SUB= yes |
46 |
CRYPTO_DESC= Cryptography support |
46 |
CRYPTO_DESC= Cryptography support |
47 |
L10N_DESC= Localization support (EXPERIMENTAL) |
47 |
L10N_DESC= Localization support (EXPERIMENTAL) |
48 |
SQL_DESC= Enable SQL API (EXPERIMENTAL) |
|
|
49 |
|
48 |
|
50 |
PORTDOCS= * |
49 |
PORTDOCS= * |
51 |
|
50 |
|
Lines 54-67
Link Here
|
54 |
DEBUG_CONFIGURE_ENABLE= debug umrw |
53 |
DEBUG_CONFIGURE_ENABLE= debug umrw |
55 |
CRYPTO_CONFIGURE_WITH= cryptography=yes |
54 |
CRYPTO_CONFIGURE_WITH= cryptography=yes |
56 |
L10N_CONFIGURE_ENABLE= localization |
55 |
L10N_CONFIGURE_ENABLE= localization |
57 |
SQL_CONFIGURE_ENABLE= sql sql_codegen |
|
|
58 |
SQL_VARS= DBLIBS+=libdb_sql |
59 |
JAVA_USE= java |
56 |
JAVA_USE= java |
60 |
# db6 is only compatible with openjdk 7 or 8, |
57 |
JAVA_VARS= DBLIBS+=libdb_java JAVA_VERSION="7+" |
61 |
# openjdk 11 or newer and cause IllegalArgument |
|
|
62 |
# exceptions during build even if the version check |
63 |
# in dist/configure is disabled or fixed: |
64 |
JAVA_VARS= DBLIBS+=libdb_java JAVA_VERSION="7 8" |
65 |
JAVA_CONFIGURE_ENABLE= java |
58 |
JAVA_CONFIGURE_ENABLE= java |
66 |
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include" |
59 |
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include" |
67 |
JAVA_CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" |
60 |
JAVA_CONFIGURE_ENV= JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}" |
Lines 68-74
Link Here
|
68 |
TCL_CONFIGURE_ENABLE= tcl |
61 |
TCL_CONFIGURE_ENABLE= tcl |
69 |
TCL_USES= tcl |
62 |
TCL_USES= tcl |
70 |
TCL_CONFIGURE_WITH= tcl=${TCL_LIBDIR} |
63 |
TCL_CONFIGURE_WITH= tcl=${TCL_LIBDIR} |
71 |
TCL_VARS= DBLIBS+=libdb_tcl |
64 |
TCL_VARS= DBLIBS+=libdb_tcl |
72 |
DOCS_INSTALL_TARGET= install_docs |
65 |
DOCS_INSTALL_TARGET= install_docs |
73 |
|
66 |
|
74 |
.include <bsd.port.options.mk> |
67 |
.include <bsd.port.options.mk> |
Lines 77-89
Link Here
|
77 |
CONFIGURE_ARGS+= --with-mutex=POSIX/pthreads |
70 |
CONFIGURE_ARGS+= --with-mutex=POSIX/pthreads |
78 |
.endif |
71 |
.endif |
79 |
|
72 |
|
80 |
post-patch: |
|
|
81 |
${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' ${WRKSRC}/../dist/Makefile.in |
82 |
${REINPLACE_CMD} -Ee 's/[[:<:]]atomic_init[[:>:]]/db_atomic_init/g' \ |
83 |
${WRKSRC}/../src/mp/mp* ${WRKSRC}/../src/mutex/mut_* \ |
84 |
${WRKSRC}/../src/dbinc/atomic.h |
85 |
${REINPLACE_CMD} -e 's/%%BDBVER%%/${BDBVER}/' ${WRKSRC}/../lang/sql/upgrade61.sh |
86 |
|
87 |
post-install: |
73 |
post-install: |
88 |
.for i in ${DBLIBS} |
74 |
.for i in ${DBLIBS} |
89 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so |
75 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so |
Lines 100-112
Link Here
|
100 |
${RM} -r ${STAGEDIR}${DOCSDIR}/${i}/JAVA |
86 |
${RM} -r ${STAGEDIR}${DOCSDIR}/${i}/JAVA |
101 |
.endfor |
87 |
.endfor |
102 |
|
88 |
|
103 |
post-install-SQL-off: |
|
|
104 |
${RM} -r ${STAGEDIR}${DOCSDIR}/bdb-sql |
105 |
|
106 |
post-install-SQL-on: |
107 |
${INSTALL_SCRIPT} ${WRKSRC}/../lang/sql/upgrade61.sh \ |
108 |
${STAGEDIR}${PREFIX}/bin/${PORTNAME}-upgrade61.sh |
109 |
|
110 |
post-install-TCL-on: |
89 |
post-install-TCL-on: |
111 |
echo "package ifneeded Db_tcl ${BDBVER} \ |
90 |
echo "package ifneeded Db_tcl ${BDBVER} \ |
112 |
[list load [file join $$dir libdb_tcl-${BDBVER}.so]] \ |
91 |
[list load [file join $$dir libdb_tcl-${BDBVER}.so]] \ |