aboutsummaryrefslogtreecommitdiff
path: root/cad/klayout
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2014-03-14 13:54:48 +0000
committerHiroki Sato <hrs@FreeBSD.org>2014-03-14 13:54:48 +0000
commit5719efe0d328957d28abbdc17253927b70290813 (patch)
tree1436beb47e9451d2f0f10c2e2337edaf136df878 /cad/klayout
parentf219c09863b52709e86c66651284ef1a4f73de4a (diff)
downloadports-5719efe0d328957d28abbdc17253927b70290813.tar.gz
ports-5719efe0d328957d28abbdc17253927b70290813.zip
Notes
Diffstat (limited to 'cad/klayout')
-rw-r--r--cad/klayout/Makefile29
-rw-r--r--cad/klayout/distinfo4
-rw-r--r--cad/klayout/files/patch-build.sh18
-rw-r--r--cad/klayout/files/patch-config-Makefile.conf26
-rw-r--r--cad/klayout/files/patch-src-tlStream.cc37
-rw-r--r--cad/klayout/pkg-descr2
6 files changed, 83 insertions, 33 deletions
diff --git a/cad/klayout/Makefile b/cad/klayout/Makefile
index a7d44baa1a15..9505f35a9305 100644
--- a/cad/klayout/Makefile
+++ b/cad/klayout/Makefile
@@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= klayout
-PORTVERSION= 0.21.19
+PORTVERSION= 0.23.3
CATEGORIES= cad
-MASTER_SITES= http://www.klayout.de/
+MASTER_SITES= http://178.77.72.242/downloads/
MAINTAINER= hrs@FreeBSD.org
COMMENT= A Qt-based GDS2 Viewer
@@ -12,7 +12,8 @@ COMMENT= A Qt-based GDS2 Viewer
LICENSE= GPLv2
USES= gmake
-USE_QT4= corelib gui network moc_build sql uic_build \
+USE_RUBY= yes
+USE_QT4= corelib designer gui network moc_build sql uic_build \
rcc_build qt3support xml
PLIST_FILES= bin/klayout \
bin/strm2cif \
@@ -22,22 +23,24 @@ PLIST_FILES= bin/klayout \
bin/strm2txt \
bin/strmclip \
bin/strmcmp \
- bin/strmxor
+ bin/strmxor \
+ lib/libklayout.so
+PLATFORMKEYWORD=freebsd-32-gcc-release
-PLATFORMKEYWORD= freebsd-32-gcc-release
-
-NO_STAGE= yes
do-build:
cd ${WRKSRC} && \
- ${SH} build.sh -platform ${PLATFORMKEYWORD} \
- -qtbin ${QT_PREFIX}/bin \
- -qtinc ${QT_INCDIR} \
- -qtlib ${QT_LIBDIR}
+ ${SH} build.sh -platform ${PLATFORMKEYWORD} \
+ -qtbin ${QT_PREFIX}/bin \
+ -qtinc ${QT_INCDIR} \
+ -qtlib ${QT_LIBDIR}
do-install:
cd ${WRKSRC}/bin.${PLATFORMKEYWORD} && \
- ${INSTALL_PROGRAM} ${PLIST_FILES:Mbin/*:S,^bin/,,} \
- ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${PLIST_FILES:Mbin/*:S,^bin/,,} \
+ ${STAGEDIR}${PREFIX}/bin
+ cd ${WRKSRC}/build.${PLATFORMKEYWORD}/main && \
+ ${INSTALL_LIB} ${PLIST_FILES:Mlib/*:S,^lib/,,} \
+ ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.pre.mk>
diff --git a/cad/klayout/distinfo b/cad/klayout/distinfo
index 933ae95af60a..0f1687922583 100644
--- a/cad/klayout/distinfo
+++ b/cad/klayout/distinfo
@@ -1,2 +1,2 @@
-SHA256 (klayout-0.21.19.tar.gz) = 330c7b13635760eeacc8bfbb5c6a9e4e57e0597b89208718882e9d08c2fe0fdb
-SIZE (klayout-0.21.19.tar.gz) = 2025980
+SHA256 (klayout-0.23.3.tar.gz) = 0b7c7cb1866d13cf71ed9e5b65638995ff9b04e8b2a269cbe79e66d8e6802d54
+SIZE (klayout-0.23.3.tar.gz) = 9541259
diff --git a/cad/klayout/files/patch-build.sh b/cad/klayout/files/patch-build.sh
index f18dbeb04beb..8911725e541c 100644
--- a/cad/klayout/files/patch-build.sh
+++ b/cad/klayout/files/patch-build.sh
@@ -1,5 +1,5 @@
---- build.sh.orig 2010-12-28 05:22:08.000000000 +0900
-+++ build.sh 2011-01-04 16:58:54.000000000 +0900
+--- build.sh.orig 2014-02-24 05:44:13.000000000 +0900
++++ build.sh 2014-03-14 21:49:48.000000000 +0900
@@ -1,7 +1,7 @@
#!/bin/sh
@@ -9,7 +9,17 @@
CURR_DIR=`pwd`
PLATFORM="linux-32-gcc-release"
-@@ -217,11 +217,11 @@
+@@ -33,6 +33,9 @@
+ exit 1
+ fi
+ ;;
++FreeBSD)
++ PLATFORM="freebsd-32-gcc-release"
++ ;;
+ *)
+ # Assume Linux for the remaining variants
+ case `arch` in
+@@ -284,11 +287,11 @@
;;
esac
@@ -23,7 +33,7 @@
echo "*** ERROR: unable to locate Qt UIC in $QTBIN"
exit 1
fi
-@@ -331,12 +331,12 @@
+@@ -409,12 +412,12 @@
if [ $WIN_CYGWIN = 0 ]; then
echo ""
echo "Final binary is ready in $BIN/$EXEC_NAME."
diff --git a/cad/klayout/files/patch-config-Makefile.conf b/cad/klayout/files/patch-config-Makefile.conf
index 2675215612bb..5de90c7232d9 100644
--- a/cad/klayout/files/patch-config-Makefile.conf
+++ b/cad/klayout/files/patch-config-Makefile.conf
@@ -1,5 +1,5 @@
---- /dev/null 2011-02-10 22:38:57.000000000 +0900
-+++ config/Makefile.conf.freebsd-32-gcc-release 2011-02-10 22:39:43.000000000 +0900
+--- /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
@@ -12,29 +12,29 @@
+
+# Compiler general
+INC=-I$(TOP_SOURCE) -I$(SOURCE) -I. -I$(QTINCLUDE)
-+DEFS=-DQT_THREAD_SUPPORT -DQT3_SUPPORT
++DEFS=-DQT_THREAD_SUPPORT -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
+
+# C++
-+CXX=gcc
++CXX?=gcc
+CXXOPT_DEP=-MM -MG
-+CXXWARN=-Wall -pedantic -Wno-deprecated -Woverloaded-virtual \
++CXXWARN=-Wall -Wno-deprecated -Woverloaded-virtual \
+ -Wsign-promo -Wsynth -Wno-long-long -Wno-strict-aliasing
-+CXXOPT=-c -O3 -o
-+CXXOPT_SO=-fPIC $(CXXOPT)
++CXXOPT=${CXXFLAGS} -c -o
++CXXOPT_SO=-fPIC $(CXXOPT)
+
+# C
-+CC=gcc
++CC?=gcc
+CCOPT_DEP=-MM -MG
+CCWARN=
-+CCOPT=-c -O3 -o
++CCOPT=${CFLAGS} -c -o
+CCOPT_SO=-fPIC $(CCOPT)
+
+# Linker
-+LINK=g++
-+LOPT=-g -Wl,-E -o
-+LOPT_SO=-g -shared -fPIC -o
++LINK?=${CC}
++LOPT=${LDFLAGS} -g -Wl,-E -o
++LOPT_SO=${LDFLAGS} -g -shared -fPIC -o
+
-+LIBS=-L$(QTLIB) -lQtGui -lQtCore -lQtXml -lrt -lstdc++ -lcrypt
++LIBS=${PTHREAD_LIBS} -L$(QTLIB) -lQtGui -lQtCore -lQtXml -lQtNetwork -lQtSql -lQtDesigner -lrt -lstdc++ -lcrypt -lz
+
+.PHONY: install
+install:
diff --git a/cad/klayout/files/patch-src-tlStream.cc b/cad/klayout/files/patch-src-tlStream.cc
new file mode 100644
index 000000000000..d43fb8d570c6
--- /dev/null
+++ b/cad/klayout/files/patch-src-tlStream.cc
@@ -0,0 +1,37 @@
+--- src/tlStream.cc.orig 2014-03-14 22:31:20.000000000 +0900
++++ src/tlStream.cc 2014-03-14 22:33:08.000000000 +0900
+@@ -31,6 +31,7 @@
+ #ifdef _WIN32
+ # include <io.h>
+ #endif
++#include <unistd.h>
+
+ #include "tlStream.h"
+ #include "tlHttpStream.h"
+@@ -624,7 +625,7 @@
+ #if defined(_WIN32)
+ _close (m_fd);
+ #else
+- close (m_fd);
++ ::close (m_fd);
+ #endif
+ m_fd = -1;
+ }
+@@ -654,7 +655,7 @@
+ #elif defined(_WIN64)
+ _lseek (m_fd, 0, SEEK_SET);
+ #else
+- lseek (m_fd, 0, SEEK_SET);
++ ::lseek (m_fd, 0, SEEK_SET);
+ #endif
+ }
+ }
+@@ -1068,7 +1069,7 @@
+ #elif defined(_WIN32)
+ _lseek (m_fd, s, SEEK_SET);
+ #else
+- lseek (m_fd, s, SEEK_SET);
++ ::lseek (m_fd, s, SEEK_SET);
+ #endif
+ }
+
diff --git a/cad/klayout/pkg-descr b/cad/klayout/pkg-descr
index bb65b0628b96..f397bbdd2224 100644
--- a/cad/klayout/pkg-descr
+++ b/cad/klayout/pkg-descr
@@ -1,3 +1,3 @@
KLayout is a viewer for GDS2 files.
-WWW: http://www.klayout.de/index.html
+WWW: http://www.klayout.de/index.html