aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
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 /sysutils
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 'sysutils')
-rw-r--r--sysutils/android-file-transfer/Makefile2
-rw-r--r--sysutils/fusefs-unionfs/Makefile2
-rw-r--r--sysutils/pciutils/Makefile2
-rw-r--r--sysutils/xen-tools/Makefile4
4 files changed, 5 insertions, 5 deletions
diff --git a/sysutils/android-file-transfer/Makefile b/sysutils/android-file-transfer/Makefile
index 18bad2aeb914..04ec9d13fc63 100644
--- a/sysutils/android-file-transfer/Makefile
+++ b/sysutils/android-file-transfer/Makefile
@@ -16,7 +16,7 @@ USE_GITHUB= yes
GH_ACCOUNT= whoozle
GH_PROJECT= ${PORTNAME}-linux
-USES= cmake compiler:c++11-lib localbase pkgconfig
+USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig
CMAKE_ARGS= -DUSB_BACKEND_LIBUSB=on -DBUILD_QT_UI=off
OPTIONS_DEFAULT=CLI FUSE
diff --git a/sysutils/fusefs-unionfs/Makefile b/sysutils/fusefs-unionfs/Makefile
index 5275215afc02..47ddf4ffcded 100644
--- a/sysutils/fusefs-unionfs/Makefile
+++ b/sysutils/fusefs-unionfs/Makefile
@@ -23,7 +23,7 @@ PLIST_FILES= bin/unionfs \
bin/unionfsctl \
man/man8/unionfs.8.gz
-USES= fuse cmake localbase
+USES= fuse cmake localbase:ldflags
post-patch:
@${REINPLACE_CMD} "s,share/man,man,g" ${WRKSRC}/man/CMakeLists.txt
diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile
index 28e7cd3ea395..9e29aa36be46 100644
--- a/sysutils/pciutils/Makefile
+++ b/sysutils/pciutils/Makefile
@@ -21,7 +21,7 @@ ALL_TARGET= lspci lspci.8 setpci setpci.8
CPPFLAGS+= -fPIC
LDFLAGS+= -lpci
MAKE_ENV= LANG=C
-USES= gmake localbase tar:xz
+USES= gmake localbase:ldflags tar:xz
PLIST_FILES= bin/lspci \
bin/setpci \
diff --git a/sysutils/xen-tools/Makefile b/sysutils/xen-tools/Makefile
index d00da37f6859..3ab41f460e0d 100644
--- a/sysutils/xen-tools/Makefile
+++ b/sysutils/xen-tools/Makefile
@@ -28,8 +28,8 @@ OPTIONS_DEFINE= DOCS
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= "not yet ported to anything other than amd64"
-USES= cpe gmake libtool perl5 pkgconfig python shebangfix localbase \
- gettext
+USES= cpe gettext gmake libtool localbase:ldflags perl5 pkgconfig \
+ python shebangfix
USE_GNOME= glib20
USE_LDCONFIG= yes
GNU_CONFIGURE= yes