summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-21 10:57:24 +0200
committerErich Eckner <git@eckner.net>2020-04-21 10:57:24 +0200
commit068a2a43895dcbca5e670cd3bc1e25a00f31513a (patch)
tree2ba7322fdd43256c90e401987aee8eaacb74eb17
parent51dfea85f61189662756b4e144a8d65f0e1a2b18 (diff)
downloadarchlinuxewe.git.save-068a2a43895dcbca5e670cd3bc1e25a00f31513a.tar.xz
tk-togl new
-rw-r--r--tk-togl/PKGBUILD36
-rw-r--r--tk-togl/fix-configure.patch77
2 files changed, 113 insertions, 0 deletions
diff --git a/tk-togl/PKGBUILD b/tk-togl/PKGBUILD
new file mode 100644
index 00000000..bc2da350
--- /dev/null
+++ b/tk-togl/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Mirko Scholz <srtlg>
+pkgname=tk-togl
+pkgver=2.0
+pkgrel=1
+pkgdesc="A Tcl/Tk widget for OpenGL rendering."
+arch=('x86_64')
+url="https://sourceforge.net/projects/togl/"
+license=('BSD')
+depends=(tk tcl libglvnd libxmu)
+_name=Togl2.0
+source=("${_name}.tar.gz::https://sourceforge.net/projects/togl/files/Togl/2.0/${_name}-src.tar.gz/download"
+ "fix-configure.patch")
+sha256sums=('b7d4a90bbad3aca618d505ee99e7fd8fb04c829f63231dda2360f557ba3f7610'
+ '79d1519517787c1a36d3493dde915a06005633fff6fba60d88b4516fce3d0268')
+
+prepare() {
+ cd $_name
+ patch -p1 -i "$srcdir/fix-configure.patch"
+}
+
+build() {
+ cd $_name
+ ./configure
+ make
+}
+
+package() {
+ cd $_name
+ make install "DESTDIR=$pkgdir"
+ mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s /usr/lib/Togl2.0/LICENSE "$pkgdir/usr/share/licenses/$pkgname"
+ rm -rf "$pkgdir/usr/bin"
+ chmod 444 "$pkgdir/usr/lib/libToglstub2.0.a"
+}
+
diff --git a/tk-togl/fix-configure.patch b/tk-togl/fix-configure.patch
new file mode 100644
index 00000000..b596a9b4
--- /dev/null
+++ b/tk-togl/fix-configure.patch
@@ -0,0 +1,77 @@
+diff -u10 -r Togl2.0/configure Togl2.0-a/configure
+--- Togl2.0/configure 2008-04-18 09:21:26.000000000 +0200
++++ Togl2.0-a/configure 2019-10-29 12:31:38.240698522 +0100
+@@ -7211,21 +7211,21 @@
+ # If Tcl was built as a framework, attempt to use
+ # the framework's Headers and PrivateHeaders directories
+ case ${TCL_DEFS} in
+ *TCL_FRAMEWORK*)
+ if test -d "${TCL_BIN_DIR}/Headers" -a -d "${TCL_BIN_DIR}/PrivateHeaders"; then
+ TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}"; else
+ TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`"; fi
+ ;;
+ esac
+ else
+- if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then
++ if test ! -f "${TCL_SRC_DIR}/tclInt.h" ; then
+ { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5
+ echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ fi
+
+
+
+
+
+@@ -7237,25 +7237,26 @@
+
+ { echo "$as_me:$LINENO: result: Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&5
+ echo "${ECHO_T}Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" >&6; }
+
+
+ #TEA_PUBLIC_TK_HEADERS
+
+ { echo "$as_me:$LINENO: checking for Tk private include files" >&5
+ echo $ECHO_N "checking for Tk private include files... $ECHO_C" >&6; }
+
++ TK_SRC_DIR=/usr/include
+ TK_SRC_DIR_NATIVE=`${CYGPATH} ${TK_SRC_DIR}`
+ TK_TOP_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}\"
+ TK_UNIX_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/unix\"
+ TK_WIN_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/win\"
+- TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/generic\"
++ TK_GENERIC_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/tk-private/generic\"
+ TK_XLIB_DIR_NATIVE=\"${TK_SRC_DIR_NATIVE}/xlib\"
+ if test "${TEA_PLATFORM}" = "windows"; then
+ TK_PLATFORM_DIR_NATIVE=${TK_WIN_DIR_NATIVE}
+ else
+ TK_PLATFORM_DIR_NATIVE=${TK_UNIX_DIR_NATIVE}
+ fi
+ # We want to ensure these are substituted so as not to require
+ # any *_NATIVE vars be defined in the Makefile
+ TK_INCLUDES="-I${TK_GENERIC_DIR_NATIVE} -I${TK_PLATFORM_DIR_NATIVE}"
+ # Detect and add ttk subdir
+@@ -7272,21 +7273,21 @@
+ if test "`uname -s`" = "Darwin"; then
+ # If Tk was built as a framework, attempt to use
+ # the framework's Headers and PrivateHeaders directories
+ case ${TK_DEFS} in
+ *TK_FRAMEWORK*)
+ if test -d "${TK_BIN_DIR}/Headers" -a -d "${TK_BIN_DIR}/PrivateHeaders"; then
+ TK_INCLUDES="-I\"${TK_BIN_DIR}/Headers\" -I\"${TK_BIN_DIR}/PrivateHeaders\" ${TK_INCLUDES}"; fi
+ ;;
+ esac
+ else
+- if test ! -f "${TK_SRC_DIR}/generic/tkInt.h" ; then
++ if test ! -f "${TK_SRC_DIR}/tk-private/generic/tkInt.h" ; then
+ { { echo "$as_me:$LINENO: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&5
+ echo "$as_me: error: Cannot find private header tkInt.h in ${TK_SRC_DIR}" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ fi
+
+
+
+
+