GARNAME = liboil
GARVERSION = 0.3.9
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

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

CONFIGURE_ARGS = $(DIRPATHS)

include ../category.mk

CFLAGS := $(shell echo $(CFLAGS) | sed 's,-g ,,')
CXXFLAGS := $(shell echo $(CXXFLAGS) | sed 's,-g ,,')

CFLAGS := $(shell echo $(CFLAGS) | sed 's,-O2 ,,')
CXXFLAGS := $(shell echo $(CXXFLAGS) | sed 's,-O2 ,,')
