1 # Maintainer: Mihai Militaru <mihai dot militaru at xmpp dot ro>
6 pkgdesc="C cross platform GUI toolkit"
8 url="http://www.tecgraf.puc-rio.br/iup/"
11 makedepends=('lua' 'cd' 'im' 'mesa' 'libwebkit')
13 source=(http://sourceforge.net/projects/iup/files/${pkgver}/Docs%20and%20Sources/iup-${pkgver}_Sources.tar.gz)
14 sha1sums=('e5a3fdde13dcf77eeb5e690b21ff198389b1e889')
19 sed -i 's|LIBS += webkit-1.0|LIBS += webkitgtk-1.0|g' srcweb/config.mak
21 make IM_LIB=/usr/lib CD_LIB=/usr/lib LUA_LIB=/usr/lib LUA_SUFFIX=""
22 mkdir -p ${pkgdir}/usr/{include,lib/lua/5.1}
24 install -m644 ${srcdir}/iup/lib/Linux*/libiup*.a ${pkgdir}/usr/lib/
25 install -m755 ${srcdir}/iup/lib/Linux*/libiup*.so ${pkgdir}/usr/lib/
26 rm -f ${pkgdir}/usr/lib/libiuplua*
27 install -m644 ${srcdir}/iup/lib/Linux*/libiuplua*.a ${pkgdir}/usr/lib/lua/5.1/
28 install -m755 ${srcdir}/iup/lib/Linux*/libiuplua*.so ${pkgdir}/usr/lib/lua/5.1/
30 cd ${pkgdir}/usr/lib/lua/5.1/
31 ln -s libiuplua51.so libiuplua.so
32 ln -s libiupluacd51.so libiupluacd.so
33 ln -s libiupluacontrols51.so libiupluacontrols.so
34 ln -s libiupluagl51.so libiupluagl.so
35 ln -s libiupluaim51.so libiupluaim.so
36 ln -s libiupluaimglib51.so libiupluaimglib.so
37 ln -s libiuplua_pplot51.so libiuplua_pplot.so
38 ln -s libiupluatuio51.so libiupluatuio.so
40 install ${srcdir}/iup/include/* ${pkgdir}/usr/include/