summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2001-12-19 09:06:57 +0000
committerwill <will@FreeBSD.org>2001-12-19 09:06:57 +0000
commitcb7d993b167956eecc6ed0259142e3c328bf1797 (patch)
tree2d13f0a8965104393c4653a5c500229cfae45e7f /audio
parentfcf60a7ce4e8046d45448e41cfeaf250bbd6df63 (diff)
downloadFreeBSD-ports-cb7d993b167956eecc6ed0259142e3c328bf1797.zip
FreeBSD-ports-cb7d993b167956eecc6ed0259142e3c328bf1797.tar.gz
Add adpcm 1.2, an Intel/DVI IMA ADPCM codec library.
PR: 31331 Submitted by: Andrew <andrew@ugh.net.au>
Diffstat (limited to 'audio')
-rw-r--r--audio/Makefile1
-rw-r--r--audio/adpcm/Makefile41
-rw-r--r--audio/adpcm/distinfo1
-rw-r--r--audio/adpcm/files/patch-Makefile40
-rw-r--r--audio/adpcm/pkg-comment1
-rw-r--r--audio/adpcm/pkg-descr6
-rw-r--r--audio/adpcm/pkg-plist7
7 files changed, 97 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile
index 9e237f9..8acddc2 100644
--- a/audio/Makefile
+++ b/audio/Makefile
@@ -3,6 +3,7 @@
SUBDIR += Maaate
SUBDIR += ac3dec
+ SUBDIR += adpcm
SUBDIR += afsp
SUBDIR += agbrowser
SUBDIR += agsatellite
diff --git a/audio/adpcm/Makefile b/audio/adpcm/Makefile
new file mode 100644
index 0000000..63218b4
--- /dev/null
+++ b/audio/adpcm/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: adpcm
+# Date created: 17 Oct 2001
+# Whom: Andrew <andrew@ugh.net.au>
+#
+# $FreeBSD$
+#
+
+PORTNAME= adpcm
+PORTVERSION= 1.2
+CATEGORIES= audio
+MASTER_SITES= ftp://ftp.cwi.nl/pub/audio/
+DISTNAME= adpcm
+EXTRACT_SUFX= .shar
+
+MAINTAINER= andrew@ugh.net.au
+
+NO_WRKSUBDIR= true
+EXTRACT_CMD= ${SH}
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS=
+MAN3= adpcm.3
+MANCOMPRESSED= no
+INSTALLS_SHLIB= yes
+LIBVERSION= 1
+
+pre-install:
+ ${MKDIR} ${PREFIX}/share/doc/adpcm
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/adpcm.h ${PREFIX}/include/adpcm.h
+ ${INSTALL_DATA} ${WRKSRC}/libadpcm.a ${PREFIX}/lib/libadpcm.a
+ ${INSTALL_DATA} ${WRKSRC}/libadpcm.so.${LIBVERSION} ${PREFIX}/lib/libadpcm.so.${LIBVERSION}
+ ${LN} -sf ${PREFIX}/lib/libadpcm.so.${LIBVERSION} ${PREFIX}/lib/libadpcm.so
+ ${INSTALL_MAN} ${WRKSRC}/adpcm.2 ${PREFIX}/man/man3/adpcm.3
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/adpcm/README
+ uudecode -p ${WRKSRC}/hello.adpcm.uu > ${PREFIX}/share/doc/adpcm/hello.adpcm
+
+post-install:
+ strip ${PREFIX}/lib/libadpcm.so.${LIBVERSION}
+
+.include <bsd.port.mk>
diff --git a/audio/adpcm/distinfo b/audio/adpcm/distinfo
new file mode 100644
index 0000000..5f978cde
--- /dev/null
+++ b/audio/adpcm/distinfo
@@ -0,0 +1 @@
+MD5 (adpcm.shar) = bbf89aadbb05775e93274d109f2c11c6
diff --git a/audio/adpcm/files/patch-Makefile b/audio/adpcm/files/patch-Makefile
new file mode 100644
index 0000000..553215c
--- /dev/null
+++ b/audio/adpcm/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- Makefile.orig Wed Oct 17 16:47:29 2001
++++ Makefile Wed Oct 17 20:47:22 2001
+@@ -1,14 +1,14 @@
+ #
+ # Makefile for adpcm and test programs
+ # -------------------
+-CFLAGS=-O
++CFLAGS?=-O
+ # May need this on a sun:
+ # CFLAGS=-O -I/usr/demo/SOUND
+
+ ALLSRC=README adpcm.2 Makefile adpcm.h libst.h adpcm.c timing.c rawcaudio.c \
+ rawdaudio.c suncaudio.c sgicaudio.c sgidaudio.c hello.adpcm.uu
+
+-all: adpcm.o rawcaudio rawdaudio timing
++all: libadpcm.a libadpcm.so.1
+
+ sgi: all sgicaudio sgidaudio
+
+@@ -39,3 +39,20 @@
+
+ adpcm.shar: $(ALLSRC)
+ shar $(ALLSRC) > adpcm.shar
++
++.SUFFIXES: .So .c
++
++.c.So:
++ ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
++ ${LD} -o ${.TARGET}.tmp -x -r ${.TARGET}
++ mv ${.TARGET}.tmp ${.TARGET}
++
++libadpcm.a: adpcm.o
++ -rm -f ${.TARGET}
++ ${AR} cq ${.TARGET} `lorder ${.ALLSRC} | tsort -q`
++ ${RANLIB} ${.TARGET}
++
++libadpcm.so.1: adpcm.So
++ -rm -f ${.TARGET} ${.TARGET:R}
++ ${CC} -shared -Wl,-x -o ${.TARGET} -Wl,-soname,${.TARGET} \
++ `lorder ${.ALLSRC} | tsort -q`
diff --git a/audio/adpcm/pkg-comment b/audio/adpcm/pkg-comment
new file mode 100644
index 0000000..af05bdd
--- /dev/null
+++ b/audio/adpcm/pkg-comment
@@ -0,0 +1 @@
+An Intel/DVI IMA ADPCM codec library
diff --git a/audio/adpcm/pkg-descr b/audio/adpcm/pkg-descr
new file mode 100644
index 0000000..b2f4b63
--- /dev/null
+++ b/audio/adpcm/pkg-descr
@@ -0,0 +1,6 @@
+This is a library containing functions to convert between 16 bit linear PCM
+audio and 4 bit ADPCM. It uses the Intel/DVI ADPCM encoding which is
+recommended by the IMA Digital Audio Technical Working Group.
+
+- Andrew
+andrew@ugh.net.au
diff --git a/audio/adpcm/pkg-plist b/audio/adpcm/pkg-plist
new file mode 100644
index 0000000..4be8303
--- /dev/null
+++ b/audio/adpcm/pkg-plist
@@ -0,0 +1,7 @@
+include/adpcm.h
+lib/libadpcm.a
+lib/libadpcm.so.1
+lib/libadpcm.so
+share/doc/adpcm/README
+share/doc/adpcm/hello.adpcm
+@dirrm share/doc/adpcm
OpenPOWER on IntegriCloud