aboutsummaryrefslogtreecommitdiff
path: root/math/simd-viterbi
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2006-11-15 19:51:08 +0000
committerMartin Wilke <miwi@FreeBSD.org>2006-11-15 19:51:08 +0000
commit8add085ed5d17e3cedacb8064b9edea1acda3de6 (patch)
treec62ee116ad1ffa74d429435edd0f8e534680c227 /math/simd-viterbi
parent4adf3a988a97408c5b7193b66f71618ff89262e0 (diff)
downloadports-8add085ed5d17e3cedacb8064b9edea1acda3de6.tar.gz
ports-8add085ed5d17e3cedacb8064b9edea1acda3de6.zip
Notes
Diffstat (limited to 'math/simd-viterbi')
-rw-r--r--math/simd-viterbi/Makefile5
-rw-r--r--math/simd-viterbi/files/patch-makefile.in61
2 files changed, 55 insertions, 11 deletions
diff --git a/math/simd-viterbi/Makefile b/math/simd-viterbi/Makefile
index 3b2b0695bed2..077ed1295e4a 100644
--- a/math/simd-viterbi/Makefile
+++ b/math/simd-viterbi/Makefile
@@ -7,6 +7,7 @@
PORTNAME= simd-viterbi
PORTVERSION= 2.0.3
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.ka9q.net/code/fec/
@@ -15,13 +16,13 @@ COMMENT= A fast Viterbi CODEC library
GNU_CONFIGURE= yes
USE_GMAKE= yes
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
MAKEFILE= makefile
MAN3= simd-viterbi.3
PLIST_FILES= include/parity.h include/viterbi27.h include/viterbi29.h \
- lib/libviterbi.a lib/libviterbi.so lib/libviterbi.so.2.0.1
+ lib/libviterbi.a lib/libviterbi.so lib/libviterbi.so.2
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
diff --git a/math/simd-viterbi/files/patch-makefile.in b/math/simd-viterbi/files/patch-makefile.in
index b4d09949ae31..221944132a71 100644
--- a/math/simd-viterbi/files/patch-makefile.in
+++ b/math/simd-viterbi/files/patch-makefile.in
@@ -1,15 +1,18 @@
---- makefile.in.orig Wed Jun 29 17:35:03 2005
-+++ makefile.in Wed Jun 29 17:36:53 2005
-@@ -5,7 +5,7 @@
+--- makefile.in.orig Mon Feb 4 18:57:37 2002
++++ makefile.in Tue Nov 7 16:45:09 2006
+@@ -5,9 +5,9 @@
VPATH = @srcdir@
CC=@CC@
-CFLAGS=@CFLAGS@ -I. -Wall @ARCH_OPTION@
+CFLAGS=@CFLAGS@ -I. -Wall -fPIC
- SHARED_LIB=libviterbi.so.@VERSION@
+-SHARED_LIB=libviterbi.so.@VERSION@
++SHARED_LIB=libviterbi.so.2
STATIC_LIB=@STATIC_LIB@
-@@ -22,13 +22,12 @@
+
+ CLIB=viterbi27port.o viterbi29port.o parity.o
+@@ -22,19 +22,18 @@
./vtest29
install: all
@@ -26,13 +29,53 @@
+ $(BSD_INSTALL_MAN) simd-viterbi.3 @mandir@/man3
vtest27: vtest27.o $(STATIC_LIB)
- gcc -g -o $@ $^
-@@ -53,7 +52,7 @@
+- gcc -g -o $@ $^
++ cc -g -o $@ $^
+
+ vtest29: vtest29.o $(STATIC_LIB)
+- gcc -g -o $@ $^
++ cc -g -o $@ $^
+
+ vtest27.o: vtest27.c viterbi27.h parity.h
+
+@@ -53,31 +52,31 @@
ar rv $@ $^
$(SHARED_LIB): $(STATIC_LIB)
- gcc -shared -Xlinker -soname=libviterbi.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
-+ gcc -shared -fPIC -Xlinker -soname=libviterbi.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
++ cc -shared -fPIC -Xlinker -soname=libviterbi.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
viterbi27port.o: viterbi27.c viterbi27.h parity.h
- gcc -c $(CFLAGS) -o $@ $<
+- gcc -c $(CFLAGS) -o $@ $<
++ cc -c $(CFLAGS) -o $@ $<
+
+ viterbi27mmx.o: viterbi27.c viterbi27.h parity.h
+- gcc -c $(CFLAGS) -DMMX=1 -o $@ $<
++ cc -c $(CFLAGS) -DMMX=1 -o $@ $<
+
+ viterbi27sse.o: viterbi27.c viterbi27.h parity.h
+- gcc -c $(CFLAGS) -DSSE=1 -o $@ $<
++ cc -c $(CFLAGS) -DSSE=1 -o $@ $<
+
+ viterbi27sse2.o: viterbi27.c viterbi27.h parity.h
+- gcc -c $(CFLAGS) -DSSE2=1 -o $@ $<
++ cc -c $(CFLAGS) -DSSE2=1 -o $@ $<
+
+ viterbi29port.o: viterbi29.c viterbi29.h parity.h
+- gcc -c $(CFLAGS) -o $@ $<
++ cc -c $(CFLAGS) -o $@ $<
+
+ viterbi29mmx.o: viterbi29.c viterbi29.h parity.h
+- gcc -c $(CFLAGS) -DMMX=1 -o $@ $<
++ cc -c $(CFLAGS) -DMMX=1 -o $@ $<
+
+ viterbi29sse.o: viterbi29.c viterbi29.h parity.h
+- gcc -c $(CFLAGS) -DSSE=1 -o $@ $<
++ cc -c $(CFLAGS) -DSSE=1 -o $@ $<
+
+ viterbi29sse2.o: viterbi29.c viterbi29.h parity.h
+- gcc -c $(CFLAGS) -DSSE2=1 -o $@ $<
++ cc -c $(CFLAGS) -DSSE2=1 -o $@ $<
+
+ clean:
+ rm -f *.o $(SHARED_LIB) *.a vtest27 vtest29 core