mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
Port cleanup:
- minor whitespace cleanups - stop abusing PATCH_DIST_STRIP, use PATCH_WRKSRC instead - mark MAKE_JOBS_SAFE - clean up Tcl handling - note that WITH_TCL_VER now expects the version without a dot - supports Tcl 8.5 - use TCL_LIBDIR and TCL_INCLUDEDIR and USE_TCL rather than guesswork - combine, refresh, and rename patches
This commit is contained in:
parent
9ad88950de
commit
e1268a4d7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271407
@ -10,21 +10,22 @@ PORTVERSION= 3.3.11
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH?= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
||||
MASTER_SITES= http://download.oracle.com/berkeley-db/
|
||||
DISTNAME= db-${PORTVERSION}
|
||||
DIST_SUBDIR= bdb
|
||||
|
||||
PATCH_SITES= http://download.oracle.com/berkeley-db/patches/db/${PORTVERSION}/
|
||||
PATCHFILES= patch.${PORTVERSION}.1 patch.${PORTVERSION}.2
|
||||
PATCH_DIST_STRIP= -d ${WRKDIR}/${DISTNAME}
|
||||
|
||||
MAINTAINER= mandree@FreeBSD.org
|
||||
COMMENT= The Berkeley DB package, revision 3.3
|
||||
|
||||
PATCH_WRKSRC= ${WRKDIR}/${DISTNAME}
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
GNU_CONFIGURE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
CONFIGURE_SCRIPT= ../dist/configure
|
||||
LIBTOOLFILES= ${CONFIGURE_SCRIPT}
|
||||
CONFIGURE_ARGS= --enable-compat185 \
|
||||
@ -38,14 +39,19 @@ INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
|
||||
PORTDOCS= *
|
||||
.endif
|
||||
|
||||
.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
|
||||
.if defined(WITH_TCL_VER) && !defined(WITH_TCL)
|
||||
WITH_TCL:= yes
|
||||
.endif
|
||||
|
||||
.if defined(WITH_TCL)
|
||||
USE_TCL= 83+
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_TCL)
|
||||
CONFIGURE_ARGS+= --enable-tcl --with-tcl=${TCL_LIBDIR}
|
||||
PLIST_SUB+= WITHTCL=""
|
||||
.else
|
||||
PLIST_SUB+= WITHTCL="@comment "
|
||||
.endif
|
||||
@ -58,8 +64,8 @@ post-patch:
|
||||
@${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
|
||||
.if defined(WITH_TCL)
|
||||
@${REINPLACE_CMD} -e "s|TCFLAGS=.*|TCFLAGS=-I${TCL_INCLUDEDIR} -L${TCL_LIBDIR}|g" ${WRKSRC}/Makefile
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@ -67,4 +73,4 @@ post-install:
|
||||
${RMDIR} ${DOCSDIR}/ref/splash
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ../dist/Makefile.in.orig Fri Jul 6 15:53:16 2001
|
||||
+++ ../dist/Makefile.in Tue May 14 12:26:13 2002
|
||||
--- ./dist/Makefile.in.orig 2001-07-06 22:53:16.000000000 +0200
|
||||
+++ ./dist/Makefile.in 2011-03-21 18:22:00.000000000 +0100
|
||||
@@ -61,12 +61,12 @@
|
||||
LIBSO_LIBS= @LIBSO_LIBS@
|
||||
|
@ -1,5 +1,14 @@
|
||||
--- ../dist/configure.orig Tue May 14 12:23:44 2002
|
||||
+++ ../dist/configure Tue May 14 12:24:11 2002
|
||||
--- ./dist/configure.orig 2011-03-21 18:22:00.000000000 +0100
|
||||
+++ ./dist/configure 2011-03-21 18:22:00.000000000 +0100
|
||||
@@ -7002,7 +7002,7 @@
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
freebsd-elf*)
|
||||
@@ -8449,7 +8449,7 @@
|
||||
MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}"
|
||||
MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}"
|
@ -1,11 +0,0 @@
|
||||
--- ../dist/configure.foo Sun Feb 4 14:10:01 2007
|
||||
+++ ../dist/configure Sun Feb 4 14:11:26 2007
|
||||
@@ -7002,7 +7002,7 @@
|
||||
;;
|
||||
|
||||
freebsd*)
|
||||
- objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
|
||||
+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
|
||||
version_type=freebsd-$objformat
|
||||
case $version_type in
|
||||
freebsd-elf*)
|
Loading…
Reference in New Issue
Block a user