diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-13 12:42:07 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-06 20:09:46 +0000 |
commit | d589091c50acd2be26096b20f15c4950c739f3b4 (patch) | |
tree | 4aa1c18b17d6edccb271c03da86fd5efec6fbe5f /main | |
parent | 749a356bf56173ca70ec748c110fcdb8c1ffb72d (diff) | |
download | aports-d589091c50acd2be26096b20f15c4950c739f3b4.tar.bz2 aports-d589091c50acd2be26096b20f15c4950c739f3b4.tar.xz |
main/freeglut: modernize abuild
Diffstat (limited to 'main')
-rw-r--r-- | main/freeglut/APKBUILD | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/main/freeglut/APKBUILD b/main/freeglut/APKBUILD index 712e5e9854..bb263fb3d1 100644 --- a/main/freeglut/APKBUILD +++ b/main/freeglut/APKBUILD @@ -7,42 +7,28 @@ pkgdesc="free reimplementation of OpenGL Utility Toolkit (GLUT) library" url="http://freeglut.sourceforge.net/" arch="all" license="Custom" -depends= depends_dev="mesa-dev libx11-dev libice-dev libxxf86vm-dev libxi-dev glu-dev" makedepends="$depends_dev cmake" -install= subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" -_builddir="$srcdir/$pkgname-$pkgver" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ - -DFREEGLUT_BUILD_STATIC_LIBS=0 \ - || return 1 - make || return 1 + -DFREEGLUT_BUILD_STATIC_LIBS=0 + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } -md5sums="90c3ca4dd9d51cf32276bc5344ec9754 freeglut-3.0.0.tar.gz" -sha256sums="2a43be8515b01ea82bcfa17d29ae0d40bd128342f0930cd1f375f1ff999f76a2 freeglut-3.0.0.tar.gz" sha512sums="9c45d5b203b26a7ff92331b3e080a48e806c92fbbe7c65d9262dd18c39cd6efdad8a795a80f499a2d23df84b4909dbd7c1bab20d7dd3555d3d88782ce9dd15b0 freeglut-3.0.0.tar.gz" |