1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Fixed shard library

- Bump PORTREVISION
- INSTALLS_SHLIB => USE_LDCONFIG

PR:		ports/105525
Submitted by:	Thomas Sandford <freebsduser@paradisegreen.co.uk> (maintainer)
This commit is contained in:
Martin Wilke 2006-11-15 19:51:08 +00:00
parent 4adf3a988a
commit 8add085ed5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177339
2 changed files with 55 additions and 11 deletions

View File

@ -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>

View File

@ -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