Lines 1-8
Link Here
|
1 |
|
1 |
--- cdr/Makefile.orig Thu Sep 21 17:18:19 2006 |
2 |
$FreeBSD: ports/net/asterisk/files/patch-cdr::Makefile,v 1.7 2006/04/26 11:31:03 fjoe Exp $ |
2 |
+++ cdr/Makefile Thu Oct 19 10:52:51 2006 |
3 |
|
|
|
4 |
--- cdr/Makefile.orig Tue Nov 29 20:24:39 2005 |
5 |
+++ cdr/Makefile Thu Jan 12 17:56:23 2006 |
6 |
@@ -21,8 +21,8 @@ |
3 |
@@ -21,8 +21,8 @@ |
7 |
endif |
4 |
endif |
8 |
|
5 |
|
Lines 14-20
Link Here
|
14 |
endif |
11 |
endif |
15 |
|
12 |
|
16 |
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. |
13 |
#The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. |
17 |
@@ -38,18 +38,18 @@ |
14 |
@@ -38,21 +38,21 @@ |
18 |
# |
15 |
# |
19 |
# unixODBC stuff... |
16 |
# unixODBC stuff... |
20 |
# |
17 |
# |
Lines 27-43
Link Here
|
27 |
# FreeTDS stuff... |
24 |
# FreeTDS stuff... |
28 |
# |
25 |
# |
29 |
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) |
26 |
-ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) |
30 |
- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) |
27 |
- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.64),1) |
31 |
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) |
28 |
+ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tds.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/include/freetds/tds.h),) |
32 |
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) |
29 |
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.64),1) |
33 |
CFLAGS += -DFREETDS_0_63 |
30 |
CFLAGS += -DFREETDS_0_64 |
34 |
else |
31 |
else |
35 |
- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) |
32 |
- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) |
36 |
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) |
33 |
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.63),1) |
37 |
CFLAGS += -DFREETDS_0_62 |
34 |
CFLAGS += -DFREETDS_0_63 |
38 |
else |
35 |
else |
39 |
CFLAGS += -DFREETDS_PRE_0_62 |
36 |
- ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/local/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) |
40 |
@@ -61,7 +61,7 @@ |
37 |
+ ifeq ($(shell grep -s TDS_VERSION_NO $(CROSS_COMPILE_TARGET)/usr/include/tdsver.h $(CROSS_COMPILE_TARGET)$(LOCALBASE)/include/tdsver.h $(CROSS_COMPILE_TARGET)/usr/include/freetds/tdsver.h | grep -c 0.62),1) |
|
|
38 |
CFLAGS += -DFREETDS_0_62 |
39 |
else |
40 |
CFLAGS += -DFREETDS_PRE_0_62 |
41 |
@@ -65,7 +65,7 @@ |
41 |
# |
42 |
# |
42 |
# PGSQL stuff... Autoconf anyone?? |
43 |
# PGSQL stuff... Autoconf anyone?? |
43 |
# |
44 |
# |
Lines 46-52
Link Here
|
46 |
MODS+=cdr_pgsql.so |
47 |
MODS+=cdr_pgsql.so |
47 |
endif |
48 |
endif |
48 |
|
49 |
|
49 |
@@ -82,9 +82,9 @@ |
50 |
@@ -86,9 +86,9 @@ |
50 |
MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/pgsql |
51 |
MLFLAGS+=-L$(CROSS_COMPILE_TARGET)/usr/lib/pgsql |
51 |
endif |
52 |
endif |
52 |
|
53 |
|
Lines 59-65
Link Here
|
59 |
endif |
60 |
endif |
60 |
|
61 |
|
61 |
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/opt/pgsql/include),) |
62 |
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/opt/pgsql/include),) |
62 |
@@ -110,7 +110,7 @@ |
63 |
@@ -114,7 +114,7 @@ |
63 |
all: depend $(MODS) |
64 |
all: depend $(MODS) |
64 |
|
65 |
|
65 |
install: all |
66 |
install: all |