milis/talimatname/genel/o/ocaml-lablgtk/talimat

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: O'Caml kütüphane yöneticisi
2017-04-13 23:17:48 +02:00
# URL: http://projects.camlcity.org/projects/findlib.html
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: ocaml ocaml-findlib ocaml-lablgl gtk2 librsvg libglade gtksourceview2 xorg-mesa
2017-04-13 23:17:48 +02:00
2017-10-28 14:10:23 +02:00
isim=ocaml-lablgtk
_isim=lablgtk
surum=2.18.5
devir=1
kaynak=(https://forge.ocamlcore.org/frs/download.php/1627/$isim-$surum.tar.gz)
2017-04-13 23:17:48 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ${_name}-$surum
2017-04-14 01:27:31 +02:00
export LD_LIBRARY_PATH=/usr/lib/ocaml/stublibs/:/usr/lib/ocaml/:${LD_LIBRARY_PATH}
2017-04-13 23:17:48 +02:00
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--build=$ARCH-milis-linux \
--with-glade \
--with-rsvg \
--with-gtksourceview2
sed -i -e "s/\\(CFLAGS = .*\\)/\\1 ${SLKCFLAGS}/" src/Makefile
sed -i -e "s/\\(CFLAGS += -O\\)/CFLAGS +=/" src/Makefile
make -j1 world
2017-04-13 23:57:54 +02:00
#make DESTDIR=$PKG install
2017-04-14 01:27:31 +02:00
make install BINDIR="$PKG/usr/bin/"
2017-04-13 23:57:54 +02:00
mkdir -p "$PKG/usr/lib/ocaml/stublibs"
2017-04-14 01:27:31 +02:00
mv /usr/lib/ocaml/site-lib/lablgtk2 "$PKG/usr/lib/ocaml/"
2017-04-13 23:57:54 +02:00
cp src/dlllablglade2.so "$PKG/usr/lib/ocaml/stublibs/"
cp src/dlllablgtk2.so "$PKG/usr/lib/ocaml/stublibs/"
cp src/dlllablgtksourceview2.so "$PKG/usr/lib/ocaml/stublibs/"
cp src/dlllablrsvg.so "$PKG/usr/lib/ocaml/stublibs/"
2017-04-13 23:17:48 +02:00
# remove file conflicting with ocaml's ones
rm -f $PKG/usr/lib/ocaml/ld.conf
}