diff options
author | pav <pav@FreeBSD.org> | 2004-07-06 08:12:42 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-07-06 08:12:42 +0800 |
commit | 43ac79b29f5d910a22141e499bdd009a00246470 (patch) | |
tree | db4895250c9c0bdbb4f83b91a563a4954dd99f8a /databases/db3 | |
parent | f71b4a0a0041326564e79d8761577ce0bf778d4f (diff) | |
download | freebsd-ports-graphics-43ac79b29f5d910a22141e499bdd009a00246470.tar.gz freebsd-ports-graphics-43ac79b29f5d910a22141e499bdd009a00246470.tar.zst freebsd-ports-graphics-43ac79b29f5d910a22141e499bdd009a00246470.zip |
- Add WITH_TCL_VER knob
PR: ports/60473
Submitted by: Roberto Grassi <r.grassi@obicon.it>
Approved by: maintainer
Diffstat (limited to 'databases/db3')
-rw-r--r-- | databases/db3/Makefile | 26 | ||||
-rw-r--r-- | databases/db3/pkg-plist | 5 |
2 files changed, 28 insertions, 3 deletions
diff --git a/databases/db3/Makefile b/databases/db3/Makefile index 008e713a24a..9b1b38ad72d 100644 --- a/databases/db3/Makefile +++ b/databases/db3/Makefile @@ -7,7 +7,7 @@ PORTNAME= db3 PORTVERSION= 3.3.11 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH?= 1 CATEGORIES= databases #MASTER_SITES= http://www.sleepycat.com/update/snapshot/ @@ -39,9 +39,18 @@ INSTALL_TARGET= install_include install_lib install_utilities .if !defined(NOPORTDOCS) INSTALL_TARGET+= install_docs docdir=${DOCSDIR} PORTDOCS= * +.endif -post-install: - ${RMDIR} ${DOCSDIR}/ref/splash +.if defined(WITH_TCL_VER) +.if ${WITH_TCL_VER} == 8.4 || ${WITH_TCL_VER} == 8.3 +CONFIGURE_ARGS+= --enable-tcl --with-tcl=${LOCALBASE}/lib/tcl${WITH_TCL_VER} +LIB_DEPENDS+= tcl${WITH_TCL_VER:S/.//}.1:${PORTSDIR}/lang/tcl${WITH_TCL_VER:S/.//} +PLIST_SUB+= WITHTCL="" +.else +IGNORE= "WITH_TCL_VER must be 8.4 or 8.3" +.endif +.else +PLIST_SUB+= WITHTCL="@comment " .endif pre-patch: @@ -51,4 +60,15 @@ post-patch: @${CHMOD} 755 ${WRKSRC}/${CONFIGURE_SCRIPT} @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/../dist/configure +post-configure: +.if defined(WITH_TCL_VER) + @${REINPLACE_CMD} -e "s|TCFLAGS=.*|TCFLAGS=-I${LOCALBASE}/include/tcl${WITH_TCL_VER} -L${LOCALBASE}/lib/tcl${WITH_TCL_VER}|g" ${WRKSRC}/Makefile +.endif + +post-install: + ${RM} -f ${PREFIX}/lib/libdb_tcl-3.3.la +.if !defined(NOPORTDOCS) + ${RMDIR} ${DOCSDIR}/ref/splash +.endif + .include <bsd.port.mk> diff --git a/databases/db3/pkg-plist b/databases/db3/pkg-plist index 5e015ce406c..210cebd9fc2 100644 --- a/databases/db3/pkg-plist +++ b/databases/db3/pkg-plist @@ -20,4 +20,9 @@ lib/libdb3.so.3 lib/libdb3_cxx.a lib/libdb3_cxx.so lib/libdb3_cxx.so.3 +%%WITHTCL%%lib/libdb_tcl-3.3.a +%%WITHTCL%%lib/libdb_tcl-3.3.so +%%WITHTCL%%lib/libdb_tcl-3.3.so.3 +%%WITHTCL%%lib/libdb_tcl.so +%%WITHTCL%%lib/libdb_tcl-3.so @dirrm include/db3 |