aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2016-10-01 03:24:30 +0800
committertijl <tijl@FreeBSD.org>2016-10-01 03:24:30 +0800
commitf493fce6a3261de0136fe170a7b704c4fe236b88 (patch)
tree8b44219153a720f367633c8fe248933750735b7d /audio
parent70cc79c60e2f5a9e208b1727c67b6fe406e80c61 (diff)
downloadfreebsd-ports-gnome-f493fce6a3261de0136fe170a7b704c4fe236b88.tar.gz
freebsd-ports-gnome-f493fce6a3261de0136fe170a7b704c4fe236b88.tar.zst
freebsd-ports-gnome-f493fce6a3261de0136fe170a7b704c4fe236b88.zip
Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS. Normally LDFLAGS appears too early on the command line causing some ports to link with their own libraries in LOCALBASE (if installed) instead of WRKSRC. Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as possible after anything a port Makefile might set. Use _USES_POST instead of .include in libedit.mk and libarchive.mk so things like 'USES=libedit localbase:ldflags' work correctly. Fix some issues with LIBS in some ports. Switch ports that don't support LIBS to localbase:ldflags. PR: 212987 Exp-run by: antoine Approved by: portmgr (antoine)
Diffstat (limited to 'audio')
-rw-r--r--audio/fplib/Makefile2
-rw-r--r--audio/listener/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/fplib/Makefile b/audio/fplib/Makefile
index b07348f06bfa..ee7b23d723a6 100644
--- a/audio/fplib/Makefile
+++ b/audio/fplib/Makefile
@@ -22,6 +22,6 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
-USES= cmake localbase tar:xz
+USES= cmake localbase:ldflags tar:xz
.include <bsd.port.mk>
diff --git a/audio/listener/Makefile b/audio/listener/Makefile
index 9bc70521c005..16d5edd881f9 100644
--- a/audio/listener/Makefile
+++ b/audio/listener/Makefile
@@ -24,7 +24,7 @@ post-patch:
@${REINPLACE_CMD} -e \
's|-g |$$(CPPFLAGS) | ; \
s|-O2 || ; \
- s|-ldl |$$(LDFLAGS) |' ${WRKSRC}/Makefile
+ s|-ldl |$$(LDFLAGS) $$(LIBS) |' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/listener ${WRKSRC}/setlistener \