ocaml-gerekler.paketlendi

This commit is contained in:
milisarge 2017-04-13 23:15:01 +03:00
parent 8c3b50e38a
commit 30be7acaa0
3 changed files with 72 additions and 0 deletions

View File

@ -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
}

View File

@ -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"
}

View File

@ -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
}