mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add adpcm 1.2, an Intel/DVI IMA ADPCM codec library.
PR: 31331 Submitted by: Andrew <andrew@ugh.net.au>
This commit is contained in:
parent
4b2ad3d4d8
commit
b532d1c416
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51799
@ -3,6 +3,7 @@
|
||||
|
||||
SUBDIR += Maaate
|
||||
SUBDIR += ac3dec
|
||||
SUBDIR += adpcm
|
||||
SUBDIR += afsp
|
||||
SUBDIR += agbrowser
|
||||
SUBDIR += agsatellite
|
||||
|
41
audio/adpcm/Makefile
Normal file
41
audio/adpcm/Makefile
Normal file
@ -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>
|
1
audio/adpcm/distinfo
Normal file
1
audio/adpcm/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (adpcm.shar) = bbf89aadbb05775e93274d109f2c11c6
|
40
audio/adpcm/files/patch-Makefile
Normal file
40
audio/adpcm/files/patch-Makefile
Normal file
@ -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`
|
1
audio/adpcm/pkg-comment
Normal file
1
audio/adpcm/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
An Intel/DVI IMA ADPCM codec library
|
6
audio/adpcm/pkg-descr
Normal file
6
audio/adpcm/pkg-descr
Normal file
@ -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
|
7
audio/adpcm/pkg-plist
Normal file
7
audio/adpcm/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user