2012-03-28 14:46:58 +01:00
|
|
|
# This file is part of MXE.
|
2012-03-29 11:14:15 +01:00
|
|
|
# See index.html for further information.
|
2010-02-21 20:52:21 +00:00
|
|
|
|
|
|
|
PKG := liboil
|
|
|
|
$(PKG)_IGNORE :=
|
2013-07-21 22:26:40 +01:00
|
|
|
$(PKG)_VERSION := 0.3.17
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := 105f02079b0b50034c759db34b473ecb5704ffa20a5486b60a8b7698128bfc69
|
2010-02-21 20:52:21 +00:00
|
|
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
|
|
|
$(PKG)_URL := http://$(PKG).freedesktop.org/download/$($(PKG)_FILE)
|
2010-11-29 23:03:40 +00:00
|
|
|
$(PKG)_DEPS := gcc
|
2010-02-21 20:52:21 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2012-05-08 16:16:05 +01:00
|
|
|
$(WGET) -q -O- 'http://cgit.freedesktop.org/liboil/refs/tags' | \
|
2010-02-23 13:08:36 +00:00
|
|
|
$(SED) -n "s,.*<a href='[^']*/tag/?id=[^0-9]*\\([0-9][^']*\\)'.*,\\1,p" | \
|
|
|
|
head -1
|
2010-02-21 20:52:21 +00:00
|
|
|
endef
|
|
|
|
|
2016-01-09 00:34:58 +00:00
|
|
|
# liboil is in maintenance-only phase:
|
|
|
|
# http://cgit.freedesktop.org/liboil/commit/?id=04b154aa118c0fdf244932dadc3d085f6290db7a
|
|
|
|
|
|
|
|
# configure doesn't wildcard host test for x86_64
|
|
|
|
# `as_cv_unaligned_access` so set it manually
|
|
|
|
|
2010-02-21 20:52:21 +00:00
|
|
|
define $(PKG)_BUILD
|
|
|
|
cd '$(1)' && ./configure \
|
2016-01-09 00:34:58 +00:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
2010-02-21 20:52:21 +00:00
|
|
|
--disable-debug \
|
|
|
|
--disable-examples \
|
|
|
|
--mandir='$(1)/sink' \
|
|
|
|
--docdir='$(1)/sink' \
|
2016-01-09 00:34:58 +00:00
|
|
|
--with-html-dir='$(1)/sink' \
|
|
|
|
as_cv_unaligned_access=yes
|
2010-02-21 20:52:21 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install
|
|
|
|
endef
|