blob: 14d58c30518662dd22b0c6c413c807c664f31342 (
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
46
47
48
49
50
51
52
53
54
|
# 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>
|