Prevent the port from hardcoding its own CFLAGS/CXXFLAGS.

This should fix the build with clang 3.4, which refuses to accept options
such as -fforce-addr and -fno-force-addr.

While here, update the port's website in pkg-descr as well.

MFH:		2014Q2
This commit is contained in:
Raphael Kubo da Costa 2014-05-03 15:49:51 +00:00
parent 113d0b56ba
commit 78a69b6da1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352922
5 changed files with 51 additions and 10 deletions

View file

@ -4,6 +4,7 @@
PORTNAME= qdbm
PORTVERSION= 1.8.78
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://fallabs.com/qdbm/
@ -12,6 +13,7 @@ COMMENT?= Quick Database Manager
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -fPIC
.if !defined(SLAVEPORT)
USES+= iconv

View file

@ -1,11 +1,30 @@
--- Makefile.in.orig Wed Feb 21 16:44:56 2007
+++ Makefile.in Sun Jul 8 18:19:52 2007
@@ -169,8 +169,10 @@
cd $(srcdir)/man && cp -Rf $(MYMAN1S) $(DESTDIR)$(MYMAN1DIR)
mkdir -p $(DESTDIR)$(MYMAN3DIR)
cd $(srcdir)/man && cp -Rf $(MYMAN3S) $(DESTDIR)$(MYMAN3DIR)
--- Makefile.in.orig 2010-08-04 20:14:34.000000000 +0300
+++ Makefile.in 2014-05-03 18:41:01.000000000 +0300
@@ -46,7 +46,7 @@
MYMAN1DIR = @mandir@/man1
MYMAN3DIR = @mandir@/man3
MYDATADIR = @datadir@/$(PACKAGE)
-MYPCDIR = @libdir@/pkgconfig
+MYPCDIR = /usr/local/libdata/pkgconfig
DESTDIR =
# Building binaries
@@ -56,7 +56,6 @@
-D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \
-D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \
-DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG
-CFLAGS = -Wall -pedantic -fPIC -fsigned-char -O3 -fomit-frame-pointer -fforce-addr @MYOPTS@
LD = @LD@
LIBS = -lqdbm @LIBS@
LIBLDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib @LIBS@
@@ -170,8 +169,10 @@
cd $(srcdir)/man && cp -Rf $(MYMAN1S) $(DESTDIR)$(MYMAN1DIR)
mkdir -p $(DESTDIR)$(MYMAN3DIR)
cd $(srcdir)/man && cp -Rf $(MYMAN3S) $(DESTDIR)$(MYMAN3DIR)
+.if $(MYDOCS) != ""
mkdir -p $(DESTDIR)$(MYDATADIR)
cd $(srcdir) && cp -Rf $(MYDOCS) $(DESTDIR)$(MYDATADIR)
mkdir -p $(DESTDIR)$(MYDATADIR)
cd $(srcdir) && cp -Rf $(MYDOCS) $(DESTDIR)$(MYDATADIR)
+.endif
mkdir -p $(DESTDIR)$(MYPCDIR)
mkdir -p $(DESTDIR)$(MYPCDIR)
cd $(srcdir) && cp -Rf $(MYPCS) $(DESTDIR)$(MYPCDIR)
@printf '\n'

View file

@ -0,0 +1,10 @@
--- java/Makefile.in.orig 2014-05-03 18:41:15.000000000 +0300
+++ java/Makefile.in 2014-05-03 18:41:21.000000000 +0300
@@ -56,7 +56,6 @@
@MYDEFS@ -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \
-D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \
-DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG
-CFLAGS = -Wall -fPIC -fsigned-char -O2 @MYOPTS@
LD = @LD@
LIBS = -lqdbm @LIBS@
LIBLDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib $(LIBS)

View file

@ -0,0 +1,10 @@
--- plus/Makefile.in.orig 2014-05-03 18:41:29.000000000 +0300
+++ plus/Makefile.in 2014-05-03 18:41:32.000000000 +0300
@@ -44,7 +44,6 @@
-D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \
-D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \
-DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG
-CXXFLAGS = -Wall -ansi -pedantic -fsigned-char -fPIC -O2 -fno-strict-aliasing @MYOPTS@
LD = @LD@
LIBS = -lqdbm @LIBS@
LIBLDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) \

View file

@ -5,4 +5,4 @@ Both binary data and character string can be used as a key and a
value. There is neither concept of data tables nor data types.
Records are organized in hash table or B+ tree.
WWW: http://qdbm.sourceforge.net/
WWW: http://fallabs.com/qdbm/