summaryrefslogtreecommitdiffstats
path: root/textproc/xerces-c/Makefile
blob: 9f05224d3e598630ca676ea64e55248a8b44d06d (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
# New ports collection makefile for: xerces-c
# Date created:        29 December 2001
# Whom:                kiesel
#
# $FreeBSD$
#

PORTNAME=	xerces_c
PORTVERSION=	1.7.0
CATEGORIES=	textproc
MASTER_SITES=	http://xml.apache.org/dist/xerces-c/stable/ \
		http://document-root.de/xerces-c-mirror/
DISTNAME=	xerces-c-src${PORTVERSION:S/./_/g}

MAINTAINER=	ports@FreeBSD.org

INSTALLS_SHLIB=yes
LDCONFIG_DIRS= ${PREFIX}/lib

XERCESWRKSRC=	${WRKSRC}/src/xercesc
CONFIGURE_WRKSRC= ${XERCESWRKSRC}
BUILD_WRKSRC=     ${XERCESWRKSRC}
INSTALL_WRKSRC=   ${XERCESWRKSRC}

USE_GMAKE=	yes
MAKE_ENV+=	XERCESCROOT=${WRKSRC}

GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	XERCESCROOT=${WRKSRC} TRANSCODER="IconvFBSD"
CONFIGURE_SCRIPT= runConfigure
CONFIGURE_ARGS=	-p freebsd -n socket -P ${PREFIX}
.if defined(NO_THREADS)
CONFIGURE_ARGS+= -r none
.endif

PLIST_SUB+=	XERCESC_VER=${PORTVERSION:S/./_/g} \

pre-configure:
	${CHMOD} 700 ${CONFIGURE_WRKSRC}/runConfigure
	${CHMOD} 700 ${CONFIGURE_WRKSRC}/configure

post-install:
	${STRIP_CMD} ${PREFIX}/lib/libxerces-c${PORTVERSION:S/./_/g}.so

.include <bsd.port.mk>
OpenPOWER on IntegriCloud