blob: 0a015c978deba37511728cf8ecff1c3aac72ba91 (
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
|
# $NetBSD: Makefile,v 1.2 2003/03/29 12:41:28 jmmv Exp $
#
DISTNAME= opencxx2512
PKGNAME= openc++-2.5.12
WRKSRC= ${WRKDIR}/openc++2.5.12/src/Unix
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opencxx/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.csg.is.titech.ac.jp/~chiba/openc++.html
COMMENT= OpenC++ is a version of C++ with a Metaobject Protocol
USE_GMAKE= YES
MAKEFILE= Makefile.SunOSandBSD
MAKE_FLAGS+= CXXFLAGS=-I${PREFIX}/include
MAKE_FLAGS+= GCLIBDIR=${BUILDLINK_DIR}
USE_BUILDLINK2= YES
OPENCXX_SHAREDIR= ${PREFIX}/share/openc++
post-build:
${MV} ${WRKSRC}/../../sample/Makefile ${WRKSRC}/../../sample/Makefile.temp
${SED} -e "s|__LOCALBASE__|${LOCALBASE}|g" ${WRKSRC}/../../sample/Makefile.temp >${WRKSRC}/../../sample/Makefile
${RM} -f ${WRKSRC}/../../sample/Makefile.orig ${WRKSRC}/../../sample/Makefile.temp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/opencxx.a ${PREFIX}/lib/opencxx.a
${INSTALL_PROGRAM} ${WRKSRC}/occ ${PREFIX}/bin/occ
${INSTALL_DATA_DIR} ${OPENCXX_SHAREDIR}/examples
${INSTALL_DATA} ${WRKSRC}/../../sample/* ${OPENCXX_SHAREDIR}/examples/
${INSTALL_DATA_DIR} ${PREFIX}/include/openc++
${INSTALL_DATA} ${WRKSRC}/../*.h ${PREFIX}/include/openc++
${INSTALL_DATA_DIR} ${OPENCXX_SHAREDIR}/doc/html
${INSTALL_DATA} ${WRKSRC}/../../html/* ${OPENCXX_SHAREDIR}/doc/html
${INSTALL_DATA} ${WRKSRC}/../../reference.pdf ${OPENCXX_SHAREDIR}/doc
.include "../../devel/boehm-gc/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|