aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2011-06-22 07:00:46 +0800
committerehaupt <ehaupt@FreeBSD.org>2011-06-22 07:00:46 +0800
commit26e93388f6e6cf24b6d2fb889798e1b88b166270 (patch)
treedde3ada9cc57617e4cbe53a417d2d777c0022c64 /misc
parent4ab2c8664e5a438a56d1b94f04a72dd22af1a9a9 (diff)
downloadfreebsd-ports-gnome-26e93388f6e6cf24b6d2fb889798e1b88b166270.tar.gz
freebsd-ports-gnome-26e93388f6e6cf24b6d2fb889798e1b88b166270.tar.zst
freebsd-ports-gnome-26e93388f6e6cf24b6d2fb889798e1b88b166270.zip
Fix build with clang by making the port respect CC. While we're here add an
additional distfile mirror. PR: 158138 Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/gplink/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/gplink/Makefile b/misc/gplink/Makefile
index 33636aeb4372..ea5c6b3c6379 100644
--- a/misc/gplink/Makefile
+++ b/misc/gplink/Makefile
@@ -8,7 +8,8 @@
PORTNAME= gplink
PORTVERSION= 1.5
CATEGORIES= misc
-MASTER_SITES= http://gp2x.org/gp32/gplink/
+MASTER_SITES= http://gp2x.org/gp32/gplink/ \
+ http://www.gnu-darwin.org/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= A GP32 USB linker tool
@@ -25,6 +26,7 @@ LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
.endif
post-patch:
+ @${REINPLACE_CMD} -e 's/^\(CC[^g]*\)gcc$$/\1${CC}/' ${WRKSRC}/Makefile
.if ${OSVERSION} >= 800069
@${REINPLACE_CMD} -E -e 's,`libusb-config --cflags`,,g' \
-e 's,`libusb-config --libs`,-lusb,g' \