blob: 21b6fb2cb7dc88ad5685fcccbc528236ceab96a3 (
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
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.8 2000/08/11 20:20:38 jlam Exp $
DISTNAME= boost_all
PKGNAME= boost-1.17.0
CATEGORIES= devel
MASTER_SITES= http://www.boost.org/
EXTRACT_SUFX= .zip
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.boost.org/
# Need working <limits> and <memory> not present in NetBSD yet.
DEPENDS+= sgi-stl>=3.2:../../devel/sgi-stl
USE_LIBTOOL= # defined
DIST_SUBDIR= ${PKGNAME}
NO_WRKSUBDIR= # defined
BOOST_VERS= 0:0
MAKE_ENV+= BOOST_VERS="${BOOST_VERS}"
LIBDIR= ${PREFIX}/lib
INCDIR= ${PREFIX}/include/boost
HTMLDIR= ${PREFIX}/share/doc/html/boost
# 2-step extraction process:
#
# 1) Extract everything in text mode with CR/LF -> LF conversions.
# 2) Extract binary files in binary mode.
#
# We remove the dir_it library since our GCC (egcs-1.1.2) doesn't
# support namespaces and hence can't compile `struct iterator' needed
# by dir_it.
#
post-extract:
cd ${WRKSRC} && unzip -aaLo \
${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
cd ${WRKSRC} && unzip -aCLo \
${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} "*.gif" "*.jpg" "*.zip"
cd ${WRKSRC} && unzip -aaCLu \
libs/pri_queue/boost-heap-1.0.zip "boost/*"
${RM} -rf ${WRKSRC}/libs/dir_it
do-configure:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-build:
${FIND} ${WRKSRC}/libs \
\( -name "*.zip" -or -name "*.tgz" \
-or -name "*.orig" -or -name "*.bak" \
-or -name "c++boost.gif" \) \
-exec ${RM} -f {} \;
do-install:
cd ${WRKSRC}; ${LIBTOOL} ${INSTALL_DATA} libboost.la ${LIBDIR}
${CP} -R ${WRKSRC}/boost ${PREFIX}/include
${MKDIR} ${HTMLDIR}
${INSTALL_DATA} \
${WRKSRC}/c++boost.gif \
${WRKSRC}/index.htm \
${WRKSRC}/libraries.htm \
${HTMLDIR}
${CP} -R ${WRKSRC}/libs ${WRKSRC}/more ${HTMLDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INCDIR} ${HTMLDIR}
${CHMOD} -R a+r-w ${INCDIR} ${HTMLDIR}
.include "../../mk/bsd.pkg.mk"
|