aboutsummaryrefslogtreecommitdiffstats
path: root/main/libepoxy/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-16 11:39:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-16 11:39:16 +0000
commitc68fbae3fa433dd8f867901ec1c8c9f092509836 (patch)
tree5b0471a27b55a8c4da9f1973decd2f3b81cdd2b4 /main/libepoxy/APKBUILD
parentf0dc63324737ed9420d751d33388af051e332a65 (diff)
downloadaports-c68fbae3fa433dd8f867901ec1c8c9f092509836.tar.bz2
aports-c68fbae3fa433dd8f867901ec1c8c9f092509836.tar.xz
main/libepoxy: moved from testing
Diffstat (limited to 'main/libepoxy/APKBUILD')
-rw-r--r--main/libepoxy/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/libepoxy/APKBUILD b/main/libepoxy/APKBUILD
new file mode 100644
index 0000000000..7ef8ef190d
--- /dev/null
+++ b/main/libepoxy/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libepoxy
+pkgver=1.2
+pkgrel=0
+pkgdesc="Direct Rendering Manager runtime library"
+url="http://github.com/anholt/libepoxy"
+arch="all"
+license="MIT"
+depends=""
+depends_dev="libx11-dev"
+makedepends="$depends_dev autoconf automake libtool util-macros mesa-dev
+ python"
+install=""
+subpackages="$pkgname-dev"
+source="libepoxy-$pkgver.tar.gz::https://codeload.github.com/anholt/libepoxy/tar.gz/v$pkgver"
+
+_builddir="$srcdir"/libepoxy-$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
+ ./autogen.sh
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --disable-static \
+ --enable-shared \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install DESTDIR="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la || return 1
+}
+
+md5sums="12d6b7621f086c0c928887c27d90bc30 libepoxy-1.2.tar.gz"
+sha256sums="42c328440f60a5795835c5ec4bdfc1329e75bba16b6e22b3a87ed17e9679e8f6 libepoxy-1.2.tar.gz"
+sha512sums="1104fc7e6cbb4bb95e422e7801491067806df6849690be4068b5eec33a5fc84672a5bb4666357e9a46d2fae436f83b37402b6cc0c4ee69627e48d48a4d32a2ed libepoxy-1.2.tar.gz"