aboutsummaryrefslogtreecommitdiffstats
path: root/misc/libpri-bristuff
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2004-11-14 23:29:33 +0800
committersobomax <sobomax@FreeBSD.org>2004-11-14 23:29:33 +0800
commitc83544c6783e5fb52a67aca3216906f6f48cbd81 (patch)
tree2839c184c0642f9a6d7a600deb09962c429a527c /misc/libpri-bristuff
parent2c12350501192ce00b662f5d158455692fcdfae3 (diff)
downloadfreebsd-ports-gnome-c83544c6783e5fb52a67aca3216906f6f48cbd81.tar.gz
freebsd-ports-gnome-c83544c6783e5fb52a67aca3216906f6f48cbd81.tar.zst
freebsd-ports-gnome-c83544c6783e5fb52a67aca3216906f6f48cbd81.zip
Add libpri 1.0.2, a C implementation of the Primary Rate ISDN
specification.
Diffstat (limited to 'misc/libpri-bristuff')
-rw-r--r--misc/libpri-bristuff/Makefile23
-rw-r--r--misc/libpri-bristuff/distinfo2
-rw-r--r--misc/libpri-bristuff/files/patch-Makefile65
-rw-r--r--misc/libpri-bristuff/files/patch-pri_q921.h13
-rw-r--r--misc/libpri-bristuff/pkg-descr4
-rw-r--r--misc/libpri-bristuff/pkg-plist4
6 files changed, 111 insertions, 0 deletions
diff --git a/misc/libpri-bristuff/Makefile b/misc/libpri-bristuff/Makefile
new file mode 100644
index 000000000000..4da197d294fb
--- /dev/null
+++ b/misc/libpri-bristuff/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: libpri
+# Date created: 25 Oct 2004
+# Whom: Alexander Timoshenko <gonzo@univ.kiev.ua>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libpri
+PORTVERSION= 1.0.2
+CATEGORIES= misc
+MASTER_SITES= ftp://ftp.asterisk.org/pub/libpri/ \
+ ftp://ftp.asterisk.org/pub/libpri/old/
+
+MAINTAINER= gonzo@univ.kiev.ua
+COMMENT= A C implementation of the Primary Rate ISDN specification
+
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+
+post-patch:
+ @${FIND} ${WRKSRC} -name \*.orig -or -name \*.bak -delete
+
+.include <bsd.port.mk>
diff --git a/misc/libpri-bristuff/distinfo b/misc/libpri-bristuff/distinfo
new file mode 100644
index 000000000000..5ba1dbf0365f
--- /dev/null
+++ b/misc/libpri-bristuff/distinfo
@@ -0,0 +1,2 @@
+MD5 (libpri-1.0.2.tar.gz) = 374c089bf3bdee3f8e2d7b315190022e
+SIZE (libpri-1.0.2.tar.gz) = 55451
diff --git a/misc/libpri-bristuff/files/patch-Makefile b/misc/libpri-bristuff/files/patch-Makefile
new file mode 100644
index 000000000000..69c9ec960f8f
--- /dev/null
+++ b/misc/libpri-bristuff/files/patch-Makefile
@@ -0,0 +1,65 @@
+
+$FreeBSD$
+
+--- Makefile.orig
++++ Makefile
+@@ -33,11 +33,11 @@
+ TOBJS=testpri.o
+ T2OBJS=testprilib.o
+ STATIC_LIBRARY=libpri.a
+-DYNAMIC_LIBRARY=libpri.so.1.0
++DYNAMIC_LIBRARY=libpri.so.1
+ STATIC_OBJS=pri.o q921.o prisched.o q931.o
+ DYNAMIC_OBJS=pri.lo q921.lo prisched.lo q931.lo
+-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
+-INSTALL_PREFIX=
++CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes $(ALERTING) $(LIBPRI_COUNTERS)
++INSTALL_PREFIX=$(PREFIX)
+ ifeq (${OSARCH},Linux)
+ LDCONFIG_FLAGS=-n
+ else
+@@ -62,20 +62,19 @@
+ @cvs update -d
+
+ install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+- mkdir -p $(INSTALL_PREFIX)/usr/lib
+- mkdir -p $(INSTALL_PREFIX)/usr/include
+- install -m 644 libpri.h $(INSTALL_PREFIX)/usr/include
+- install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
+- ( cd $(INSTALL_PREFIX)/usr/lib ; ln -sf libpri.so.1 libpri.so )
+- install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
+- /sbin/ldconfig
++ mkdir -p $(INSTALL_PREFIX)/lib
++ mkdir -p $(INSTALL_PREFIX)/include
++ $(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)/include
++ $(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/lib
++ ( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1 libpri.so )
++ $(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)/lib
+
+ uninstall:
+ @echo "Removing Libpri"
+- rm -f $(INSTALL_PREFIX)/usr/lib/libpri.so.1.0
+- rm -f $(INSTALL_PREFIX)/usr/lib/libpri.so
+- rm -f $(INSTALL_PREFIX)/usr/lib/libpri.a
+- rm -f $(INSTALL_PREFIX)/usr/include/libpri.h
++ rm -f $(INSTALL_PREFIX)/lib/libpri.so.1
++ rm -f $(INSTALL_PREFIX)/lib/libpri.so
++ rm -f $(INSTALL_PREFIX)/lib/libpri.a
++ rm -f $(INSTALL_PREFIX)/include/libpri.h
+
+ pritest: pritest.o
+ $(CC) -o pritest pritest.o -L. -lpri -lzap $(CFLAGS)
+@@ -100,11 +99,11 @@
+
+ $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
+ $(CC) -shared -Wl,-soname,libpri.so.1 -o $@ $(DYNAMIC_OBJS)
+- /sbin/ldconfig $(LDCONFIG_FLAGS) .
++ #/sbin/ldconfig $(LDCONFIG_FLAGS) .
+ ln -sf libpri.so.1 libpri.so
+
+ clean:
+- rm -f *.o *.so *.lo *.so.1 *.so.1.0
++ rm -f *.o *.so *.lo *.so.1
+ rm -f testpri testprilib $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
+ rm -f pritest pridump
+ rm -f .depend
diff --git a/misc/libpri-bristuff/files/patch-pri_q921.h b/misc/libpri-bristuff/files/patch-pri_q921.h
new file mode 100644
index 000000000000..8cb788d6d722
--- /dev/null
+++ b/misc/libpri-bristuff/files/patch-pri_q921.h
@@ -0,0 +1,13 @@
+diff -Naur pri_q921.h.orig pri_q921.h
+--- pri_q921.h.orig 2004-10-02 17:55:20.000000000 +0300
++++ pri_q921.h 2004-10-19 19:12:38.000000000 +0300
+@@ -30,6 +30,9 @@
+ #include <endian.h>
+ #elif defined(__FreeBSD__)
+ #include <sys/endian.h>
++#define __BYTE_ORDER _BYTE_ORDER
++#define __BIG_ENDIAN _BIG_ENDIAN
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+ #endif
+
+ /* Timer values */
diff --git a/misc/libpri-bristuff/pkg-descr b/misc/libpri-bristuff/pkg-descr
new file mode 100644
index 000000000000..22991e0164ee
--- /dev/null
+++ b/misc/libpri-bristuff/pkg-descr
@@ -0,0 +1,4 @@
+The libpri is a C implementation of the Primary Rate ISDN specification.
+It was based on the Bellcore specification SR-NWT-002343 for National
+ISDN. As of May 12, 2001, it has been tested work with NI-2, Nortel DMS-100,
+and Lucent 5E C ustom protocols on switches from Nortel and Lucent.
diff --git a/misc/libpri-bristuff/pkg-plist b/misc/libpri-bristuff/pkg-plist
new file mode 100644
index 000000000000..ccbeae646ef3
--- /dev/null
+++ b/misc/libpri-bristuff/pkg-plist
@@ -0,0 +1,4 @@
+include/libpri.h
+lib/libpri.a
+lib/libpri.so.1
+lib/libpri.so