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

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: O'Caml kütüphane yöneticisi
# URL: http://projects.camlcity.org/projects/findlib.html
# Paketçi: milisarge
# Gerekler: ocaml ocaml-findlib ocaml-lablgl gtk2 librsvg libglade gtksourceview2 xorg-mesa
2018-08-01 10:16:08 +02:00
# Grup: kütüphane
2018-06-09 00:06:58 +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)
derle() {
2018-08-01 10:16:08 +02:00
cd ${_isim}-$surum
2018-06-09 00:06:58 +02:00
export LD_LIBRARY_PATH=/usr/lib/ocaml/stublibs/:/usr/lib/ocaml/:${LD_LIBRARY_PATH}
./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
#make DESTDIR=$PKG install
make install BINDIR="$PKG/usr/bin/"
mkdir -p "$PKG/usr/lib/ocaml/stublibs"
mv /usr/lib/ocaml/site-lib/lablgtk2 "$PKG/usr/lib/ocaml/"
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/"
# remove file conflicting with ocaml's ones
rm -f $PKG/usr/lib/ocaml/ld.conf
}