aboutsummaryrefslogtreecommitdiff
path: root/devel/stlport/Makefile
blob: e9be2833fb9001e15d149d1b8da6cbd19bd5d8a1 (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ex:ts=8
# Ports collection makefile for:  stlport
# Date Created:			  2 December 1998
# Whom:				  Josh Gilliam <josh@quick.net>
#
# $FreeBSD$
#

PORTNAME=	stlport
PORTVERSION=	4.5.3
CATEGORIES=	devel
MASTER_SITES=	http://www.stlport.com/archive/
DISTNAME=	STLport-${PORTVERSION:S/.b/-b/}

MAINTAINER=	pmarquis@pobox.com

.include <bsd.port.pre.mk>

.if !exists(/usr/include/wchar.h)
BROKEN=		"Requires /usr/include/wchar.h for compilation"
.endif

WRKSRC=		${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}/src
PATCH_WRKSRC=	${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}
USE_GMAKE=	yes
MAKEFILE=	gcc-freebsd.mak
MAKE_ARGS+=	INSTALLDIR=${PREFIX} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
		PTHREAD_LIBS=${PTHREAD_LIBS}

INSTALL_TARGET=	install_unix
INSTALLS_SHLIB=	yes

.if ${OSVERSION} < 440000
BROKEN=		"Not supported on systems prior to FreeBSD 4.4"
.endif

.if ${OSVERSION} < 460000
pre-everything:
	@${ECHO_MSG}
	@${ECHO_MSG} "There may be a bug in your version of gcc's exception"
	@${ECHO_MSG} "handling code.  Consider upgrading to FreeBSD 4.6"
	@${ECHO_MSG} "or above."
.endif

post-install:
	${FIND} ${PREFIX}/include/stlport -name \*.orig -delete
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}/images
	${INSTALL_DATA} ${WRKSRC}/../doc/*.css ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/../doc/images/* ${DOCSDIR}/images
.endif

.if ${OSVERSION} >= 46000
post-build:	test
.endif

test:
	cd ${WRKSRC}/../test/eh && ${SETENV} CC=${CC} CXX=${CXX} \
	${GMAKE} -f ${MAKEFILE} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
	PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
	PTHREAD_LIBS=${PTHREAD_LIBS} CC=${CC} CXX=${CXX}

.include <bsd.port.post.mk>