aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-06-29 15:04:22 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-06-29 15:04:22 +0000
commitb71ffdc0f6760f568a032399bdf7a1ed76f6c46f (patch)
tree4a5e7e3b5bd5012c4a262176acc2cc0b687b463c /math
parent9b986e19b4515468cd0c8f01d95c57d90de49169 (diff)
downloadports-b71ffdc0f6760f568a032399bdf7a1ed76f6c46f.tar.gz
ports-b71ffdc0f6760f568a032399bdf7a1ed76f6c46f.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/reed-solomon/Makefile27
-rw-r--r--math/reed-solomon/distinfo2
-rw-r--r--math/reed-solomon/files/patch-makefile.in37
-rw-r--r--math/reed-solomon/pkg-descr7
-rw-r--r--math/reed-solomon/pkg-plist4
6 files changed, 78 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 1e94089c7bc0..2d3fd64aa0d5 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -218,6 +218,7 @@
SUBDIR += qtiplot
SUBDIR += qwtplot3d
SUBDIR += rascal
+ SUBDIR += reed-solomon
SUBDIR += rpc
SUBDIR += rpy
SUBDIR += ruby-algebra
diff --git a/math/reed-solomon/Makefile b/math/reed-solomon/Makefile
new file mode 100644
index 000000000000..8862745dd0c0
--- /dev/null
+++ b/math/reed-solomon/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: reed-solomon
+# Date created: 29 Jun 2005
+# Whom: Thomas Sandford <freebsduser@paradisegreen.co.uk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= reed-solomon
+PORTVERSION= 4.0
+CATEGORIES= math
+MASTER_SITES= http://www.ka9q.net/code/fec/
+
+MAINTAINER= freebsduser@paradisegreen.co.uk
+COMMENT= A Reed-Solomon CODEC library
+
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+MAKEFILE= makefile
+
+MAN3= rs.3
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/makefile.in
+
+.include <bsd.port.mk>
diff --git a/math/reed-solomon/distinfo b/math/reed-solomon/distinfo
new file mode 100644
index 000000000000..971448588bc1
--- /dev/null
+++ b/math/reed-solomon/distinfo
@@ -0,0 +1,2 @@
+MD5 (reed-solomon-4.0.tar.gz) = 09218994c0e8e1f50e052786db1fe11b
+SIZE (reed-solomon-4.0.tar.gz) = 46058
diff --git a/math/reed-solomon/files/patch-makefile.in b/math/reed-solomon/files/patch-makefile.in
new file mode 100644
index 000000000000..7fe4ab89894f
--- /dev/null
+++ b/math/reed-solomon/files/patch-makefile.in
@@ -0,0 +1,37 @@
+--- makefile.in.orig Wed Jun 29 16:52:23 2005
++++ makefile.in Wed Jun 29 16:57:01 2005
+@@ -7,7 +7,7 @@
+ VPATH = @srcdir@
+ CC=@CC@
+
+-CFLAGS=@CFLAGS@ @ARCH_OPTION@ -Wall
++CFLAGS=@CFLAGS@ -fPIC -Wall
+
+ LIB= encode_rs_char.o encode_rs_int.o encode_rs_8.o \
+ decode_rs_char.o decode_rs_int.o decode_rs_8.o \
+@@ -24,20 +24,17 @@
+ gcc -g -o $@ $^
+
+ install: all
+- mkdir -p @libdir@
+- install -D -m 644 -p librs.a librs.so.@SO_VERSION@ @libdir@
++ $(BSD_INSTALL_DATA) librs.a @libdir@
++ $(BSD_INSTALL_PROGRAM) librs.so.@SO_VERSION@ @libdir@
+ (cd @libdir@;ln -f -s librs.so.@SO_VERSION@ librs.so)
+- ldconfig
+- mkdir -p @includedir@
+- install -m 644 -p rs.h @includedir@
+- mkdir -p @mandir@/man3
+- install -m 644 rs.3 @mandir@/man3
++ $(BSD_INSTALL_DATA) rs.h @includedir@
++ $(BSD_INSTALL_MAN) rs.3 @mandir@/man3
+
+ librs.a: $(LIB)
+ ar rv $@ $^
+
+ librs.so.@SO_VERSION@: librs.a
+- gcc -shared -Xlinker -soname=librs.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
++ gcc -shared -fPIC -Xlinker -soname=librs.so.@SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
+
+ encode_rs_char.o: encode_rs.c
+ gcc $(CFLAGS) -c -o $@ $^
diff --git a/math/reed-solomon/pkg-descr b/math/reed-solomon/pkg-descr
new file mode 100644
index 000000000000..0d1ce284e9cb
--- /dev/null
+++ b/math/reed-solomon/pkg-descr
@@ -0,0 +1,7 @@
+This is a port of Phil Karn's Reed-Solomon CODEC library. This package may be
+useful to programmers working on data communications software.
+
+WWW: http://www.ka9q.net/code/fec/
+
+- Thomas Sandford
+freebsduser@paradisegreen.co.uk
diff --git a/math/reed-solomon/pkg-plist b/math/reed-solomon/pkg-plist
new file mode 100644
index 000000000000..ce0438ddb48d
--- /dev/null
+++ b/math/reed-solomon/pkg-plist
@@ -0,0 +1,4 @@
+include/rs.h
+lib/librs.a
+lib/librs.so
+lib/librs.so.4.0.0