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

(-)xerces-c/Makefile (-5 / +3 lines)
Lines 30-36 Link Here
30
30
31
HAS_CONFIGURE=	yes
31
HAS_CONFIGURE=	yes
32
CONFIGURE_SCRIPT=	runConfigure
32
CONFIGURE_SCRIPT=	runConfigure
33
CONFIGURE_ENV+=	XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD"
33
CONFIGURE_ENV+=	XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD" \
34
		PTHREAD_LIBS="${PTHREAD_LIBS}" \
35
		PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
34
CONFIGURE_ARGS=	-p freebsd -n socket -P ${PREFIX}
36
CONFIGURE_ARGS=	-p freebsd -n socket -P ${PREFIX}
35
.if defined(NO_THREADS)
37
.if defined(NO_THREADS)
36
CONFIGURE_ARGS+=	-r none
38
CONFIGURE_ARGS+=	-r none
Lines 39-48 Link Here
39
PLIST_SUB+=	XERCESC_VER=${PORTVERSION:S/./_/g} \
41
PLIST_SUB+=	XERCESC_VER=${PORTVERSION:S/./_/g} \
40
42
41
.include <bsd.port.pre.mk>
43
.include <bsd.port.pre.mk>
42
43
.if ${OSVERSION} >= 502102
44
FORBIDDEN=	"Does not respect PTHREAD_{CFLAGS,LIBS}"
45
.endif
46
44
47
pre-configure:
45
pre-configure:
48
	${CHMOD} 700 ${CONFIGURE_WRKSRC}/runConfigure
46
	${CHMOD} 700 ${CONFIGURE_WRKSRC}/runConfigure
(-)xerces-c/files/patch-src::xercesc::runConfigure (+13 lines)
Line 0 Link Here
1
--- src/xercesc/runConfigure.orig	Wed Oct 20 12:25:47 2004
2
+++ src/xercesc/runConfigure	Wed Oct 20 12:26:33 2004
3
@@ -294,8 +294,8 @@
4
 				;;
5
 		esac
6
     elif test $platform = "freebsd"; then
7
-        threadingLibs="-pthread -lc_r"
8
-        threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
9
+        threadingLibs="${PTHREAD_LIBS}"
10
+        threadingDefines="${PTHREAD_CFLAGS} -DXML_USE_PTHREADS"
11
     elif test $platform = "aix"; then
12
         aix_version=`./config.guess`;
13
         echo Found host system to be $aix_version

Return to bug 72916