summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2008-01-04 20:34:13 +0000
committermarkd <markd@pkgsrc.org>2008-01-04 20:34:13 +0000
commitdc69843481ce854d4e732f07b74899369d7c0a2d (patch)
treedc4ead7b21ff2b62bc4264347fe60babcb33748b /cad
parent8b618a20a197faa7d96921d06199cc9d808c3927 (diff)
downloadpkgsrc-dc69843481ce854d4e732f07b74899369d7c0a2d.tar.gz
Use USE_CMAKE rather that doing same explicitly.
Package supports DESTDIR.
Diffstat (limited to 'cad')
-rw-r--r--cad/boolean/Makefile22
1 files changed, 11 insertions, 11 deletions
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"