diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-11-14 15:29:33 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-11-14 15:29:33 +0000 |
commit | 3b1613d0ab13e6ac85b65bd4cc089519bf184652 (patch) | |
tree | 3b5facc1a17f7fb2b6e7c53740663a2eb9877614 /misc/libpri | |
parent | e73b29d3069799684dc2179c76a3231fa47499a3 (diff) | |
download | ports-3b1613d0ab13e6ac85b65bd4cc089519bf184652.tar.gz ports-3b1613d0ab13e6ac85b65bd4cc089519bf184652.zip |
Notes
Diffstat (limited to 'misc/libpri')
-rw-r--r-- | misc/libpri/Makefile | 23 | ||||
-rw-r--r-- | misc/libpri/distinfo | 2 | ||||
-rw-r--r-- | misc/libpri/files/patch-Makefile | 65 | ||||
-rw-r--r-- | misc/libpri/files/patch-pri_q921.h | 13 | ||||
-rw-r--r-- | misc/libpri/pkg-descr | 4 | ||||
-rw-r--r-- | misc/libpri/pkg-plist | 4 |
6 files changed, 111 insertions, 0 deletions
diff --git a/misc/libpri/Makefile b/misc/libpri/Makefile new file mode 100644 index 000000000000..4da197d294fb --- /dev/null +++ b/misc/libpri/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/distinfo b/misc/libpri/distinfo new file mode 100644 index 000000000000..5ba1dbf0365f --- /dev/null +++ b/misc/libpri/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/files/patch-Makefile b/misc/libpri/files/patch-Makefile new file mode 100644 index 000000000000..69c9ec960f8f --- /dev/null +++ b/misc/libpri/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/files/patch-pri_q921.h b/misc/libpri/files/patch-pri_q921.h new file mode 100644 index 000000000000..8cb788d6d722 --- /dev/null +++ b/misc/libpri/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/pkg-descr b/misc/libpri/pkg-descr new file mode 100644 index 000000000000..22991e0164ee --- /dev/null +++ b/misc/libpri/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/pkg-plist b/misc/libpri/pkg-plist new file mode 100644 index 000000000000..ccbeae646ef3 --- /dev/null +++ b/misc/libpri/pkg-plist @@ -0,0 +1,4 @@ +include/libpri.h +lib/libpri.a +lib/libpri.so.1 +lib/libpri.so |