summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiří Klimeš2020-02-13 15:30:52 +0100
committerJiří Klimeš2020-02-13 16:03:51 +0100
commit411fd9cf3b1da1ee89f4a283efe22bdf77168438 (patch)
treede65df29b4d4add1a728946ba1df79b009f9adef
parent9435efd2dbef7346ef78192a68ba6eba56169871 (diff)
downloadaur-411fd9cf3b1da1ee89f4a283efe22bdf77168438.tar.gz
Make sure to link with Gtk3
Upstream tecmake.mak makefile is kind of weird in guessing when to use Gtk2 vs Gtk3. It makes the decision upon the Linux kernel version. It chooses Gtk3 for Linux 4.x. Unfortunately it doesn't know Linux 5.x, and thus it defaults to Gtk2 for that kernel. So use USE_GTK3=Yes option to make sure Gtk3 is used unconditionally.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 130c4d982d0a..63f0151effa6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = libcd
pkgdesc = Canvas Draw - 2D vector graphics library
pkgver = 5.12
- pkgrel = 2
+ pkgrel = 3
url = https://www.tecgraf.puc-rio.br/cd/
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index d86e193d421a..ae55b6fc09fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgbase=libcd
pkgname=('libcd' 'lua-cd' 'lua51-cd' 'lua52-cd')
pkgdesc="Canvas Draw - 2D vector graphics library"
pkgver=5.12
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64')
url="https://www.tecgraf.puc-rio.br/cd/"
makedepends=('glu' 'lsb-release' 'lua' 'lua51' 'lua52' 'lua-im' 'lua51-im' 'lua52-im')
@@ -41,7 +41,8 @@ build() {
make cd cd_pdflib cdpdf cdgl cdim cdcontextplus \
IM_INC=/usr/include/im \
IM_LIB=/usr/lib \
- USE_FTGL=Yes
+ USE_FTGL=Yes \
+ USE_GTK3=Yes
echo 'Building Lua 5.3 bindings'
make cdlua5 cdluapdf5 cdluagl5 cdluacontextplus5 cdluaim5 \