summaryrefslogtreecommitdiffstats
path: root/databases/db44
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-09-22 16:48:51 +0000
committersobomax <sobomax@FreeBSD.org>2000-09-22 16:48:51 +0000
commit3b611480fb8fabd946b2e499b5654d481962ae2f (patch)
tree964b4f89876380f932305330e22493397c140e84 /databases/db44
parent62feb31518186ced98b68058e2008e16c14d339e (diff)
downloadFreeBSD-ports-3b611480fb8fabd946b2e499b5654d481962ae2f.zip
FreeBSD-ports-3b611480fb8fabd946b2e499b5654d481962ae2f.tar.gz
Several cleanups:
- properly install shared library (still needs more work); - use pthreads; - use libtool. PR: 21470 (partially) Submitted by: maintainer
Diffstat (limited to 'databases/db44')
-rw-r--r--databases/db44/Makefile10
-rw-r--r--databases/db44/files/patch-aa14
-rw-r--r--databases/db44/files/patch-ab15
-rw-r--r--databases/db44/pkg-plist6
4 files changed, 31 insertions, 14 deletions
diff --git a/databases/db44/Makefile b/databases/db44/Makefile
index ec9f123..72a85bd 100644
--- a/databases/db44/Makefile
+++ b/databases/db44/Makefile
@@ -19,13 +19,17 @@ MANUAL_PACKAGE_BUILD= incompatible with libc internal db calls
WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
INSTALLS_SHLIB= yes
-GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
CONFIGURE_SCRIPT= ../dist/configure
+LIBTOOLFILES= ${CONFIGURE_SCRIPT}
CONFIGURE_ARGS= --enable-compat185 \
--enable-dump185 --enable-cxx \
--enable-dynamic \
--prefix=${PREFIX} \
- --includedir=${PREFIX}/include/db3
-CONFIGURE_TARGET= $(ARCH)-unknown-freebsd$(OSREL)
+ --includedir=${PREFIX}/include/db3 \
+ --target=$(ARCH)-unknown-freebsd$(OSREL)
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>
diff --git a/databases/db44/files/patch-aa b/databases/db44/files/patch-aa
index 1727b37..2844fcb 100644
--- a/databases/db44/files/patch-aa
+++ b/databases/db44/files/patch-aa
@@ -7,12 +7,12 @@
-libso_linkname= $(libso_base)-$(SOVERSION).la
-libso= $(libso_base)-$(SOVERSION).@SOSUFFIX@
-libso_target= $(libso_base)-$(SOVERSION).la
-+libso_linkname= $(libso_base)$(SOVERSION).la
-+libso= $(libso_base)$(SOVERSION).@SOSUFFIX@
-+libso_target= $(libso_base)$(SOVERSION).la
++libso_linkname= $(libso_base)$(SOMAJOR).la
++libso= $(libso_base)$(SOMAJOR).@SOSUFFIX@
++libso_target= $(libso_base)$(SOMAJOR).la
libso_default= $(libso_base).@SOSUFFIX@
-libso_major= $(libso_base)-$(SOMAJOR).@SOSUFFIX@
-+libso_major= $(libso_base)$(SOMAJOR).@SOSUFFIX@
++libso_major= $(libso_base)$(SOMAJOR).@SOSUFFIX@.1
##################################################
# C++
@@ -22,11 +22,11 @@
libxso_base= libdb_cxx
-libxso= $(libxso_base)-$(SOVERSION).@SOSUFFIX@
-libxso_target= $(libxso_base)-$(SOVERSION).la
-+libxso= $(libxso_base)$(SOVERSION).@SOSUFFIX@
-+libxso_target= $(libxso_base)$(SOVERSION).la
++libxso= $(libxso_base)$(SOMAJOR).@SOSUFFIX@
++libxso_target= $(libxso_base)$(SOMAJOR).la
libxso_default= $(libxso_base).@SOSUFFIX@
-libxso_major= $(libxso_base)-$(SOMAJOR).@SOSUFFIX@
-+libxso_major= $(libxso_base)$(SOMAJOR).@SOSUFFIX@
++libxso_major= $(libxso_base)$(SOMAJOR).@SOSUFFIX@.1
##################################################
# JAVA
diff --git a/databases/db44/files/patch-ab b/databases/db44/files/patch-ab
new file mode 100644
index 0000000..f80e531
--- /dev/null
+++ b/databases/db44/files/patch-ab
@@ -0,0 +1,15 @@
+--- ../dist/configure.orig Fri Sep 22 19:04:19 2000
++++ ../dist/configure Fri Sep 22 19:05:01 2000
+@@ -1599,9 +1599,9 @@
+ echo $ac_n "checking libtool configuration""... $ac_c" 1>&6
+ echo "configure:1601: checking libtool configuration" >&5
+ echo "$ac_t""" 1>&6
+- ${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig \
+- --no-verify $srcdir/ltmain.sh \
+- --output=./libtool $host_os \
++ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
++ --no-verify $ac_aux_dir/ltmain.sh $target \
++ --output=./libtool \
+ --disable-static \
+ || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
+
diff --git a/databases/db44/pkg-plist b/databases/db44/pkg-plist
index 4c7d61d..81c7d91 100644
--- a/databases/db44/pkg-plist
+++ b/databases/db44/pkg-plist
@@ -13,13 +13,11 @@ bin/db_stat
bin/db_upgrade
bin/db_verify
lib/libdb.so
-lib/libdb3.1.la
-lib/libdb3.1.so
lib/libdb3.so
+lib/libdb3.so.1
lib/libdb_cxx.so
-lib/libdb_cxx3.1.la
-lib/libdb_cxx3.1.so
lib/libdb_cxx3.so
+lib/libdb_cxx3.so.1
share/doc/db3/api_c/c_pindex.html
share/doc/db3/api_c/pindex.src
share/doc/db3/api_c/db_cursor.html
OpenPOWER on IntegriCloud