diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2016-06-27 01:24:21 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2016-06-27 01:24:21 +0800 |
commit | 1b1ceba33c0129a6895769c3ef514aef1bcdb90d (patch) | |
tree | 29a15f172db48adaedaa1075b6ee7c21c8eb8b89 /databases | |
parent | 4e6be8178c8d19fe3c2b77dbd5d1686288d87bc9 (diff) | |
download | freebsd-ports-graphics-1b1ceba33c0129a6895769c3ef514aef1bcdb90d.tar.gz freebsd-ports-graphics-1b1ceba33c0129a6895769c3ef514aef1bcdb90d.tar.zst freebsd-ports-graphics-1b1ceba33c0129a6895769c3ef514aef1bcdb90d.zip |
- Use WRKSRC_SUBDIR
- Convert to new options target helper
Approved by: portmgr (blanket)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/db6/Makefile | 29 | ||||
-rw-r--r-- | databases/db6/files/patch-lang_sql_upgrade61.sh | 4 | ||||
-rw-r--r-- | databases/db6/files/patch-src_dbinc_mutex__int.h | 4 |
3 files changed, 20 insertions, 17 deletions
diff --git a/databases/db6/Makefile b/databases/db6/Makefile index fbadf179454..fe102e35a4f 100644 --- a/databases/db6/Makefile +++ b/databases/db6/Makefile @@ -15,6 +15,7 @@ MAINTAINER= mandree@FreeBSD.org COMMENT= Oracle Berkeley DB, revision ${BDBVER} LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/../LICENSE BDBVER= ${PORTVERSION:R} BDBMAJ= ${BDBVER:R} @@ -27,8 +28,9 @@ CONFIGURE_SCRIPT= ../dist/configure GNU_CONFIGURE= yes USES= gmake libtool INSTALL_TARGET= install_include install_lib install_utilities -WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix -PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} +WRKSRC_SUBDIR= build_unix +#WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix +#PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} USE_LDCONFIG= yes PLIST_SUB= BDBMAJ=${BDBMAJ} BDBVER=${BDBVER} MAKE_ARGS+= docdir=${DOCSDIR} @@ -83,27 +85,28 @@ post-install: .endfor cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}; \ for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done -.if empty(PORT_OPTIONS:MJAVA) + +post-install-JAVA-off: ${RM} -r -f ${STAGEDIR}${DOCSDIR}/java .for i in gsg gsg_db_rep gsg_txn ${RM} -r -f ${STAGEDIR}${DOCSDIR}/${i}/JAVA .endfor -.endif -.if empty(PORT_OPTIONS:MSQL) + +post-install-SQL-off: ${RM} -r -f ${STAGEDIR}${DOCSDIR}/bdb-sql -.endif -.if !empty(PORT_OPTIONS:MTCL) + +post-install-SQL-on: + ${INSTALL_SCRIPT} ${WRKSRC}/../lang/sql/upgrade61.sh \ + ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-upgrade61.sh + +post-install-TCL-off: echo "package ifneeded Db_tcl ${BDBVER} \ [list load [file join $$dir libdb_tcl-${BDBVER}.so]] \ " > ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/pkgIndex.tcl -.else + +post-install-TCL-on: .for i in api_reference/TCL ${RM} -r -f ${STAGEDIR}${DOCSDIR}/${i} .endfor -.endif - -post-install-SQL-on: - ${INSTALL_SCRIPT} ${WRKSRC}/../lang/sql/upgrade61.sh \ - ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-upgrade61.sh .include <bsd.port.mk> diff --git a/databases/db6/files/patch-lang_sql_upgrade61.sh b/databases/db6/files/patch-lang_sql_upgrade61.sh index 894fbe49ba7..e7b2f9f71da 100644 --- a/databases/db6/files/patch-lang_sql_upgrade61.sh +++ b/databases/db6/files/patch-lang_sql_upgrade61.sh @@ -1,5 +1,5 @@ ---- lang/sql/upgrade61.sh.orig 2016-03-28 19:45:53 UTC -+++ lang/sql/upgrade61.sh +--- ../lang/sql/upgrade61.sh.orig 2016-03-28 19:45:53 UTC ++++ ../lang/sql/upgrade61.sh @@ -1,12 +1,19 @@ #!/bin/sh # This script upgrades SQL databases from BDB 5.0 to early 6.1 diff --git a/databases/db6/files/patch-src_dbinc_mutex__int.h b/databases/db6/files/patch-src_dbinc_mutex__int.h index 750f9c3504a..7649e30e3b3 100644 --- a/databases/db6/files/patch-src_dbinc_mutex__int.h +++ b/databases/db6/files/patch-src_dbinc_mutex__int.h @@ -1,5 +1,5 @@ ---- src/dbinc/mutex_int.h.orig 2016-03-28 19:45:54 UTC -+++ src/dbinc/mutex_int.h +--- ../src/dbinc/mutex_int.h.orig 2016-03-28 19:45:54 UTC ++++ ../src/dbinc/mutex_int.h @@ -652,7 +652,7 @@ MUTEX_SET(int *tsl) { : "=&r" (__r), "+r" (tsl) : |