Index: head/audio/libamrwb/Makefile =================================================================== --- head/audio/libamrwb/Makefile (revision 195610) +++ head/audio/libamrwb/Makefile (revision 195611) @@ -1,34 +1,52 @@ # New ports collection makefile for: libamrwb # Date created: 7 Jun 2007 # Whom: Tatsuki Makino # # $FreeBSD$ # PORTNAME= libamrwb PORTVERSION= 7.0.0.1 +PORTREVISION= 1 CATEGORIES= audio -MASTER_SITES= http://ftp.penguin.cz/pub/users/utx/amr/ +MASTER_SITES= http://ftp.penguin.cz/pub/users/utx/amr/ \ + http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/:3GPP DISTNAME= amrwb-${DISTVERSION} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SRC3GPP}:3GPP +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= tatsuki_makino@hotmail.com -COMMENT= Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec +COMMENT= 3GPP Adaptive Multi-Rate - Wideband (AMR-WB) Speech Codec -BUILD_DEPENDS= wget:${PORTSDIR}/ftp/wget \ - ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip \ - bash:${PORTSDIR}/shells/bash +BUILD_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip +SRC3GPP= 26204-700.zip + USE_BZIP2= yes USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 GNU_CONFIGURE= yes CONFIGURE_ENV+= LANG=C USE_LDCONFIG= yes -RESTRICTED= See Important legal notice of http://www.penguin.cz/~utx/amr.en.html +RESTRICTED= license prohibits redistribution +RESTRICTED_FILES= ${SRC3GPP} +PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO readme.txt +SUB_FILES= pkg-message -post-patch: - @${REINPLACE_CMD} -E \ - -e "s!(/bin/bash)!${LOCALBASE}\\1!" \ - ${WRKSRC}/prepare_sources.sh +post-extract: + @${CP} ${DISTDIR}/${SRC3GPP} ${WRKSRC}/ + +post-install: +.ifndef(NOPORTDOCS) + @${ECHO} -n Install documents: + @${MKDIR} ${DOCSDIR} +. for FILE in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} + @${ECHO} -n " ${FILE}" +. endfor + @${ECHO} . + @${ECHO} +.endif + @${CAT} ${PKGMESSAGE} .include Property changes on: head/audio/libamrwb/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property Index: head/audio/libamrwb/distinfo =================================================================== --- head/audio/libamrwb/distinfo (revision 195610) +++ head/audio/libamrwb/distinfo (revision 195611) @@ -1,3 +1,6 @@ MD5 (amrwb-7.0.0.1.tar.bz2) = f823b5e055e1d85142740e225b86ac91 SHA256 (amrwb-7.0.0.1.tar.bz2) = 16248eac1a909012be577333583d5f4bffaad2b7687c764d7f027ddc11f1ec86 SIZE (amrwb-7.0.0.1.tar.bz2) = 220644 +MD5 (26204-700.zip) = 2e5098687d3007a05b7acc8298a5b072 +SHA256 (26204-700.zip) = 1b8ba234f5ac520650cb66aee1079491681afb7dba78eb717dca9534ae3598f0 +SIZE (26204-700.zip) = 255757 Property changes on: head/audio/libamrwb/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/audio/libamrwb/files/patch-Makefile.in =================================================================== --- head/audio/libamrwb/files/patch-Makefile.in (nonexistent) +++ head/audio/libamrwb/files/patch-Makefile.in (revision 195611) @@ -0,0 +1,24 @@ +--- Makefile.in.orig Thu Jun 7 00:32:12 2007 ++++ Makefile.in Sun Jul 15 00:58:13 2007 +@@ -224,7 +224,7 @@ + sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + EXTRA_DIST = amrwb-any-cflags.patch amrwb-dhf-declaration.patch amrwb-intsizes.patch prepare_sources.sh amrwb.spec +-DISTCLEANFILES = 26204-700.zip 26204-700.doc 26204-700_ANSI-C_source_code.zip ++DISTCLEANFILES = 26204-700.doc 26204-700_ANSI-C_source_code.zip + lib_LTLIBRARIES = \ + libamrwb.la + +@@ -807,10 +807,10 @@ + chmod og-w 26204-700.doc + + 26204-700.zip: +- $(WGET) -N http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip ++ test -e 26204-700.zip + + extraclean: +- rm -f $(distdir)/*.c $(distdir)/*.h $(distdir)/readme.txt $(distdir)/26204-700.zip $(distdir)/26204-700.doc $(distdir)/26204-700_ANSI-C_source_code.zip ++ rm -f $(distdir)/*.c $(distdir)/*.h $(distdir)/readme.txt $(distdir)/26204-700.doc $(distdir)/26204-700_ANSI-C_source_code.zip + + # WARNING: These commands use internal automake command and may fail in future version. + extradist-gzip: distdir extraclean Property changes on: head/audio/libamrwb/files/patch-Makefile.in ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/audio/libamrwb/files/patch-configure =================================================================== --- head/audio/libamrwb/files/patch-configure (nonexistent) +++ head/audio/libamrwb/files/patch-configure (revision 195611) @@ -0,0 +1,15 @@ +--- configure.orig Fri Jun 22 13:50:03 2007 ++++ configure Fri Jun 22 13:50:27 2007 +@@ -20338,12 +20338,6 @@ + fi + + +-if test x"$WGET" = x -a ! "(" -f "26204-700.zip" -o -f "enc_main.c" ")" ; then +- { { echo "$as_me:$LINENO: error: You need wget utility to download sources." >&5 +-echo "$as_me: error: You need wget utility to download sources." >&2;} +- { (exit 1); exit 1; }; } +-fi +- + # Checks for libraries. + { echo "$as_me:$LINENO: checking for library containing sqrt" >&5 + echo $ECHO_N "checking for library containing sqrt... $ECHO_C" >&6; } Property changes on: head/audio/libamrwb/files/patch-configure ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/audio/libamrwb/files/patch-prepare_sources.sh =================================================================== --- head/audio/libamrwb/files/patch-prepare_sources.sh (nonexistent) +++ head/audio/libamrwb/files/patch-prepare_sources.sh (revision 195611) @@ -0,0 +1,31 @@ +--- prepare_sources.sh.orig Thu Jun 7 00:29:29 2007 ++++ prepare_sources.sh Sun Jul 15 01:00:53 2007 +@@ -1,10 +1,10 @@ +-#! /bin/bash ++#! /bin/sh + + set -o errexit +-trap "rm -rf c-code *.c *.h readme.txt *.new *.def *.all" ERR ++trap "rm -rf c-code *.c *.h readme.txt *.new *.def *.all" 0 + + if [ "$0" = prepare_sources.sh ] ; then +- cd "$(if ! which 2>/dev/null prepare_sources.sh ; then echo . fi )" ++ cd "$(if ! which 2>/dev/null prepare_sources.sh ; then echo . ; fi )" + else + cd "${0%/*}" + fi +@@ -24,7 +24,7 @@ + patch