pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cad/boolean Use USE_CMAKE rather that doing same expli...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e37fb9c1b1c6
branches:  trunk
changeset: 537202:e37fb9c1b1c6
user:      markd <markd%pkgsrc.org@localhost>
date:      Fri Jan 04 20:34:13 2008 +0000

description:
Use USE_CMAKE rather that doing same explicitly.
Package supports DESTDIR.

diffstat:

 cad/boolean/Makefile |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (54 lines):

diff -r 5951efd60fd0 -r e37fb9c1b1c6 cad/boolean/Makefile
--- a/cad/boolean/Makefile      Fri Jan 04 20:23:45 2008 +0000
+++ b/cad/boolean/Makefile      Fri Jan 04 20:34:13 2008 +0000
@@ -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 @@
 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 @@
 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 @@
 
 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"



Home | Main Index | Thread Index | Old Index