ports/113627: Patch port: audio/libamrnb changed to install doc and add target post-extract
Tatsuki Makino
tatsuki_makino at hotmail.com
Tue Jun 12 16:20:03 UTC 2007
>Number: 113627
>Category: ports
>Synopsis: Patch port: audio/libamrnb changed to install doc and add target post-extract
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 12 16:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Tatsuki Makino
>Release: FreeBSD 6.2-RELEASE-p5 i386
>Organization:
>Environment:
FreeBSD FreeBSD.test 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Thu May 24 16:23:26 JST 2007 root at FreeBSD.test:/usr/obj/usr/src/sys/GENERIC i386
>Description:
It changed to install the document.
Target post-extract is an experiment that evades the error of the wget.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -urN /usr/ports/audio/libamrnb.orig/Makefile /usr/ports/audio/libamrnb/Makefile
--- /usr/ports/audio/libamrnb.orig/Makefile Sat Jun 9 04:02:33 2007
+++ /usr/ports/audio/libamrnb/Makefile Wed Jun 13 00:58:13 2007
@@ -7,6 +7,7 @@
PORTNAME= libamrnb
PORTVERSION= 6.1.0.4
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= http://ftp.penguin.cz/pub/users/utx/amr/
@@ -26,10 +27,23 @@
CONFIGURE_ENV+= LANG=C
USE_LDCONFIG= yes
RESTRICTED= See Important legal notice of http://www.penguin.cz/~utx/amr.en.html
+PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
+
+post-extract:
+ @${SETENV} ${FETCH_ENV} ${FETCH_CMD} -o ${WRKSRC} \
+ http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-610.zip
post-patch:
@${REINPLACE_CMD} -E \
-e "s!(/bin/bash)!${LOCALBASE}\\1!" \
${WRKSRC}/prepare_sources.sh
+
+post-install:
+.ifndef(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+. for FILE in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+. endfor
+.endif
.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list