aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2013-12-24 20:33:44 +0800
committerpawel <pawel@FreeBSD.org>2013-12-24 20:33:44 +0800
commit6d77bcfa7edce157aa90c8d84452d1dd8300912c (patch)
treec82f794d9977f1ce3f2d91291c783a8f9886b515 /databases
parent7384d18d1366a488bd92bb9ea96332fe4a61d175 (diff)
downloadfreebsd-ports-gnome-6d77bcfa7edce157aa90c8d84452d1dd8300912c.tar.gz
freebsd-ports-gnome-6d77bcfa7edce157aa90c8d84452d1dd8300912c.tar.zst
freebsd-ports-gnome-6d77bcfa7edce157aa90c8d84452d1dd8300912c.zip
- Fix build with gcc on 8.x and 9.x
- Use option subs - Support staging, strip library PR: ports/184896 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'databases')
-rw-r--r--databases/dbf/Makefile22
-rw-r--r--databases/dbf/files/patch-libdbf.h17
2 files changed, 28 insertions, 11 deletions
diff --git a/databases/dbf/Makefile b/databases/dbf/Makefile
index 5bfd34d922c9..2dab97725545 100644
--- a/databases/dbf/Makefile
+++ b/databases/dbf/Makefile
@@ -3,6 +3,7 @@
PORTNAME= dbf
PORTVERSION= 0.9.0
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= SF/${PORTNAME}.berlios
DISTFILES= ${PORTNAME}-core-${PORTVERSION}.src.zip \
@@ -12,6 +13,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Show and convert the content of dBASE III, IV, and 5.0 files
OPTIONS_DEFINE= NLS
+OPTIONS_SUB= yes
WRKSRC= ${WRKDIR}/lib${PORTNAME}
@@ -22,21 +24,16 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_prog_DOC_TO_MAN=""
USE_LDCONFIG= yes
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
-PLIST_SUB+= NLS=""
.else
CONFIGURE_ENV+= ac_cv_header_libintl_h=no
-PLIST_SUB+= NLS="@comment "
.endif
-_make_jobs= -j${MAKE_JOBS_NUMBER}
-
post-extract:
@${FIND} ${WRKDIR} -name "configure" -or -name "install-sh" | \
${XARGS} ${CHMOD} ${BINMODE}
@@ -49,8 +46,8 @@ post-configure:
@(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${CONFIGURE_ENV} \
CC="${CC}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
- CPPFLAGS="-I${WRKSRC}/include" \
- LDFLAGS="-L${WRKSRC}/src/.libs" \
+ CPPFLAGS="-I${WRKSRC}/include ${CPPFLAGS}" \
+ LDFLAGS="-L${WRKSRC}/src/.libs ${LDFLAGS}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_LIB="${INSTALL_LIB}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
@@ -59,11 +56,14 @@ post-configure:
./configure --prefix=${PREFIX})
post-build:
- @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE} \
- ${MAKE_FLAGS} ${MAKEFILE} ${_make_jobs} ${ALL_TARGET})
+ @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
+ ${MAKE_FLAGS} ${MAKEFILE} -j${MAKE_JOBS_NUMBER} ${MAKE_ARGS} \
+ ${ALL_TARGET})
post-install:
- @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE} \
- ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
+ @(cd ${WRKDIR}/${PORTNAME}-core && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
+ ${MAKE_FLAGS} ${MAKEFILE} -j${MAKE_JOBS_NUMBER} ${MAKE_ARGS} \
+ ${INSTALL_TARGET})
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdbf.so.0
.include <bsd.port.mk>
diff --git a/databases/dbf/files/patch-libdbf.h b/databases/dbf/files/patch-libdbf.h
new file mode 100644
index 000000000000..ebf0b36fac7d
--- /dev/null
+++ b/databases/dbf/files/patch-libdbf.h
@@ -0,0 +1,17 @@
+--- ../libdbf/include/libdbf/libdbf.h.orig
++++ ../libdbf/include/libdbf/libdbf.h
+@@ -17,6 +17,9 @@
+ * $Id: libdbf.h,v 1.6 2006/04/14 12:25:30 rollinhand Exp $
+ ****************************************************************************/
+
++#ifndef __LIBDBF_H__
++#define __LIBDBF_H__
++
+ #include <sys/types.h>
+
+ /*! \file libdbf.h
+@@ -337,3 +340,4 @@
+ */
+ int dbf_IsMemo(P_DBF *p_dbf);
+
++#endif /* __LIBDBF_H__ */