1999-10-26 09:51:26 +02:00
|
|
|
# ex:ts=8
|
2000-02-13 04:25:05 +01:00
|
|
|
# Ports collection makefile for: stlport
|
|
|
|
# Date Created: 2 December 1998
|
|
|
|
# Whom: Josh Gilliam <josh@quick.net>
|
1998-12-18 04:09:05 +01:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-12-18 04:09:05 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:44:42 +02:00
|
|
|
PORTNAME= stlport
|
2004-11-20 17:03:49 +01:00
|
|
|
PORTVERSION= 4.6.2
|
|
|
|
PORTREVISION?= 0
|
1998-12-18 04:09:05 +01:00
|
|
|
CATEGORIES= devel
|
2006-09-29 04:32:36 +02:00
|
|
|
MASTER_SITES= http://www.stlport.com/archive/ \
|
|
|
|
SF
|
2002-09-17 14:52:06 +02:00
|
|
|
PKGNAMESUFFIX= -${COMPILER}
|
2001-05-17 23:09:19 +02:00
|
|
|
DISTNAME= STLport-${PORTVERSION:S/.b/-b/}
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2004-11-20 17:08:47 +01:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT?= Adaptation of SGI's Standard Template Library
|
2001-05-31 00:27:35 +02:00
|
|
|
|
2001-08-31 18:36:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-25 09:47:20 +01:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
BROKEN= "Segfault during build on alpha"
|
2004-02-23 08:01:57 +01:00
|
|
|
.endif
|
|
|
|
|
2001-08-31 18:36:50 +02:00
|
|
|
.if !exists(/usr/include/wchar.h)
|
2001-12-24 23:17:44 +01:00
|
|
|
BROKEN= "Requires /usr/include/wchar.h for compilation"
|
2001-08-31 18:36:50 +02:00
|
|
|
.endif
|
|
|
|
|
2001-05-17 23:09:19 +02:00
|
|
|
WRKSRC= ${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}/src
|
2001-12-21 21:56:47 +01:00
|
|
|
PATCH_WRKSRC= ${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}
|
2001-03-21 03:27:08 +01:00
|
|
|
USE_GMAKE= yes
|
2002-09-17 14:52:06 +02:00
|
|
|
COMPILER?= gcc
|
|
|
|
MAKEFILE= ${COMPILER}-freebsd.mak
|
2003-12-22 16:28:18 +01:00
|
|
|
MAKE_ENV+= CC=${CC} CXX=${CXX}
|
2002-06-07 11:31:19 +02:00
|
|
|
MAKE_ARGS+= INSTALLDIR=${PREFIX} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \
|
|
|
|
PTHREAD_LIBS=${PTHREAD_LIBS}
|
2003-12-22 16:28:18 +01:00
|
|
|
PLIST_SUB+= COMPILER=${COMPILER}
|
2002-06-07 11:31:19 +02:00
|
|
|
|
2001-12-21 21:56:47 +01:00
|
|
|
INSTALL_TARGET= install_unix
|
2006-08-15 00:55:18 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-10-04 02:37:35 +02:00
|
|
|
|
2002-09-17 14:52:06 +02:00
|
|
|
.if ${COMPILER} == icc
|
2003-12-22 16:28:18 +01:00
|
|
|
CC= icc
|
|
|
|
CXX= icpc
|
|
|
|
CFLAGS= -O -ip -axiMKW
|
|
|
|
CXXFLAGS= ${CFLAGS}
|
|
|
|
.else
|
2003-12-22 16:40:52 +01:00
|
|
|
# There's segfault on -current if you use non default CFLAGS.
|
|
|
|
CFLAGS= -O -pipe
|
|
|
|
CXXFLAGS= ${CFLAGS}
|
2002-09-17 14:52:06 +02:00
|
|
|
.endif
|
|
|
|
|
2007-04-15 21:15:42 +02:00
|
|
|
.if ${COMPILER} == gcc && ${OSVERSION} >= 502126
|
2004-11-20 17:03:49 +01:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "If you have encounted a compiler internal error"
|
|
|
|
@${ECHO_MSG} "during building, do NOT 'make clean', simply continue"
|
|
|
|
@${ECHO_MSG} "building by type 'make ${.TARGET}' again."
|
|
|
|
@${ECHO_MSG}
|
2002-06-28 09:59:02 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-17 14:52:06 +02:00
|
|
|
post-patch:
|
|
|
|
@${CP} ${FILESDIR}/src::icc-freebsd.mak ${WRKSRC}/icc-freebsd.mak
|
|
|
|
@${CP} ${FILESDIR}/stlport::stl_icc.h \
|
|
|
|
${WRKSRC}/../stlport/config/stl_icc.h
|
|
|
|
@${CP} ${FILESDIR}/test::eh::icc-freebsd.mak \
|
|
|
|
${WRKSRC}/../test/eh/icc-freebsd.mak
|
|
|
|
|
2001-12-21 21:56:47 +01:00
|
|
|
post-install:
|
2002-06-25 16:19:45 +02:00
|
|
|
${FIND} ${PREFIX}/include/stlport -name \*.orig -delete
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-21 21:56:47 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/images
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*.css ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/images/* ${DOCSDIR}/images
|
|
|
|
.endif
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2007-04-15 21:15:42 +02:00
|
|
|
.if ${COMPILER} == icc
|
2002-06-28 09:59:02 +02:00
|
|
|
post-build: test
|
|
|
|
.endif
|
|
|
|
|
2003-10-05 10:29:55 +02:00
|
|
|
test: do-build
|
2003-12-22 16:28:18 +01:00
|
|
|
@cd ${WRKSRC}/../test/eh && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check_d
|
2002-03-11 00:24:14 +01:00
|
|
|
|
2001-08-31 18:36:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|