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 |