summaryrefslogtreecommitdiff
path: root/repo/x11/motif/motif.xibuild
blob: a283ca0f0f5986a5134381a5c53b0cd7376d406c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/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"

#prepare () {
#    apply_patches
#}

build () {
    ./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
}