freebsd-ports/databases/db18/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

113 lines
3.1 KiB
Makefile

PORTNAME= db18
PORTVERSION= 18.1.40
CATEGORIES= databases java
MASTER_SITES= https://github.com/yasuhirokimura/${PORTNAME}/releases/download/${PORTVERSION}/
PKGNAMEPREFIX?=
#
# the distfiles aren't named db18-* but db-*:
DISTNAME= db-${PORTVERSION}
DIST_SUBDIR= bdb
MAINTAINER= yasu@FreeBSD.org
COMMENT= Oracle Berkeley DB, Release ${BDBVER}
WWW= https://www.oracle.com/database/berkeley-db/
LICENSE= AGPLv3 BSD3CLAUSE UPL10
LICENSE_COMB= multi
LICENSE_NAME_UPL10= The Universal Permissive License (UPL), Version 1.0
LICENSE_FILE_UPL10= ${WRKSRC}/../EXAMPLES-LICENSE
LICENSE_FILE= ${WRKSRC}/../LICENSE
LICENSE_PERMS_UPL10= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BROKEN_mips64= no usable MUTEX implementation, assy works only for MIPS32, POSIX mutexes are unshared
USES= gmake libtool ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../dist/configure
CONFIGURE_ARGS= --bindir=${PREFIX}/bin/${PORTNAME} \
--enable-compat185 \
--enable-cxx \
--enable-dbm \
--enable-dump185 \
--enable-stl \
--includedir=${PREFIX}/include/${PORTNAME} \
--libdir=${PREFIX}/lib/${PORTNAME}
MAKE_ARGS+= docdir=${DOCSDIR}
INSTALL_TARGET= install_include install_lib install_utilities
CFLAGS+= -I${OPENSSLINC}
CPPFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
PLIST_SUB= BDBMAJ=${BDBMAJ} \
BDBVER=${BDBVER}
PORTDOCS= *
OPTIONS_DEFINE= CRYPTO DEBUG DOCS JAVA L10N TCL
OPTIONS_DEFAULT= CRYPTO
OPTIONS_SUB= yes
CRYPTO_DESC= Cryptography support
L10N_DESC= Localization support (EXPERIMENTAL)
CRYPTO_CONFIGURE_WITH= cryptography=yes
DEBUG_CONFIGURE_ENABLE= debug umrw
DOCS_INSTALL_TARGET= install_docs
JAVA_USE= java
JAVA_CONFIGURE_ENABLE= java
JAVA_CONFIGURE_ENV= JAR="${JAR}" \
JAVA="${JAVA}" \
JAVAC="${JAVAC}"
JAVA_CPPFLAGS= -I"${JAVA_HOME}/include"
JAVA_VARS= DBLIBS+=libdb_java \
JAVA_VERSION="7+"
L10N_CONFIGURE_ENABLE= localization
TCL_USES= tcl
TCL_CONFIGURE_ENABLE= tcl
TCL_CONFIGURE_WITH= tcl=${TCL_LIBDIR}
TCL_VARS= DBLIBS+=libdb_tcl
BDBVER= ${PORTVERSION:R}
BDBMAJ= ${BDBVER:R}
DBLIBS= libdb libdb_cxx libdb_stl
.include <bsd.port.options.mk>
.if ${ARCH} == aarch64
CONFIGURE_ARGS+= --with-mutex=POSIX/pthreads
.endif
post-install:
.for i in ${DBLIBS}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so ${STAGEDIR}${PREFIX}/lib
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so ${STAGEDIR}${PREFIX}/lib/${i}-${BDBMAJ}.so
${LN} -s -f ${i}-${BDBVER}.a ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${i}.a
.endfor
cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}; \
for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
post-install-JAVA-off:
${RM} -r ${STAGEDIR}${DOCSDIR}/java
.for i in gsg gsg_db_rep gsg_txn
${RM} -r ${STAGEDIR}${DOCSDIR}/${i}/JAVA
.endfor
post-install-TCL-on:
echo "package ifneeded Db_tcl ${BDBVER} \
[list load [file join $$dir libdb_tcl-${BDBVER}.so]] \
" > ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/pkgIndex.tcl
post-install-TCL-off:
.for i in api_reference/TCL
${RM} -r ${STAGEDIR}${DOCSDIR}/${i}
.endfor
.include <bsd.port.mk>