# This file is part of MXE.
# See index.html for further information.
PKG := libepoxy
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.2
$(PKG)_CHECKSUM := e700520711b9e4fa07c286aa36e431d8ad4133f5
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_GITHUB := https://github.com/anholt/$(PKG)
$(PKG)_URL := $($(PKG)_GITHUB)/archive/v$($(PKG)_VERSION).tar.gz
$(PKG)_DEPS := gcc xorg-macros
define $(PKG)_UPDATE
$(WGET) -q -O- '$(libepoxy_GITHUB)/releases' | \
$(SED) -n 's,.*/archive/v\([0-9.]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && autoreconf -fi -I'$(PREFIX)/$(TARGET)/share/aclocal' \
&& ./configure $(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT)
endef