diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/motif/motif.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/motif/motif.xibuild')
-rw-r--r-- | repo/motif/motif.xibuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/repo/motif/motif.xibuild b/repo/motif/motif.xibuild new file mode 100644 index 0000000..7d08648 --- /dev/null +++ b/repo/motif/motif.xibuild @@ -0,0 +1,55 @@ +#!/bin/sh + +NAME="motif" +DESC="User interface component toolkit" + +MAKEDEPS="make " +DEPS="libx11 libxft libxt libxpm musl " + +PKG_VER=2.3.8 +SOURCE="https://sourceforge.net/projects/motif/files/Motif%20$PKG_VER%20Source%20Code/motif-$PKG_VER.tar.gz/download" + +ADDITIONAL=" +02-fix-format-security.patch +03-no-demos.patch +06-cast-size_t-to-int.patch +07-fix_lintian_reported_manpage_typos.patch +08-fix_hyphen_in_man_pages.patch +09-fix_typo_in_libxm.patch +10-fix_manpage-has-bad-whatis-entry.patch +11-fix_underlinking.patch +13-fix_hardcoded_x11rgb_path.patch +15-link_uil_against_libuil.patch +16-fix-undefined-use-of-sprintf.patch +17-switch-to-system-iswspace.patch +18-option-main.patch +update-automake.patch +" + +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 \ + --sysconfdir=/etc \ + --disable-jpeg \ + --disable-png \ + --enable-xft \ + --disable-demos \ + --disable-static + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |