diff options
author | Marco Pompili | 2015-12-14 15:25:33 +0100 |
---|---|---|
committer | Marco Pompili | 2015-12-14 15:25:33 +0100 |
commit | 47263599cd2d5b161aec5ad4521797e1825e25aa (patch) | |
tree | f5f7bc98863d8622af4635bc98e7c0c379bcb2d1 /PKGBUILD | |
parent | f59458c58566abfdfccc261a205523477869c87e (diff) | |
download | aur-47263599cd2d5b161aec5ad4521797e1825e25aa.tar.gz |
Version 0.9.0-2, using make instead of shell scripts
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 29 insertions, 6 deletions
@@ -3,7 +3,7 @@ pkgname=openframeworks pkgver=0.9.0 -pkgrel=1 +pkgrel=2 pkgdesc="openFrameworks is an open source C++ toolkit for creative coding." url="http://openframeworks.cc/" arch=('x86_64' 'i686') @@ -17,7 +17,7 @@ options=(!strip) install=openframeworks.install [[ "$CARCH" == "i686" ]] && _arch="linux" || _arch="linux64" -_name=of_v${pkgver}_${_arch}_release +_name="of_v${pkgver}_${_arch}_release" source=("http://www.openframeworks.cc/versions/v${pkgver}/${_name}.tar.gz" "of-make-workspace") @@ -25,14 +25,37 @@ source=("http://www.openframeworks.cc/versions/v${pkgver}/${_name}.tar.gz" "of-m md5sums+=("594d0a3c82e0451f7b7fb353e3b658c6") +prepare() { + export OF_ROOT=${srcdir}/${_name} + export LC_ALL=C + + ARCH=$(uname -m) + + if [ "$ARCH" = "x86_64" ]; then + LIBSPATH=linux64 + else + LIBSPATH=linux + fi + + JOBS=1 +} + build() { - cd ${srcdir}/$_name/scripts/linux/ + cd ${srcdir}/${_name} + + cd libs/openFrameworksCompiled/project + + msg2 "Building openFrameworks Debug version" + make -j$JOBS Debug + + msg2 "Building openFrameworks Release version" + make -j$JOBS Release - msg2 "Building openFrameworks..." - ./compileOF.sh > /dev/null + cd ${srcdir}/${_name} msg2 "Building the OF Project Generator..." - ./compilePG.sh > /dev/null + cd libs/openFrameworksCompiled/project + make -j$JOBS Release } package() { |