aboutsummaryrefslogtreecommitdiff
path: root/databases/gigabase
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2015-04-18 19:09:03 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2015-04-18 19:09:03 +0000
commit2358c08a33d80bdc2089b0312f82e44d99b27788 (patch)
treed239b6db58366e22a201e225b4bcdd4808c68c94 /databases/gigabase
parent19ca485076f9e738dbbdbfeac8d8d1ef9dd48ad6 (diff)
downloadports-2358c08a33d80bdc2089b0312f82e44d99b27788.tar.gz
ports-2358c08a33d80bdc2089b0312f82e44d99b27788.zip
Notes
Diffstat (limited to 'databases/gigabase')
-rw-r--r--databases/gigabase/Makefile12
-rw-r--r--databases/gigabase/files/patch-Makefile.in36
-rw-r--r--databases/gigabase/files/patch-configure.in19
3 files changed, 26 insertions, 41 deletions
diff --git a/databases/gigabase/Makefile b/databases/gigabase/Makefile
index bf5d402ad34a..a85606900a50 100644
--- a/databases/gigabase/Makefile
+++ b/databases/gigabase/Makefile
@@ -14,16 +14,10 @@ LICENSE= MIT
WRKSRC= ${WRKDIR}/${PORTNAME}
-USES= dos2unix gmake libtool
-DOS2UNIX_FILES= Makefile.in *.cpp *.h
+GNU_CONFIGURE= yes
+USES= autoreconf dos2unix gmake libtool
+DOS2UNIX_FILES= Makefile.in configure.in *.cpp *.h
USE_GCC= any
-USE_AUTOTOOLS= libtoolize aclocal autoconf
USE_LDCONFIG= yes
-LDFLAGS+= -pthread
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|-lpthread|-pthread|' ${WRKSRC}/GiST/Makefile
-
.include <bsd.port.mk>
diff --git a/databases/gigabase/files/patch-Makefile.in b/databases/gigabase/files/patch-Makefile.in
index aaf5e0d7a13f..c00995326e14 100644
--- a/databases/gigabase/files/patch-Makefile.in
+++ b/databases/gigabase/files/patch-Makefile.in
@@ -1,15 +1,5 @@
--- Makefile.in.orig 2012-05-14 15:11:18.000000000 +0600
+++ Makefile.in 2012-05-14 15:14:15.000000000 +0600
-@@ -6,7 +6,8 @@
- exec_prefix = @exec_prefix@
- VPATH = @srcdir@
- LIBTOOL = ./libtool
--INSTALL = @INSTALL@
-+INSTALL_PROGRAM = @INSTALL_PROGRAM@
-+INSTALL_DATA = @INSTALL_DATA@
-
- # Coment this for AIX/xlC 5.0
- LIBEXT=la
@@ -41,7 +42,7 @@
SUFF=@SUFF@
@@ -28,24 +18,6 @@
CXXFLAGS = @CXXFLAGS@ $(DEFS)
CFLAGS = @CFLAGS@ $(DEFS)
LD = $(CXX)
-@@ -70,7 +71,7 @@
-
- $(GB_LIB): $(OBJS)
- # Coment this for AIX/xlC 5.0
-- $(LIBTOOL) --mode=link $(CXX) -o $@ $(OBJS) $(LDFLAGS) @LTHREADSLIB@ -rpath $(libdir) -version-info $(VERSION)
-+ $(LIBTOOL) --mode=link $(CXX) -o $@ $(OBJS) $(LDFLAGS) -rpath $(libdir) -version-info $(VERSION)
- # Uncoment this for AIX/xlC 5.0
- # mkdir .libs
- # xlC_r -qmkshrobj=-10 -o .libs/gigabase.so $(OBJS)
-@@ -80,7 +81,7 @@
-
- $(CLI_LIB): $(CLI_OBJS)
- # Coment this for AIX/xlC 5.0
-- $(LIBTOOL) --mode=link $(CXX) -o $@ $(CLI_OBJS) $(LDFLAGS) @LTHREADSLIB@ -rpath $(libdir) -version-info $(VERSION)
-+ $(LIBTOOL) --mode=link $(CXX) -o $@ $(CLI_OBJS) $(LDFLAGS) -rpath $(libdir) -version-info $(VERSION)
- # Uncoment this for AIX/xlC 5.0
- # xlC_r -qmkshrobj=-10 -o .libs/cli.so $(CLI_OBJS)
- # ar rv .libs/libcli_r.a .libs/cli.so
@@ -154,15 +155,15 @@
$(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o testleak testleak.o $(GB_LIB) $(SLHACK)
@@ -56,16 +28,16 @@
- $(LIBTOOL) --mode=install $(INSTALL) $(GB_LIB) $(CLI_LIB) $(libdir)
- mkdir -p $(bindir)
+ mkdir -p $(DESTDIR)$(includedir)
-+ $(INSTALL_DATA) $(INCS) $(CLI_INCS) $(DESTDIR)$(includedir)
++ $(BSD_INSTALL_DATA) $(INCS) $(CLI_INCS) $(DESTDIR)$(includedir)
+ mkdir -p $(DESTDIR)$(libdir)
-+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $(GB_LIB) $(CLI_LIB) $(DESTDIR)$(libdir)
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(GB_LIB) $(CLI_LIB) $(DESTDIR)$(libdir)
+ mkdir -p $(DESTDIR)$(bindir)
if test -x .libs/subsql ; then \
- cp .libs/subsql $(bindir); \
-+ $(INSTALL_PROGRAM) .libs/subsql $(DESTDIR)$(bindir)/subsql_gb; \
++ $(BSD_INSTALL_PROGRAM) .libs/subsql $(DESTDIR)$(bindir)/subsql_gb; \
else \
- cp subsql $(bindir); \
-+ $(INSTALL_PROGRAM) subsql $(DESTDIR)$(bindir)/subsql_gb; \
++ $(BSD_INSTALL_PROGRAM) subsql $(DESTDIR)$(bindir)/subsql_gb; \
fi
# strip $(bindir)/subsql
diff --git a/databases/gigabase/files/patch-configure.in b/databases/gigabase/files/patch-configure.in
new file mode 100644
index 000000000000..427c8fccb8ca
--- /dev/null
+++ b/databases/gigabase/files/patch-configure.in
@@ -0,0 +1,19 @@
+--- configure.in.orig 2015-04-18 16:58:56 UTC
++++ configure.in
+@@ -4,7 +4,6 @@ AC_INIT(gigabase.h)
+ AC_CANONICAL_SYSTEM
+ AC_AIX
+ GB_VERSION=`$srcdir/mkversion`
+-AM_INIT_AUTOMAKE(gigabase, $GB_VERSION)
+
+ AC_ARG_ENABLE(pthreads, [
+ --disable-pthreads use this for single-threaded libs],
+@@ -84,7 +83,7 @@ AC_FUNC_STRFTIME
+ AC_CACHE_CHECK(for compiler option for pthreads, ac_cv_pthreads,
+ [SAVE_CXXFLAGS="$CXXFLAGS"
+ SAVE_CFLAGS="$CFLAGS"
+-for i in "" -pthread -pthreads -mthreads -mt; do
++for i in -lpthread -pthreads -mthreads -mt; do
+ CXXFLAGS="$SAVE_CXXFLAGS $i"
+ CFLAGS="$SAVE_CFLAGS $i"
+ AC_LANG_CPLUSPLUS