2006-02-06 00:08:03 +01:00
|
|
|
# $NetBSD: Makefile,v 1.28 2006/02/05 23:08:20 joerg Exp $
|
2000-11-18 18:57:27 +01:00
|
|
|
#
|
|
|
|
|
2005-08-19 01:52:14 +02:00
|
|
|
DISTNAME= boolean_6_7
|
2000-11-18 18:57:27 +01:00
|
|
|
PKGNAME= boolean-${REL}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2000-11-18 18:57:27 +01:00
|
|
|
CATEGORIES= cad graphics
|
|
|
|
MASTER_SITES= http://www.xs4all.nl/~kholwerd/download/boolzip/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= dmcmahill@NetBSD.org
|
2000-11-18 18:57:27 +01:00
|
|
|
HOMEPAGE= http://www.xs4all.nl/~kholwerd/bool.html
|
2001-02-16 14:41:26 +01:00
|
|
|
COMMENT= GDSII viewer/editor + (boolean) operations on sets of 2d polygons
|
2000-11-18 18:57:27 +01:00
|
|
|
|
2002-03-17 18:20:01 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2005-08-19 01:52:14 +02:00
|
|
|
REL= 6.7
|
2002-08-17 07:59:00 +02:00
|
|
|
|
2003-05-22 05:00:57 +02:00
|
|
|
BUILD_DEPENDS+= cmake>=1.6.6:../../devel/cmake
|
|
|
|
|
2005-08-19 01:52:14 +02:00
|
|
|
WRKSRC= ${WRKDIR}/boolean
|
|
|
|
|
2005-11-20 15:10:31 +01:00
|
|
|
GCC_REQD+= 3.0
|
2005-09-11 14:42:46 +02:00
|
|
|
|
2005-08-19 01:52:14 +02:00
|
|
|
USE_TOOLS+= gmake pkg-config tar
|
2005-09-22 01:17:20 +02:00
|
|
|
USE_LANGUAGES= c++
|
2000-11-18 18:57:27 +01:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2003-05-16 01:02:05 +02:00
|
|
|
# the zip archive messes up the case of these files which breaks
|
|
|
|
# cmake.
|
2000-11-18 18:57:27 +01:00
|
|
|
post-patch:
|
2003-05-16 01:02:05 +02:00
|
|
|
for f in `${FIND} ${WRKSRC} -name cmakelists.txt -print`; do \
|
|
|
|
d=`${DIRNAME} $$f` ; \
|
|
|
|
n="$$d/CMakeLists.txt" ; \
|
|
|
|
${ECHO} "$$f -> $$n" ; \
|
|
|
|
${MV} $$f $$n ; done
|
2005-08-19 01:52:14 +02:00
|
|
|
${MV} ${WRKSRC}/bin/checkmsvc.cmake ${WRKSRC}/bin/CheckMSVC.cmake
|
|
|
|
${MV} ${WRKSRC}/bin/findpkgconfig.cmake ${WRKSRC}/bin/FindPkgConfig.cmake
|
|
|
|
${MV} ${WRKSRC}/bin/findwxwin.cmake ${WRKSRC}/bin/FindwxWin.cmake
|
|
|
|
${MV} ${WRKSRC}/bin/macros.cmake ${WRKSRC}/bin/Macros.cmake
|
2003-05-16 01:02:05 +02:00
|
|
|
${MV} -f ${WRKSRC}/bin/boolean ${WRKSRC}/bin/boolean.bak
|
|
|
|
${SED} 's;@prefix@;${PREFIX};g' ${WRKSRC}/bin/boolean.bak > \
|
|
|
|
${WRKSRC}/bin/boolean
|
2005-08-19 01:52:14 +02:00
|
|
|
${CP} -f ${WRKSRC}/apps/edit/include/valuesvc.h ${WRKSRC}/modules/kbool/include
|
2003-05-16 01:02:05 +02:00
|
|
|
|
|
|
|
do-configure:
|
2005-08-19 01:52:14 +02:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake \
|
|
|
|
-DWXWIDGET_GTK2=YES .
|
2000-11-18 18:57:27 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-05-16 01:02:05 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/boolean
|
|
|
|
cd ${WRKSRC}/apps/edit && \
|
2005-08-19 01:52:14 +02:00
|
|
|
${TAR} cf - default gdsuser | ${TAR} -xvf - -C ${PREFIX}/share/boolean
|
2003-05-16 01:02:05 +02:00
|
|
|
cd ${WRKSRC}/docs && \
|
2005-08-19 01:52:14 +02:00
|
|
|
${TAR} cf - html | ${TAR} -xvf - -C ${PREFIX}/share/boolean
|
2003-05-16 01:02:05 +02:00
|
|
|
${CHOWN} -R ${BINOWN}.${BINGRP} ${PREFIX}/share/boolean
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/boolean ${PREFIX}/bin/boolean
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/apps/edit/edit ${PREFIX}/bin/edit
|
|
|
|
|
2004-04-25 06:16:42 +02:00
|
|
|
.include "../../x11/wxGTK/buildlink3.mk"
|
2000-11-18 18:57:27 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|