pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
(cad/klayout) Candidate to update to 0.25. (but failing now
Module Name: pkgsrc-wip
Committed By: Makoto Fujiwara (CF-SX2) <makoto%ki.nu@localhost>
Pushed By: mef
Date: Sat Nov 18 23:16:47 2017 +0900
Changeset: 4fe26ec0e4d065a179928a1ffbcd2b18a784e3af
Added Files:
klayout/DESCR
klayout/Makefile
klayout/PLIST
klayout/distinfo
klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release
klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release
klayout/patches/patch-src_layApplication.cc
klayout/patches/patch-src_tlStream.cc
Log Message:
(cad/klayout) Candidate to update to 0.25. (but failing now
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4fe26ec0e4d065a179928a1ffbcd2b18a784e3af
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
klayout/DESCR | 8 +++
klayout/Makefile | 65 ++++++++++++++++++++++
klayout/PLIST | 12 ++++
klayout/distinfo | 10 ++++
...tch-config_Makefile_conf_freebsd-32-gcc-release | 56 +++++++++++++++++++
...atch-config_Makefile_conf_netbsd-32-gcc-release | 56 +++++++++++++++++++
klayout/patches/patch-src_layApplication.cc | 16 ++++++
klayout/patches/patch-src_tlStream.cc | 15 +++++
8 files changed, 238 insertions(+)
diffs:
diff --git a/klayout/DESCR b/klayout/DESCR
new file mode 100644
index 0000000000..11f7fc09ce
--- /dev/null
+++ b/klayout/DESCR
@@ -0,0 +1,8 @@
+ Although a comparatively simple piece of software, a layout viewer is not
+only just a tool for the chip design engineer. Today design's complexity
+require not only a simple "viewer". Rather, a viewer is the microscope
+through which the engineer looks at the design.
+
+There are numerous viewers available, but sadly there are not many which
+satisfy a few basic requirements. Most of them are commercial and
+expensive. If there is need for a simple, yet powerful viewer - here it is.
diff --git a/klayout/Makefile b/klayout/Makefile
new file mode 100644
index 0000000000..330f4bb070
--- /dev/null
+++ b/klayout/Makefile
@@ -0,0 +1,65 @@
+# $NetBSD: Makefile,v 1.9 2017/07/11 19:41:20 joerg Exp $
+
+DISTNAME= klayout-0.25
+CATEGORIES= cad
+MASTER_SITES= http://www.klayout.org/downloads/source/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.klayout.de/
+COMMENT= Simple GDS and OASIS file viewer and Editor
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= gmake bash
+
+CFLAGS+= -I${PREFIX}/include/python${PYVERSUFFIX}
+NO_CONFIGURE= yes
+WRKSRC= ${WRKDIR}
+
+SUBST_CLASSES+= rpath
+SUBST_MESSAGE.rpath= Add COMPILER_RPATH_FLAG and PREFIX to NetBSD specific config file
+SUBST_FILES.rpath+= config/Makefile.conf.netbsd-32-gcc-release
+SUBST_STAGE.rpath= post-patch
+SUBST_VARS.rpath= COMPILER_RPATH_FLAG PREFIX
+SUBST_SED.rpath= -e 's|@@LDFLAGS@@|${LDFLAGS}|'
+
+AUTO_MKDIRS= yes
+INSTALL_BINDIR= ${DESTDIR}${PREFIX}/bin
+INSTALL_LIBDIR= ${DESTDIR}${PREFIX}/lib
+REL_DIR= build.netbsd-32-gcc-release
+
+OTHER_BIN= \
+ strm2cif \
+ strm2dxf \
+ strm2gds \
+ strm2gdstxt \
+ strm2oas \
+ strm2txt \
+ strmclip \
+ strmcmp \
+ strmxor
+
+do-build:
+ cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${BASH} build.sh -python python${PYVERSSUFFIX} \
+ -qt4 \
+ -qmake ${PREFIX}/qt4/bin/qmake \
+ -ruby ${PREFIX}/bin/${RUBY_NAME}
+
+do-install:
+ (cd ${WRKSRC}; \
+ pwd; \
+ ${INSTALL_PROGRAM} ${REL_DIR}/main/klayout ${INSTALL_BINDIR}; \
+ ${INSTALL_LIB} ${REL_DIR}/main/libklayout.so ${INSTALL_LIBDIR} ;\
+ for bin in ${OTHER_BIN}; do \
+ ${INSTALL_PROGRAM} ${REL_DIR}/main/$$bin ${INSTALL_BINDIR} ;\
+ done ;\
+ ${CHMOD} 755 ${INSTALL_BINDIR}/* ;\
+ )
+
+.include "../../lang/python/pyversion.mk"
+.include "../../lang/ruby/buildlink3.mk"
+.include "../../x11/qt4-libs/buildlink3.mk"
+# libQtDesigner
+.include "../../x11/qt4-tools/buildlink3.mk"
+BUILDLINK_DEPMETHOD.qt4-tools= full
+.include "../../mk/bsd.pkg.mk"
diff --git a/klayout/PLIST b/klayout/PLIST
new file mode 100644
index 0000000000..1bcbb316b9
--- /dev/null
+++ b/klayout/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2016/03/15 15:15:59 mef Exp $
+bin/klayout
+bin/strm2cif
+bin/strm2dxf
+bin/strm2gds
+bin/strm2gdstxt
+bin/strm2oas
+bin/strm2txt
+bin/strmclip
+bin/strmcmp
+bin/strmxor
+lib/libklayout.so
diff --git a/klayout/distinfo b/klayout/distinfo
new file mode 100644
index 0000000000..3ad4cd8957
--- /dev/null
+++ b/klayout/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (klayout-0.25.tar.gz) = b335ddecbf774aeb0c2fcd77cad3565a7bb39812
+RMD160 (klayout-0.25.tar.gz) = 752150d582bb325c7fe5ad0cbf8d67946b0e0825
+SHA512 (klayout-0.25.tar.gz) = 0c05b0786e7e1dbf8035cbb3888eff776c0b96a4fcf2ebbc3065fe43340ae020b6713c2e1d2e7ab5caaf64d7ec84bea9d691ba6c0aea88e93c957530d3d4d114
+Size (klayout-0.25.tar.gz) = 16461165 bytes
+SHA1 (patch-config_Makefile_conf_freebsd-32-gcc-release) = 8ee1a6f42465ef650fbd26ec6dcdea4db249d018
+SHA1 (patch-config_Makefile_conf_netbsd-32-gcc-release) = 1fd264f8a25d4410cd48fcfbbbfbf149e65e3b22
+SHA1 (patch-src_layApplication.cc) = 510fad023dfcef928cb695963def0ce3d8b762fa
+SHA1 (patch-src_tlStream.cc) = aa3b781acad05e4ec45075b6d08750213ece3820
diff --git a/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release b/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release
new file mode 100644
index 0000000000..86f2629ab4
--- /dev/null
+++ b/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release
@@ -0,0 +1,56 @@
+$NetBSD: patch-config_Makefile_conf_freebsd-32-gcc-release,v 1.1 2016/03/15 15:15:59 mef Exp $
+
+Add FreeBSD, but not checked yet
+
+--- /dev/null 2013-04-27 17:36:48.000000000 +0900
++++ config/Makefile.conf.freebsd-32-gcc-release 2013-04-27 17:37:10.000000000 +0900
+@@ -0,0 +1,49 @@
++
++# Configuration file for
++# gcc, FreeBSD
++# release build
++
++# Compiler options
++
++AR=ar -r
++
++# Compiler general
++INC=-I$(TOP_SOURCE) -I$(SOURCE) -I. -I$(QTINCLUDE)
++DEFS=-DQT_THREAD_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
++
++# C++
++CXX?=gcc
++CXXOPT_DEP=-MM -MG
++CXXWARN=-Wall -Wno-deprecated -Woverloaded-virtual \
++ -Wsign-promo -Wsynth -Wno-long-long -Wno-strict-aliasing
++CXXOPT=${CXXFLAGS} -c -o
++CXXOPT_SO=-fPIC $(CXXOPT)
++
++# C
++CC?=gcc
++CCOPT_DEP=-MM -MG
++CCWARN=
++CCOPT=${CFLAGS} -c -o
++CCOPT_SO=-fPIC $(CCOPT)
++
++# Linker
++LINK?=${CXX}
++LOPT=${LDFLAGS} -g -Wl,-E -o
++LOPT_SO=${LDFLAGS} -g -shared -o
++
++LIBS=${PTHREAD_LIBS} -L$(QTLIB) -lQtGui -lQtCore -lQtXml -lQtNetwork -lQtSql -lQtDesigner -lrt -lm -lcrypt -lz
++
++.PHONY: install
++install:
++ mkdir -p $(INSTALL_BINDIR)
++ cp main/$(EXEC_NAME) $(INSTALL_BINDIR)
++ for bin in $(OTHER_BIN) ; \
++ do \
++ cp main/$$bin $(INSTALL_BINDIR) ; \
++ done
++ for plugin in $(PLUGINS) ; \
++ do \
++ cp $$plugin/*.so $(INSTALL_BINDIR) ; \
++ done
++ chmod 755 $(INSTALL_BINDIR) $(INSTALL_BINDIR)/*
++
diff --git a/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release b/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release
new file mode 100644
index 0000000000..7e31f4b9d0
--- /dev/null
+++ b/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release
@@ -0,0 +1,56 @@
+$NetBSD: patch-config_Makefile_conf_netbsd-32-gcc-release,v 1.1 2016/03/15 15:15:59 mef Exp $
+
+Add NetBSD
+
+--- /dev/null 2013-04-27 17:36:48.000000000 +0900
++++ config/Makefile.conf.netbsd-32-gcc-release 2013-04-27 17:37:10.000000000 +0900
+@@ -0,0 +1,49 @@
++
++# # Configuration file for
++# # gcc, NetBSD
++# # release build
++#
++# # Compiler options
++#
++AR=ar -r
++#
++# # Compiler general
++INC=-I$(TOP_SOURCE) -I$(SOURCE) -I. -I$(QTINCLUDE)
++DEFS=-DQT_THREAD_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
++#
++# # C++
++CXX=gcc
++CXXOPT_DEP=-MM -MG
++CXXWARN=-Wall -Wno-deprecated -Woverloaded-virtual \
++ -Wsign-promo -Wsynth -Wno-long-long -Wno-strict-aliasing
++CXXOPT=${CXXFLAGS} -c -o
++CXXOPT_SO=-fPIC $(CXXOPT)
++#
++# # C
++CC=gcc
++CCOPT_DEP=-MM -MG
++CCWARN=
++CCOPT=${CFLAGS} -c -o
++CCOPT_SO=-fPIC $(CCOPT)
++#
++# # Linker
++LINK=gcc
++LOPT=@@LDFLAGS@@ -g -Wl,-E -o
++LOPT_SO= @COMPILER_RPATH_FLAG@@PREFIX@/lib:@PREFIX@/qt-4/lib:/usr/lib @@LDFLAGS@@ -g -shared -o
++#
++LIBS=${PTHREAD_LIBS} -L$(QTLIB) -lQtGui -lQtCore -lQtXml -lQtNetwork -lQtSql -lQtDesigner -lrt -lm -lcrypt -lz
++
++#.PHONY: install
++#install:
++# mkdir -p $(INSTALL_BINDIR)
++# cp main/$(EXEC_NAME) $(INSTALL_BINDIR)
++# for bin in $(OTHER_BIN) ; \
++# do \
++# cp main/$$bin $(INSTALL_BINDIR) ; \
++# done
++# for plugin in $(PLUGINS) ; \
++# do \
++# cp $$plugin/*.so $(INSTALL_BINDIR) ; \
++# done
++# chmod 755 $(INSTALL_BINDIR) $(INSTALL_BINDIR)/*
++
diff --git a/klayout/patches/patch-src_layApplication.cc b/klayout/patches/patch-src_layApplication.cc
new file mode 100644
index 0000000000..f83a61aca4
--- /dev/null
+++ b/klayout/patches/patch-src_layApplication.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_layApplication.cc,v 1.2 2017/02/14 21:33:08 joerg Exp $
+
+To avoid following message
+error: 'struct sigaction' has no member named 'sa_restorer'
+
+
+--- src/lay/lay/layApplication.cc.orig 2017-11-08 04:48:15.000000000 +0900
++++ src/lay/lay/layApplication.cc 2017-11-17 20:32:08.822834411 +0900
+@@ -65,6 +65,7 @@
+ #include <QAction>
+ #include <QMessageBox>
+
++#include <unistd.h>
+ #include <iostream>
+ #include <memory>
+ #include <algorithm>
diff --git a/klayout/patches/patch-src_tlStream.cc b/klayout/patches/patch-src_tlStream.cc
new file mode 100644
index 0000000000..b7471b3988
--- /dev/null
+++ b/klayout/patches/patch-src_tlStream.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_tlStream.cc,v 1.2 2017/04/08 13:48:52 mef Exp $
+
+date: 2017-02-15 06:33:08 +0900; author: joerg; state: Exp; commitid: BDodrFgUrNgNVXFz;
+Add missing includes.
+
+--- src/tlStream.cc.orig 2017-02-09 18:57:16.170616732 +0000
++++ src/tl/tl/tlStream.cc
+@@ -28,6 +28,7 @@
+ #include <sys/stat.h>
+ #include <stdio.h>
+ #include <errno.h>
++#include <unistd.h>
+ #ifdef _WIN32
+ # include <io.h>
+ #endif
Home |
Main Index |
Thread Index |
Old Index