ports/185501: net/aget: Support CC/CFLAGS properly

KATO Tsuguru tkato432 at yahoo.com
Sun Jan 5 18:10:01 UTC 2014


>Number:         185501
>Category:       ports
>Synopsis:       net/aget: Support CC/CFLAGS properly
>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:   Sun Jan 05 18:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CFLAGS properly
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/aget/Makefile net/aget/Makefile
--- /usr/ports/net/aget/Makefile	2013-11-06 21:53:30.000000000 +0900
+++ net/aget/Makefile	2014-01-06 00:00:00.000000000 +0900
@@ -7,15 +7,21 @@
 MASTER_SITES=	http://www.enderunix.org/aget/
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	A multithreaded HTTP download accelerator
+COMMENT=	Multithreaded HTTP download accelerator
 
-PLIST_FILES=	bin/aget
-MAN1=	aget.1
+LICENSE=	BSD
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-NO_STAGE=	yes
-post-patch:
-# fix man prefix and make portlint happy :)
-	@${REINPLACE_CMD} -e 's|/usr/share/man/man1/|${MANPREFIX}/man/man1/|g' -e \
-		's|/usr/local/bin/|${PREFIX}/bin/|g' ${WRKSRC}/Makefile
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+
+LDFLAGS+=	-pthread
+
+PLIST_FILES=	bin/aget man/man1/aget.1.gz
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} aget \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} aget.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list