View | Details | Raw Unified | Return to bug 111555
Collapse All | Expand All

(-)Makefile (-12 / +15 lines)
Lines 2-12 Link Here
2
# Date created:				25 Oct 2004
2
# Date created:				25 Oct 2004
3
# Whom:					Alexander Timoshenko <gonzo@univ.kiev.ua>
3
# Whom:					Alexander Timoshenko <gonzo@univ.kiev.ua>
4
#
4
#
5
# $FreeBSD: ports/misc/libpri/Makefile,v 1.12 2007/03/29 21:02:06 gabor Exp $
5
# $FreeBSD: ports/misc/libpri/Makefile,v 1 2007/03/03 09:59:12 sobomax Exp $
6
#
6
#
7
7
8
PORTNAME=	libpri
8
PORTNAME=	libpri
9
PORTVERSION=	1.2.4
9
PORTVERSION=	1.4.0
10
CATEGORIES=	misc
10
CATEGORIES=	misc
11
MASTER_SITES=	ftp://ftp.digium.com/pub/libpri/ \
11
MASTER_SITES=	ftp://ftp.digium.com/pub/libpri/ \
12
		ftp://ftp.digium.com/pub/libpri/old/
12
		ftp://ftp.digium.com/pub/libpri/old/
Lines 14-30 Link Here
14
MAINTAINER=	gonzo@univ.kiev.ua
14
MAINTAINER=	gonzo@univ.kiev.ua
15
COMMENT=	A C implementation of the Primary Rate ISDN specification
15
COMMENT=	A C implementation of the Primary Rate ISDN specification
16
16
17
#PATCHFILES=	${PORTNAME}-${PORTVERSION}-${BRIVER}.patch.gz
18
#PATCH_SITES=	${MASTER_SITE_LOCAL}
19
#PATCH_SITE_SUBDIR=	fjoe
20
#PATCH_DIST_STRIP=	-p1
21
#BRIVER=		bristuff-0.3.0-PRE-1l
22
23
USE_GMAKE=	yes
17
USE_GMAKE=	yes
24
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
25
PLIST_FILES=	include/libpri.h lib/libpri.a lib/libpri.a lib/libpri.so \
19
PLIST_FILES=	include/libpri.h lib/libpri.a lib/libpri.so \
26
		lib/libpri.so.1
20
		lib/libpri.so.1 lib/libpri.so.1.0
21
22
.include <bsd.port.pre.mk>
23
24
.if ${ARCH} == "alp
25
26
BROKEN=		Does not compile on alpha
27
.endif
27
28
28
NOT_FOR_ARCHS=	alpha
29
post-patch:
30
	@${REINPLACE_CMD} -e 's|INSTALL_BASE=/usr/local|INSTALL_BASE=${PREFIX}|g' \
31
		${WRKSRC}/Makefile
29
32
30
.include <bsd.port.mk>
33
.include <bsd.port.post.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (libpri-1.2.4.tar.gz) = 2bc348d8363027736ccbf5998d85d317
1
MD5 (libpri-1.4.0.tar.gz) = 09b039226e43a810d523bc076823c6a9
2
SHA256 (libpri-1.2.4.tar.gz) = bbfaf5dff54934d844b3785e3fbd19817f0d80b1aa84153e5be40802c6b00d93
2
SHA256 (libpri-1.4.0.tar.gz) = 9f4db10a105545e68cbe0620795d2e11278828fa281ad339eeb72087125eeaf9
3
SIZE (libpri-1.2.4.tar.gz) = 76663
3
SIZE (libpri-1.4.0.tar.gz) = 80021
(-)files/patch-Makefile (-62 lines)
Removed Link Here
1
2
$FreeBSD: ports/misc/libpri/files/patch-Makefile,v 1.6 2006/06/19 07:52:13 sobomax Exp $
3
4
--- Makefile.orig
5
+++ Makefile
6
@@ -27,7 +27,7 @@
7
 # Uncomment if you want libpri to count number of Q921/Q931 sent/received
8
 #LIBPRI_COUNTERS=-DLIBPRI_COUNTERS
9
 
10
-CC=gcc
11
+CC?=gcc
12
 
13
 OSARCH=$(shell uname -s)
14
 PROC?=$(shell uname -m)
15
@@ -35,13 +35,13 @@
16
 TOBJS=testpri.o
17
 T2OBJS=testprilib.o
18
 STATIC_LIBRARY=libpri.a
19
-DYNAMIC_LIBRARY=libpri.so.1.0
20
+DYNAMIC_LIBRARY=libpri.so.1
21
 STATIC_OBJS=copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
22
 DYNAMIC_OBJS=copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
23
-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
24
-INSTALL_PREFIX=$(DESTDIR)
25
-INSTALL_BASE=/usr
26
-SOFLAGS = -Wl,-hlibpri.so.1.0
27
+CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g $(ALERTING) $(LIBPRI_COUNTERS)
28
+INSTALL_PREFIX=$(PREFIX)
29
+INSTALL_BASE=
30
+SOFLAGS = -Wl,-hlibpri.so.1
31
 LDCONFIG = /sbin/ldconfig
32
 ifneq (,$(findstring $(OSARCH), Linux GNU/kFreeBSD))
33
 LDCONFIG_FLAGS=-n
34
@@ -84,12 +84,11 @@
35
 	mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
36
 	mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
37
 ifneq (${OSARCH},SunOS)
38
-	install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
39
-	install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
40
-	if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled"); then  restorecon -v $(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
41
-	( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1.0 libpri.so ; ln -sf libpri.so.1.0 libpri.so.1 )
42
-	install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
43
-	if test $$(id -u) = 0; then $(LDCONFIG) $(LDCONFIG_FLAGS) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib; fi
44
+	echo installing libpri.h
45
+	$(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)/include
46
+	$(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/lib
47
+	( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1 libpri.so )
48
+	$(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)/lib
49
 else
50
 	install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
51
 	install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
52
@@ -130,10 +129,6 @@
53
 
54
 $(DYNAMIC_LIBRARY): $(DYNAMIC_OBJS)
55
 	$(CC) -shared $(SOFLAGS) -o $@ $(DYNAMIC_OBJS)
56
-	$(LDCONFIG) $(LDCONFIG_FLAGS) .
57
-	ln -sf libpri.so.1.0 libpri.so
58
-	ln -sf libpri.so.1.0 libpri.so.1
59
-	$(SOSLINK)
60
 
61
 clean:
62
 	rm -f *.o *.so *.lo *.so.1 *.so.1.0
(-)files/patch-mkdep (-8 lines)
Removed Link Here
1
--- mkdep.orig	Wed Nov 30 22:55:54 2005
2
+++ mkdep	Wed Nov 30 22:56:00 2005
3
@@ -1,4 +1,4 @@
4
-#!/bin/bash -
5
+#!/bin/sh -
6
 #
7
 #	$OpenBSD: mkdep.gcc.sh,v 1.8 1998/09/02 06:40:07 deraadt Exp $
8
 #	$NetBSD: mkdep.gcc.sh,v 1.9 1994/12/23 07:34:59 jtc Exp $

Return to bug 111555