summaryrefslogtreecommitdiff
path: root/repo/x11/motif
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-25 22:50:03 +0100
committerdavidovski <david@davidovski.xyz>2022-05-25 22:50:03 +0100
commit7b0628f037dcbf85cfb381d5e05dea39a2059d33 (patch)
tree4a534ef861d19cdf5235b504af5be2a5d0becb71 /repo/x11/motif
parent79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (diff)
fixed various broken dependencies
Diffstat (limited to 'repo/x11/motif')
-rw-r--r--repo/x11/motif/motif.xibuild17
-rw-r--r--repo/x11/motif/update-automake.patch18
2 files changed, 31 insertions, 4 deletions
diff --git a/repo/x11/motif/motif.xibuild b/repo/x11/motif/motif.xibuild
index a283ca0..7d08648 100644
--- a/repo/x11/motif/motif.xibuild
+++ b/repo/x11/motif/motif.xibuild
@@ -22,13 +22,22 @@ ADDITIONAL="
15-link_uil_against_libuil.patch
16-fix-undefined-use-of-sprintf.patch
17-switch-to-system-iswspace.patch
-18-option-main.patch"
+18-option-main.patch
+update-automake.patch
+"
-#prepare () {
-# apply_patches
-#}
+prepare () {
+ apply_patches
+ # dont build demos
+ sed -i '30s/\\//' Makefile.am
+ sed -i '31d' Makefile.am
+
+ touch NEWS AUTHORS
+ autoreconf -fi
+}
build () {
+ export LDFLAGS="$LDFLAGS -lX11"
./configure \
--prefix=/usr \
--bindir=/usr/bin \
diff --git a/repo/x11/motif/update-automake.patch b/repo/x11/motif/update-automake.patch
new file mode 100644
index 0000000..3a69a0e
--- /dev/null
+++ b/repo/x11/motif/update-automake.patch
@@ -0,0 +1,18 @@
+--- build/configure.ac 2022-05-24 14:36:41.034651348 +0100
++++ build2/configure.ac 2022-05-24 14:35:31.484247422 +0100
+@@ -1,5 +1,5 @@
+ dnl Process this file with autoconf to produce a configure script.
+-AC_INIT(motif,2.3.8,no-define)
++AC_INIT
+ AC_CONFIG_SRCDIR([lib/Xm/Form.c])
+ AC_PREREQ(2.52)
+ AC_CONFIG_AUX_DIR(.)
+@@ -22,7 +22,7 @@
+ AC_SUBST(AGE)
+
+ dnl This is really dumb but it seems to be bug
+-AM_INIT_AUTOMAKE
++AM_INIT_AUTOMAKE(motif,2.3.8,no-define)
+
+ LIBTOOL_VERSION=$CURRENT:$REVISION:$AGE
+