diff options
author | Jiří Klimeš | 2020-01-28 01:27:14 +0100 |
---|---|---|
committer | Jiří Klimeš | 2020-01-28 14:00:40 +0100 |
commit | 938c0da9a0b34165c2ed3bd80da3291c44040891 (patch) | |
tree | a48c280ecd781a71f152b8eacc95a4535dfeb28a | |
parent | 80205b23ac41db13dcef53b01fbba1d9bff57fe6 (diff) | |
download | aur-938c0da9a0b34165c2ed3bd80da3291c44040891.tar.gz |
Build new iupvled executable and change linkage
im, cd and ftgl libraries are not part of iup source code, so we
have to link them dynamically. Internal iup libraries are linked
statically (configured that way in tecmake.mak).
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -34,8 +34,14 @@ md5sums=('6419e8852927454a87145e807f695ab1' 'f3aa42aad7d25dcbe9079b9b3214d09f') prepare() { - # Link iupview statically - sed 's/USE_STATIC = Yes/USE_STATIC =/' -i "$srcdir"/iup/srcview/config.mak + # Link to libcd, libim and libftgl dynamically (they are not part of iup source code) + sed '/ifdef USE_STATIC/{ N; s|.*\n\(\s*ifdef USE_XRENDER\)|ifdef x_UNDEFINED_x\n\1|; }' -i "$srcdir"/iup/tecmake.mak + sed '/ifdef USE_STATIC/{ N; s|.*\n\(\s*SLIB += $(IM_LIB)/libim.a\)|ifdef x_UNDEFINED_x\n\1|; }' -i "$srcdir"/iup/tecmake.mak + sed '/ifdef USE_STATIC/{ N; s|.*\n\(\s*SLIB += $(FTGL_LIB)/libftgl.a\)|ifdef x_UNDEFINED_x\n\1|; }' -i "$srcdir"/iup/tecmake.mak + + # Link libcdgl and libcdcontextplus dynamically for iupvled + sed 's|SLIB += $(CD_LIB)/libcdgl.a|LIBS += cdgl|' -i "$srcdir"/iup/srcvled/config.mak + sed 's|SLIB += $(CD_LIB)/libcdcontextplus.a|LIBS += cdcontextplus|' -i "$srcdir"/iup/srcvled/config.mak # We want to use dynamic liblua sed '/NO_LUALINK = Yes/{ n; s/.*/LIBS += lua$(LUA_SFX)/; }' -i "$srcdir"/iup/srcluaconsole/config.mak @@ -90,6 +96,7 @@ build() { iupimglib \ ledc \ iupview \ + iupvled \ CD_LIB=/usr/lib \ CD_INC=/usr/include/cd \ IM_LIB=/usr/lib \ |