GARNAME = liboil
GARVERSION = 0.3.11
CATEGORIES = bootstrap
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz

MASTER_SITES = http://liboil.freedesktop.org/download/


DESCRIPTION = liboil
define BLURB
Liboil is a library of simple functions that are optimized for various CPUs. 
These functions are generally loops implementing simple algorithms, such as 
converting an array of N integers to floating-point numbers or multiplying 
and summing an array of N numbers. Such functions are candidates for 
significant optimization using various techniques, especially by using 
extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS)

include ../category.mk

# work around compiler issue that causes some tests to fail
CFLAGS := $(shell echo $(CFLAGS) | sed -e 's,-g ,,' -e 's,-O[23] ,,')
CXXFLAGS := $(shell echo $(CXXFLAGS) | sed -e 's,-g ,,' -e 's,-O[23] ,,')

check:
	@cd $(WORKSRC) && $(MAKE) check
