47fbd93ebd
(BUILDLINKS_DEPENDS change)
41 lines
1.5 KiB
Makefile
41 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2004/07/18 10:49:49 recht Exp $
|
|
#
|
|
|
|
DISTNAME= opencxx2512
|
|
PKGNAME= openc++-2.5.12
|
|
PKGREVISION= 2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opencxx/}
|
|
|
|
MAINTAINER= tech-pkg@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_GNU_TOOLS+= make
|
|
MAKEFILE= Makefile.SunOSandBSD
|
|
MAKE_FLAGS+= CXXFLAGS=-I${PREFIX}/include
|
|
MAKE_FLAGS+= GCLIBDIR=${BUILDLINK_DIR}
|
|
|
|
WRKSRC= ${WRKDIR}/openc++2.5.12/src/Unix
|
|
USE_BUILDLINK3= 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/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|