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

(-)xerces-c2/Makefile (-9 / +40 lines)
Lines 7-19 Link Here
7
7
8
PORTNAME=	xerces-c2
8
PORTNAME=	xerces-c2
9
PORTVERSION=	2.1.0
9
PORTVERSION=	2.1.0
10
PORTREVISION=	1
10
CATEGORIES=	textproc
11
CATEGORIES=	textproc
11
MASTER_SITES=	http://xml.apache.org/dist/xerces-c/stable/
12
MASTER_SITES=	http://xml.apache.org/dist/xerces-c/stable/
12
DISTNAME=	xerces-c-src${PORTVERSION:S/./_/g}
13
DISTNAME=	xerces-c-src${PORTVERSION:S/./_/g}
13
14
14
MAINTAINER?=	bzeeb+freebsdports@zabbadoz.net
15
MAINTAINER?=	bzeeb+freebsdports@zabbadoz.net
15
16
16
LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
17
.if !defined(TRANSCODER)
18
LIB_DEPENDS+=		iconv.3:${PORTSDIR}/converters/libiconv
19
TRANSCODER=		"IconvFBSD"
20
PLIST_SUB+=		TRANSICONV=""
21
PLIST_SUB+=		TRANSICU="@comment "
22
.else
23
.if (${TRANSCODER} == "icu")
24
LIB_DEPENDS+=		icuuc.22:${PORTSDIR}/devel/icu
25
ICUROOT?=		${LOCALBASE}
26
CONFIGURE_ENV+=		ICUROOT=${ICUROOT} LDFLAGS="-L${LOCALBASE}/lib"
27
MAKE_ENV+=		ICUROOT=${ICUROOT} LDFLAGS="-L${LOCALBASE}/lib"
28
PLIST_SUB+=		TRANSICONV="@comment "
29
PLIST_SUB+=		TRANSICU=""
30
.elif (${TRANSCODER} == "native")
31
PLIST_SUB+=		TRANSICONV=""
32
PLIST_SUB+=		TRANSICU="@comment "
33
.else
34
LIB_DEPENDS+=		iconv.3:${PORTSDIR}/converters/libiconv
35
TRANSCODER=		"IconvFBSD"
36
PLIST_SUB+=		TRANSICONV=""
37
PLIST_SUB+=		TRANSICU="@comment "
38
.endif
39
.endif
17
40
18
# expect this to get broken some day
41
# expect this to get broken some day
19
NO_FILTER_SHLIBS=	yes
42
NO_FILTER_SHLIBS=	yes
Lines 30-47 Link Here
30
MAKE_ENV+=		XERCESCROOT=${WRKSRC}
53
MAKE_ENV+=		XERCESCROOT=${WRKSRC}
31
54
32
GNU_CONFIGURE=		yes
55
GNU_CONFIGURE=		yes
33
CONFIGURE_ENV+=		XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD"
56
CONFIGURE_ENV+=		XERCESCROOT=${WRKSRC} TRANSCODER=${TRANSCODER}
34
CONFIGURE_SCRIPT=	runConfigure
57
CONFIGURE_SCRIPT=	runConfigure
35
CONFIGURE_ARGS?=	-p freebsd -x g++ -n socket -P ${PREFIX}
58
CONFIGURE_ARGS?=	-p freebsd -c ${CC} -x ${CXX} -n socket -P ${PREFIX}
36
59
37
CONFIGURE_ARGS+=	-t IconvFBSD
60
CONFIGURE_ARGS+=	-t ${TRANSCODER}
38
61
39
.if defined(NO_THREADS)
62
.if defined(NO_THREADS)
40
CONFIGURE_ARGS+=	-r none
63
CONFIGURE_ARGS+=	-r none
41
.endif
64
.endif
42
65
43
XERCESC_LIB_VERSIO=	${PORTVERSION:S/.//}
66
XERCESC_LIB_VERSION=	${PORTVERSION:S/.//:R}
44
XERCESC_LIB_VERSION=	${XERCESC_LIB_VERSIO:R}
45
XERCESC_LIB=		libxerces-c.so.${PORTVERSION:S/.//}
67
XERCESC_LIB=		libxerces-c.so.${PORTVERSION:S/.//}
46
PLIST_SUB+=		XERCESC_LIB=${XERCESC_LIB} \
68
PLIST_SUB+=		XERCESC_LIB=${XERCESC_LIB} \
47
				XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION}
69
				XERCESC_LIB_VERSION=${XERCESC_LIB_VERSION}
Lines 62-68 Link Here
62
pre-fetch:
84
pre-fetch:
63
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
85
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
64
	@(/usr/bin/dialog --textbox ${MASTERDIR}/pkg-message 15 75 || \
86
	@(/usr/bin/dialog --textbox ${MASTERDIR}/pkg-message 15 75 || \
65
		/usr/bin/true)
87
		${TRUE})
66
	@${ECHO} ''
88
	@${ECHO} ''
67
	@${ECHO} 'You may use the following build options by defining'
89
	@${ECHO} 'You may use the following build options by defining'
68
	@${ECHO} 'them on the command line with -D'
90
	@${ECHO} 'them on the command line with -D'
Lines 71-76 Link Here
71
	@${ECHO} 'NO_SAMPLES	do not copy sample binaries and sources'
93
	@${ECHO} 'NO_SAMPLES	do not copy sample binaries and sources'
72
	@${ECHO} 'NOPORTDOCS	do not copy documentation'
94
	@${ECHO} 'NOPORTDOCS	do not copy documentation'
73
	@${ECHO} ''
95
	@${ECHO} ''
96
	@${ECHO} 'TRANSCODER=[icu|IconvFBSD|native]	default: IconvFBSD'
97
	@${ECHO} ''
74
	@/bin/sleep 2
98
	@/bin/sleep 2
75
.endif
99
.endif
76
100
Lines 87-103 Link Here
87
111
88
post-configure:
112
post-configure:
89
.if !defined(NO_SAMPLES)
113
.if !defined(NO_SAMPLES)
114
.if defined(TRANSCODER) && (${TRANSCODER} == "icu")
115
	@(cd ${WRKSRC}/samples && \
116
		export XERCESCROOT=${WRKSRC} && \
117
		export ICUROOT=${ICUROOT} && \
118
		export LDFLAGS="-L${LOCALBASE}/lib" && \
119
		${SH} runConfigure ${SAMPLES_CONFIG_ARGS})
120
.else
90
	@(cd ${WRKSRC}/samples && \
121
	@(cd ${WRKSRC}/samples && \
91
		export XERCESCROOT=${WRKSRC} && \
122
		export XERCESCROOT=${WRKSRC} && \
92
		${SH} runConfigure ${SAMPLES_CONFIG_ARGS})
123
		${SH} runConfigure ${SAMPLES_CONFIG_ARGS})
93
.endif
124
.endif
125
.endif
94
126
95
post-install:
127
post-install:
96
	@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
128
	@${STRIP_CMD} ${PREFIX}/lib/${XERCESC_LIB}
97
	@${LN} -sf ${XERCESC_LIB} ${PREFIX}/lib/libxerces-c.so
129
	@${LN} -sf ${XERCESC_LIB} ${PREFIX}/lib/libxerces-c.so
98
	@${LN} -sf ${XERCESC_LIB} \
130
	@${LN} -sf ${XERCESC_LIB} \
99
		${PREFIX}/lib/libxerces-c.so.${XERCESC_LIB_VERSION:R}
131
		${PREFIX}/lib/libxerces-c.so.${XERCESC_LIB_VERSION}
100
101
.if !defined(NOPORTDOCS)
132
.if !defined(NOPORTDOCS)
102
	@${MKDIR} ${PREFIX}/share/doc/xerces-c
133
	@${MKDIR} ${PREFIX}/share/doc/xerces-c
103
	@${CP} -r ${WRKSRC}/doc/ ${PREFIX}/share/doc/xerces-c/
134
	@${CP} -r ${WRKSRC}/doc/ ${PREFIX}/share/doc/xerces-c/
(-)xerces-c2/pkg-plist (-2 / +4 lines)
Lines 131-137 Link Here
131
include/xercesc/util/AutoSense.hpp
131
include/xercesc/util/AutoSense.hpp
132
include/xercesc/util/XMLDeleterFor.c
132
include/xercesc/util/XMLDeleterFor.c
133
include/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
133
include/xercesc/util/Platforms/FreeBSD/FreeBSDDefs.hpp
134
include/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.hpp
134
%%TRANSICONV%%include/xercesc/util/Transcoders/IconvFBSD/IconvFBSDTransService.hpp
135
%%TRANSICU%%include/xercesc/util/Transcoders/ICU/ICUTransService.hpp
135
include/xercesc/util/MsgLoaders/InMemory/InMemMsgLoader.hpp
136
include/xercesc/util/MsgLoaders/InMemory/InMemMsgLoader.hpp
136
include/xercesc/util/MsgLoaders/InMemory/CppErrMsgs_EN_US.hpp
137
include/xercesc/util/MsgLoaders/InMemory/CppErrMsgs_EN_US.hpp
137
include/xercesc/util/Compilers/BorlandCDefs.hpp
138
include/xercesc/util/Compilers/BorlandCDefs.hpp
Lines 392-398 Link Here
392
@dirrm include/xercesc/util/Compilers
393
@dirrm include/xercesc/util/Compilers
393
@dirrm include/xercesc/util/MsgLoaders/InMemory
394
@dirrm include/xercesc/util/MsgLoaders/InMemory
394
@dirrm include/xercesc/util/MsgLoaders
395
@dirrm include/xercesc/util/MsgLoaders
395
@dirrm include/xercesc/util/Transcoders/IconvFBSD
396
%%TRANSICONV%%@dirrm include/xercesc/util/Transcoders/IconvFBSD
397
%%TRANSICU%%@dirrm include/xercesc/util/Transcoders/ICU
396
@dirrm include/xercesc/util/Transcoders
398
@dirrm include/xercesc/util/Transcoders
397
@dirrm include/xercesc/util/Platforms/FreeBSD
399
@dirrm include/xercesc/util/Platforms/FreeBSD
398
@dirrm include/xercesc/util/Platforms
400
@dirrm include/xercesc/util/Platforms

Return to bug 44590