# Tanım: Luajit tabanlı bilimsel hesaplama çatı yapısı
# Url: http://torch.ch
# Paketçi: milisarge
# Gerekler: cmake lua51 luajit lapack torch7-cwrap torch7-paths torch7-trepl
# Grup: bilimsel

isim=torch7
surum=git
devir=1
kaynak=()

derle() {
    git_indir https://github.com/torch/torch7 $isim
	cd $SRC/$isim
	cmake . \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLUADIR=/usr/share/lua/5.1 \
		-DLIBDIR=/usr/lib/lua/5.1 \
		-DLUA_BINDIR=/usr/bin \
		-DLUA_INCDIR=/usr/include/luajit-2.0 \
		-DLUA_LIBDIR=/usr/lib \
		-DLUALIB=/usr/lib/libluajit-5.1.so \
		-DLUA=/usr/bin/luajit
	make
	make DESTDIR=$PKG install
}

