diff --git a/talimatname/genel/camlp4/talimat b/talimatname/genel/camlp4/talimat new file mode 100644 index 000000000..70a25d801 --- /dev/null +++ b/talimatname/genel/camlp4/talimat @@ -0,0 +1,25 @@ +# Description: Camlp4 tool +# URL: https://github.com/ocaml/camlp4 +# Packeger: milisarge +# Depends on: ocaml ocamlbuild + +name=camlp4 +version=git +release=1 +source=() + +build() { + cd $DERLEME_KAYNAKDIZIN + if [ ! -d $name ]; then + git clone git://github.com/ocaml/$name $name -b 4.04 + else + cd $name && git pull && make clean + fi + cp -r $DERLEME_KAYNAKDIZIN/$name $SRC + + cd $SRC/$name + + ./configure --bindir=/usr/bin --libdir=/usr/lib/ocaml + make -j1 + make DESTDIR=$PKG install +} diff --git a/talimatname/genel/ocaml-lablgl/talimat b/talimatname/genel/ocaml-lablgl/talimat new file mode 100644 index 000000000..fde693b2d --- /dev/null +++ b/talimatname/genel/ocaml-lablgl/talimat @@ -0,0 +1,31 @@ +# Description: O'Caml kütüphane yöneticisi +# URL: http://projects.camlcity.org/projects/findlib.html +# Packager: milisarge +# Depends on: ocaml camlp4 xorg-glu xorg-libxi xorg-libxmu + +name=ocaml-lablgl +_name=lablgl +version=1.05 +release=1 +source=(https://forge.ocamlcore.org/frs/download.php/1254/lablgl-$version.tar.gz) + +build() { + cd ${_name}-$version + + sed 17d Makefile.config.linux.mdk > Makefile.config + make lib + make libopt + + make install BINDIR="$PKG/usr/bin/" \ + LIBDIR="$PKG/usr/lib/ocaml/" \ + DDLDIR="$PKG/usr/lib/ocaml/stublibs/" \ + INSTALLDIR="$PKG/usr/lib/ocaml/lablGL/" + + install -Dm644 src/lablgl.cmxa "$PKG"/usr/lib/ocaml/lablgl.cmxa + + # stublibs kütüphanelerini doğru konumlamak için + mv "$PKG/usr/lib/ocaml/stublibs" /tmp/temp.so + mkdir -p "$PKG/usr/lib/ocaml/stublibs" + mv /tmp/temp.so "$PKG/usr/lib/ocaml/stublibs/dlllablgl.so" + +} diff --git a/talimatname/genel/ocamlbuild/talimat b/talimatname/genel/ocamlbuild/talimat new file mode 100644 index 000000000..cc78d2447 --- /dev/null +++ b/talimatname/genel/ocamlbuild/talimat @@ -0,0 +1,16 @@ +# Description: ocaml derleme kurallarına göre derleme uygulaması +# URL: https://github.com/ocaml/ocamlbuild/ +# Packager: milisarge +# Depends on: ocaml + +name=ocamlbuild +version=0.9.3 +release=1 +source=(https://github.com/ocaml/${name}/archive/$version.tar.gz) + +build() { + cd $name-$version + make configure OCAML_NATIVE_TOOLS=false + make -j1 + make DESTDIR="$PKG/" install +}