blob: b2276583eb6393c1b5b5095faac57c084e641c37 (
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
55
56
57
58
59
60
61
|
# $NetBSD: Makefile,v 1.31 2008/03/03 17:45:37 jlam Exp $
DISTNAME= STLport-4.6
PKGNAME= stlport-4.6
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.stlport.com/archive/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.stlport.org/
COMMENT= Complete C++ standard library
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
NO_CONFIGURE= yes
BUILD_DIRS= src
MAKE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
MAKE_FILE= gcc-libtool.mak
PTHREAD_OPTS+= require
PTHREAD_AUTO_VARS= yes
LDFLAGS+= ${PTHREAD_LIBS}
LIBDIR= ${PREFIX}/lib
HTMLDIR= ${PREFIX}/share/doc/html/stlport
INSTALLATION_DIRS= include lib
pre-install:
cd ${WRKSRC:Q}/stlport && ${RM} -rf BC50 config/new_compiler old_hp
do-install:
set -e; \
cd ${WRKSRC:Q}; \
${FIND} stlport -type d -print \
| while read d; do \
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/include/"$$d"; \
done; \
${FIND} stlport -type f ! -name "*.orig" -print \
| while read f; do \
${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX:Q}/include/"$$f"; \
done
set -e; \
for lib in \
libstlport_gcc.la \
libstlport_gcc_stldebug.la; \
do \
${LIBTOOL} ${INSTALL_LIB} ${WRKSRC:Q}/lib/"$$lib" ${DESTDIR}${LIBDIR:Q}; \
done
${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR:Q}
${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR:Q}/images
cd ${WRKSRC:Q}/doc && ${INSTALL_DATA} *.css *.html ${DESTDIR}${HTMLDIR:Q}
cd ${WRKSRC:Q}/doc && ${INSTALL_DATA} images/* ${DESTDIR}${HTMLDIR:Q}/images
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|