ports/159485: Update port: misc/gplink
KATO Tsuguru
tkato432 at yahoo.com
Wed Aug 3 18:40:35 UTC 2011
>Number: 159485
>Category: ports
>Synopsis: Update port: misc/gplink
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 03 18:40:35 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Fix WWW: line
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/misc/gplink/Makefile misc/gplink/Makefile
--- /usr/ports/misc/gplink/Makefile 2011-06-22 16:05:49.000000000 +0900
+++ misc/gplink/Makefile 2011-08-01 01:26:42.000000000 +0900
@@ -14,23 +14,28 @@
MAINTAINER= ports at 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:
diff -urN /usr/ports/misc/gplink/pkg-descr misc/gplink/pkg-descr
--- /usr/ports/misc/gplink/pkg-descr 2011-08-03 15:39:39.000000000 +0900
+++ misc/gplink/pkg-descr 2011-07-14 05:28:54.000000000 +0900
@@ -1,2 +1,4 @@
gplink is a gp32 linking tool with support for upload, download delete files
create and remove directories, run files, etc in the smc card on the GP32.
+
+WWW: http://gp2x.org/gp32/gplink/
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list