diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2011-08-09 00:00:52 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2011-08-09 00:00:52 +0800 |
commit | 236e487c00d3ef21bda15a084c28a90bd134ba44 (patch) | |
tree | 7cdacdff833388f5bec767b947f3c085d09e448d /misc | |
parent | 2582a8703c14d822e6a099db0baa8d0533658168 (diff) | |
download | freebsd-ports-gnome-236e487c00d3ef21bda15a084c28a90bd134ba44.tar.gz freebsd-ports-gnome-236e487c00d3ef21bda15a084c28a90bd134ba44.tar.zst freebsd-ports-gnome-236e487c00d3ef21bda15a084c28a90bd134ba44.zip |
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Fix WWW: line
PR: 159485
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gplink/Makefile | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/misc/gplink/Makefile b/misc/gplink/Makefile index ea5c6b3c6379..73377a0e5bd2 100644 --- a/misc/gplink/Makefile +++ b/misc/gplink/Makefile @@ -14,23 +14,28 @@ MASTER_SITES= http://gp2x.org/gp32/gplink/ \ MAINTAINER= ports@FreeBSD.org COMMENT= A GP32 USB linker tool -USE_GMAKE= yes +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + WRKSRC= ${WRKDIR}/${DISTNAME}/src +USE_GMAKE= yes +MAKE_ARGS= CC="${CC}" \ + CFLAGS="${CFLAGS} ${USB_CFLAGS}" \ + LDFLAGS="${USB_LDFLAGS}" +MAKE_JOBS_SAFE= yes + PLIST_FILES= bin/gplink .include <bsd.port.pre.mk> .if ${OSVERSION} < 800069 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' \ - ${WRKSRC}/Makefile +USB_CFLAGS= `libusb-config --cflags` +USB_LDFLAGS= `libusb-config --libs` +.else +USB_CFLAGS= # none +USB_LDFLAGS= -lusb .endif do-install: |