summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/patches/patch-af
blob: dc8ae6c8d0b6781487626b4d1087d81f895781df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-af,v 1.7 2009/05/10 11:24:27 hasso Exp $

--- Makefile.incl.orig	2007-08-30 15:10:20 +0300
+++ Makefile.incl	2009-05-08 12:55:42 +0300
@@ -603,6 +603,30 @@ ifeq (${PLATFORM}, FREEBSD)
   LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM}
 endif
 
+#=============== DRAGONFLY SPECIFIC OPTIONS =========================
+ifeq (${PLATFORM}, DRAGONFLY)
+  PLATFORM_COMPILE_OPTIONS = -D${PLATFORM}
+
+  ifeq (${LIBTYPE},shared)
+    PLATFORM_COMPILE_OPTIONS += -fPIC
+    MAKE_SHARED = ${CXX} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
+    MAKE_SHARED_C = ${CC} -D${PLATFORM} -shared -fPIC ${LDFLAGS}
+  endif
+
+  ifeq (${TRANSCODER}, ICU)
+    PLATFORM_COMPILE_OPTIONS += -I/usr/local/include
+    ALLLIBS = ${LIBS} -L/usr/local/lib -L${ICUROOT} -licuuc -licudata -lgcc
+  else
+    ALLLIBS = ${LIBS}
+  endif
+
+  SHLIBSUFFIX=.so
+  ICUSHLIBSUFFIX=.so
+  ## Compiler switch to embed a library name
+  LD_SONAME = -Wl,-soname,${SO_NAME}
+  LD_SODEPDOM = -Wl,-soname,${SO_DEPDOM}
+endif
+
 #=============== NETBSD SPECIFIC OPTIONS =========================
 ifeq (${PLATFORM}, NETBSD)
   PLATFORM_COMPILE_OPTIONS = -D${PLATFORM}
@@ -969,6 +993,10 @@ LINK_LIBNAME=xercesc
 LIBDEPDOM=libxercesdepdom
 endif
 
+ifeq (${TRANSCODER}, IconvGNU)
+    ALLLIBS += -liconv
+endif
+
 ###################### A_NAME ####################################
 #
 #