39 lines
1,012 B
Makefile
39 lines
1,012 B
Makefile
# $NetBSD: Makefile,v 1.28 2004/06/12 04:36:56 grant Exp $
|
|
#
|
|
|
|
DISTNAME= libg++-${GXXVERSION}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=libg++/}
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
COMMENT= GNU C++ Class Library
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-*
|
|
|
|
.if !exists(/usr/lib/libstdc++.so.2.0) && !exists(/usr/lib/libstdc++.so)
|
|
PKG_SKIP_REASON= '${PKGNAME} is part of your NetBSD-1.3.x distribution. This is designed for NetBSD>=1.4.'
|
|
.endif
|
|
|
|
# used by internal Makefile
|
|
GXXVERSION= 2.8.1.1a
|
|
|
|
MAKE_ENV+= GXXVERSION="${GXXVERSION}" NOPROFILE=1 NOGCCERROR=1
|
|
PLIST_SRC= ${WRKSRC}/.PLIST
|
|
|
|
USE_MAKEINFO= YES
|
|
INFO_FILES= libg++.info
|
|
|
|
do-configure:
|
|
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/g++/gen
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/genclass ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/libg++.info ${PREFIX}/info/
|
|
@(${CAT} ${PKGDIR}/PLIST.pre; cd ${PREFIX}; \
|
|
/bin/ls 2>/dev/null -1d lib/libg++*.a lib/libg++.so*) \
|
|
>${PLIST_SRC}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|