From dc69843481ce854d4e732f07b74899369d7c0a2d Mon Sep 17 00:00:00 2001 From: markd Date: Fri, 4 Jan 2008 20:34:13 +0000 Subject: Use USE_CMAKE rather that doing same explicitly. Package supports DESTDIR. --- cad/boolean/Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'cad') diff --git a/cad/boolean/Makefile b/cad/boolean/Makefile index 3dc7122d92c..fa7939d24c7 100644 --- a/cad/boolean/Makefile +++ b/cad/boolean/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2007/03/12 06:46:41 wiz Exp $ +# $NetBSD: Makefile,v 1.37 2008/01/04 20:34:13 markd Exp $ # DISTNAME= boolean_6_92 @@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.xs4all.nl/~kholwerd/bool.html COMMENT= GDSII viewer/editor + (boolean) operations on sets of 2d polygons +PKG_DESTDIR_SUPPORT= destdir + WRKSRC= ${WRKDIR}/boolean # avoid lowercasing files EXTRACT_OPTS_ZIP= -aqo @@ -19,6 +21,7 @@ EXTRACT_OPTS_ZIP= -aqo GCC_REQD+= 3.0 USE_TOOLS+= gmake pkg-config tar USE_LANGUAGES= c c++ +USE_CMAKE= yes SUBST_CLASSES+= prefix SUBST_FILES.prefix= bin/boolean @@ -28,20 +31,17 @@ SUBST_MESSAGE.prefix= Fixing installation prefix. INSTALLATION_DIRS= bin -do-configure: - cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake \ - -DWXWIDGET_GTK2=YES . +CMAKE_ARGS+= -DWXWIDGET_GTK2=YES do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/boolean + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/boolean cd ${WRKSRC}/apps/edit \ - && ${PAX} -rw default gdsuser ${PREFIX}/share/boolean + && ${PAX} -rw default gdsuser ${DESTDIR}${PREFIX}/share/boolean cd ${WRKSRC}/docs \ - && ${PAX} -rw html ${PREFIX}/share/boolean - ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/boolean - ${INSTALL_SCRIPT} ${WRKSRC}/bin/boolean ${PREFIX}/bin/boolean - ${INSTALL_PROGRAM} ${WRKSRC}/apps/edit/edit ${PREFIX}/bin/edit + && ${PAX} -rw html ${DESTDIR}${PREFIX}/share/boolean + ${CHOWN} -R ${BINOWN}:${BINGRP} ${DESTDIR}${PREFIX}/share/boolean + ${INSTALL_SCRIPT} ${WRKSRC}/bin/boolean ${DESTDIR}${PREFIX}/bin/boolean + ${INSTALL_PROGRAM} ${WRKSRC}/apps/edit/edit ${DESTDIR}${PREFIX}/bin/edit -.include "../../devel/cmake/buildlink3.mk" .include "../../x11/wxGTK/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3