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
|
2001-03-21 03:27:08 +01:00
|
|
|
PORTVERSION= 4.0
|
1998-12-18 04:09:05 +01:00
|
|
|
CATEGORIES= devel
|
2001-05-17 23:09:19 +02:00
|
|
|
MASTER_SITES= http://www.stlport.com/archive/ \
|
|
|
|
http://www.stlport.com/beta/
|
|
|
|
DISTNAME= STLport-${PORTVERSION:S/.b/-b/}
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2001-08-22 00:54:13 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2001-05-31 00:27:35 +02:00
|
|
|
|
2001-08-31 18:36:50 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !exists(/usr/include/wchar.h)
|
|
|
|
BROKEN= "requires /usr/include/wchar.h for compilation"
|
|
|
|
.endif
|
|
|
|
|
2001-05-17 23:09:19 +02:00
|
|
|
WRKSRC= ${WRKDIR}/STLport-${PORTVERSION:S/.b/b/}/src
|
2001-03-21 03:27:08 +01:00
|
|
|
MAKEFILE= gcc.mak
|
|
|
|
ALL_TARGET= clean all
|
|
|
|
USE_GMAKE= yes
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2001-10-04 02:37:35 +02:00
|
|
|
FIND?= /usr/bin/find
|
|
|
|
|
2001-10-17 18:01:20 +02:00
|
|
|
.if ${OSVERSION} < 440000
|
|
|
|
BROKEN= "Not supported on systems prior to FreeBSD 4.4"
|
|
|
|
.endif
|
|
|
|
|
2001-05-17 23:09:19 +02:00
|
|
|
pre-build:
|
2001-10-04 02:37:35 +02:00
|
|
|
@${LN} -sf /usr/include/g++ ${WRKSRC}/../include
|
2001-05-17 23:09:19 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
|
2001-10-04 02:37:35 +02:00
|
|
|
@${MV} ${WRKSRC}/../lib/${lib} ${WRKSRC}/../lib/${lib}.4_0_${PORTREVISION}
|
2001-05-17 23:09:19 +02:00
|
|
|
.endfor
|
|
|
|
-# get list from `export' files in version 4.1, rather than do this
|
2001-10-04 02:37:35 +02:00
|
|
|
@cd ${WRKSRC}/../stlport ; ${RM} -rf BC50 SC5 config/new_compiler old_hp
|
|
|
|
@${FIND} ${WRKSRC}/../stlport -name "*.orig" -delete
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2001-05-17 23:09:19 +02:00
|
|
|
do-install:
|
2001-10-04 02:37:35 +02:00
|
|
|
@cd ${WRKSRC}/.. ; pax -rw stlport ${PREFIX}/include
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include/stlport
|
|
|
|
@${CHMOD} -R ${SHAREMODE} ${PREFIX}/include/stlport
|
|
|
|
@${FIND} ${PREFIX}/include/stlport -type d -exec ${CHMOD} 0755 {} \;
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/../lib/* ${PREFIX}/lib
|
2001-05-17 23:09:19 +02:00
|
|
|
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
|
2001-10-04 02:37:35 +02:00
|
|
|
@cd ${PREFIX}/lib ; ${LN} -sf ${lib}.4_0_${PORTREVISION} ${lib}
|
1998-12-18 04:09:05 +01:00
|
|
|
.endfor
|
2001-10-04 02:37:35 +02:00
|
|
|
@${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
|
1998-12-18 04:09:05 +01:00
|
|
|
|
2001-08-31 18:36:50 +02:00
|
|
|
.include <bsd.port.post.mk>
|