aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-04-11 11:18:52 +0800
committermiwi <miwi@FreeBSD.org>2012-04-11 11:18:52 +0800
commitd59f238615f158042457c39dd8c822cea564fce0 (patch)
treea70872ee1ab6b97b96ed7cd6072dba5b0d7ef67d /devel
parent86dec9f8d14562fde74d16539727c9cd101a762a (diff)
downloadfreebsd-ports-gnome-d59f238615f158042457c39dd8c822cea564fce0.tar.gz
freebsd-ports-gnome-d59f238615f158042457c39dd8c822cea564fce0.tar.zst
freebsd-ports-gnome-d59f238615f158042457c39dd8c822cea564fce0.zip
- Respect CC/CFLAGS
- Drop unused cruft PR: 162593 Submitted by: Jan Beich <jbeich@tormail.net>
Diffstat (limited to 'devel')
-rw-r--r--devel/libmba/Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/devel/libmba/Makefile b/devel/libmba/Makefile
index b568b507064e..c1471145fa76 100644
--- a/devel/libmba/Makefile
+++ b/devel/libmba/Makefile
@@ -16,13 +16,6 @@ MASTER_SITE_SUBDIR= miwi
MAINTAINER= ports@FreeBSD.org
COMMENT= A collection of C modules potentially useful to any project
-LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
-
-USE_GMAKE= yes
-MAKE_ENV= prefix="${PREFIX}" \
- MINVERSION="${SHLIB_MAJOR}" \
- RPM_OPT_FLAGS="${CFLAGS} -I${LOCALBASE}/include"
-LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
USE_LDCONFIG= yes
@@ -35,15 +28,11 @@ MANCOMPRESSED= yes
SHLIB_MAJOR= 0
post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local|\$${PREFIX}|g ; \
- s|^CC|#CC|g ; \
- s|^MAJ|#MAJ|g ; \
- s|^MIN|#MIN|g ; \
- s|\.\$${MAJVERSION}||g ; \
- s|^RPM_OPT_FLAGS|#RPM_OPT_FLAGS|g ; \
- s| -lc| \$${LDFLAGS}|g ; \
- s|install -m ...|\$${BSD_INSTALL_DATA}|g ; \
- s|-/sbin/ldconfig.*$$||g ; \
- s|-D_XOPEN_SOURCE=500||g' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's,-g,$$(CFLAGS),' \
+ -e '/^prefix/s/=/?=/' \
+ -e 's/prefix/PREFIX/' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -Ee 's,"g?cc","${CC}",' \
+ ${WRKSRC}/mktool.c
.include <bsd.port.mk>