diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-01-16 23:39:06 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-01-16 23:39:06 (GMT) |
commit | 62ebd7a23e841a38425b8ae9d1bc61ae8c13cd92 (patch) | |
tree | b2f4a8b8a68f8c260bf053c8cd005eedf8054aaf /src | |
parent | d0dc2e16772169cc2da89d5b3023b3260411c3e5 (diff) | |
parent | 35275cab5e58e52231d44217e5ac412a87e6b59f (diff) | |
download | mxe-62ebd7a23e841a38425b8ae9d1bc61ae8c13cd92.zip mxe-62ebd7a23e841a38425b8ae9d1bc61ae8c13cd92.tar.gz mxe-62ebd7a23e841a38425b8ae9d1bc61ae8c13cd92.tar.bz2 |
Merge pull request #600 from TobiX/add-epoxy
Add libepoxy
Diffstat (limited to 'src')
-rw-r--r-- | src/libepoxy.mk | 24 | ||||
-rw-r--r-- | src/xorg-macros.mk | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/src/libepoxy.mk b/src/libepoxy.mk new file mode 100644 index 0000000..20c6a17 --- /dev/null +++ b/src/libepoxy.mk @@ -0,0 +1,24 @@ +# 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 diff --git a/src/xorg-macros.mk b/src/xorg-macros.mk new file mode 100644 index 0000000..9c18672 --- /dev/null +++ b/src/xorg-macros.mk @@ -0,0 +1,23 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := xorg-macros +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.19.0 +$(PKG)_CHECKSUM := 00cfc636694000112924198e6b9e4d72f1601338 +$(PKG)_SUBDIR := util-macros-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_URL := http://xorg.freedesktop.org/releases/individual/util/util-macros-$($(PKG)_VERSION).tar.bz2 +$(PKG)_DEPS := + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://cgit.freedesktop.org/xorg/util/macros/refs/tags' | \ + $(SED) -n "s,.*<a href='[^']*/tag/?id=util-macros-\\([0-9.]*\\)'.*,\\1,p" | \ + $(SORT) -V | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure $(MXE_CONFIGURE_OPTS) + $(MAKE) -C '$(1)' -j '$(JOBS)' install pkgconfigdir='$$(libdir)/pkgconfig' +endef |