freebsd-ports/devel/stlport/Makefile
Trevor Johnson d79d377611 The wchar.h header required by this port seems to have been added
to -STABLE without a change in __FreeBSD_version .  Check for the
existence of the header, and mark BROKEN if it is missing.

PR:		30121
Submitted by:	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2001-08-31 16:36:50 +00:00

54 lines
1.6 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: stlport
# Date Created: 2 December 1998
# Whom: Josh Gilliam <josh@quick.net>
#
# $FreeBSD$
#
PORTNAME= stlport
PORTVERSION= 4.0
CATEGORIES= devel
MASTER_SITES= http://www.stlport.com/archive/ \
http://www.stlport.com/beta/
DISTNAME= STLport-${PORTVERSION:S/.b/-b/}
MAINTAINER= ports@FreeBSD.org
.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
MAKEFILE= gcc.mak
ALL_TARGET= clean all
USE_GMAKE= yes
pre-build:
${LN} -sf /usr/include/g++ ${WRKSRC}/../include
post-build:
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
${MV} ${WRKSRC}/../lib/${lib} ${WRKSRC}/../lib/${lib}.4_0_${PORTREVISION}
.endfor
-# get list from `export' files in version 4.1, rather than do this
cd ${WRKSRC}/../stlport ; ${RM} -rf BC50 SC5 config/new_compiler old_hp
find ${WRKSRC}/../stlport -name "*.orig" -delete
do-install:
cd ${WRKSRC}/.. ; pax -rw stlport ${PREFIX}/include
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include
${CHMOD} -R ${SHAREMODE} ${PREFIX}/include
${CHMOD} -R ugo+X ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/../lib/* ${PREFIX}/lib
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
cd ${PREFIX}/lib ; ${LN} -sf ${lib}.4_0_${PORTREVISION} ${lib}
.endfor
${MKDIR} ${PREFIX}/share/doc/html/stlport/images
cd ${WRKSRC}/../doc ; ${INSTALL_MAN} *.css *.html ${PREFIX}/share/doc/html/stlport
cd ${WRKSRC}/../doc ; ${INSTALL_MAN} images/* ${PREFIX}/share/doc/html/stlport/images
.include <bsd.port.post.mk>