summaryrefslogtreecommitdiff
path: root/cad/klayout/patches
diff options
context:
space:
mode:
authormef <mef>2016-03-15 15:15:59 +0000
committermef <mef>2016-03-15 15:15:59 +0000
commit3087387d9cc5e82f0a8111f02f59417b1938d9be (patch)
tree19c1d9336a3a0667beef41b3a99e5643ac0b0da7 /cad/klayout/patches
parenta781d9a99625154e84a6cd6ec419ba4bb8ff79f0 (diff)
downloadpkgsrc-3087387d9cc5e82f0a8111f02f59417b1938d9be.tar.gz
Import klayout-0.24.5 as cad/klayout.
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.
Diffstat (limited to 'cad/klayout/patches')
-rw-r--r--cad/klayout/patches/patch-build.sh19
-rw-r--r--cad/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release56
-rw-r--r--cad/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release56
-rw-r--r--cad/klayout/patches/patch-src_layApplication.cc16
4 files changed, 147 insertions, 0 deletions
diff --git a/cad/klayout/patches/patch-build.sh b/cad/klayout/patches/patch-build.sh
new file mode 100644
index 00000000000..d467b2ff34a
--- /dev/null
+++ b/cad/klayout/patches/patch-build.sh
@@ -0,0 +1,19 @@
+$NetBSD: patch-build.sh,v 1.1 2016/03/15 15:15:59 mef Exp $
+
+Add NetBSD and FreeBSD
+
+--- build.sh.orig 2016-02-27 07:20:29.000000000 +0900
++++ build.sh 2016-03-08 23:14:50.000000000 +0900
+@@ -39,6 +39,12 @@ Darwin*)
+ PLATFORM="mac-yosemite-gcc-release"
+ EXEC_HOLDER="klayout.app/Contents/MacOS"
+ ;;
++FreeBSD)
++ PLATFORM="freebsd-32-gcc-release"
++ ;;
++NetBSD)
++ PLATFORM="netbsd-32-gcc-release"
++ ;;
+ *)
+ # Assume Linux for the remaining variants
+ case `arch` in
diff --git a/cad/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release b/cad/klayout/patches/patch-config_Makefile_conf_freebsd-32-gcc-release
new file mode 100644
index 00000000000..86f2629ab41
--- /dev/null
+++ b/cad/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/cad/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release b/cad/klayout/patches/patch-config_Makefile_conf_netbsd-32-gcc-release
new file mode 100644
index 00000000000..7e31f4b9d02
--- /dev/null
+++ b/cad/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/cad/klayout/patches/patch-src_layApplication.cc b/cad/klayout/patches/patch-src_layApplication.cc
new file mode 100644
index 00000000000..9296289cadc
--- /dev/null
+++ b/cad/klayout/patches/patch-src_layApplication.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_layApplication.cc,v 1.1 2016/03/15 15:15:59 mef Exp $
+
+To avoid following message
+error: 'struct sigaction' has no member named 'sa_restorer'
+
+--- src/layApplication.cc.orig 2016-02-27 07:20:30.000000000 +0900
++++ src/layApplication.cc 2016-03-08 23:52:13.000000000 +0900
+@@ -349,7 +349,7 @@ static void install_signal_handlers ()
+ act.sa_sigaction = signal_handler;
+ sigemptyset (&act.sa_mask);
+ act.sa_flags = SA_SIGINFO;
+-#if !defined(__APPLE__)
++#if !defined(__APPLE__) && !defined(__NetBSD__)
+ act.sa_restorer = 0;
+ #endif
+