2009-12-21 16:59:11 -08:00
|
|
|
PKG_NAME:=expat
|
|
|
|
PKG_VERSION=2.0.1
|
|
|
|
|
|
|
|
PKG_SOURCEBASE:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_SOURCEBASE).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/expat
|
|
|
|
PKG_MD5SUM:=ee8b492592568805593f81f8cdf2a04c
|
|
|
|
|
2009-12-22 08:14:11 -08:00
|
|
|
TARGET:=$(TOPDIR)/builds/libs/lib/libexpat.la
|
|
|
|
|
2009-12-21 16:59:11 -08:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
extract-stamp: $(TOPDIR)/downloads/$(PKG_SOURCE)
|
|
|
|
tar xzf $^
|
|
|
|
touch extract-stamp
|
|
|
|
|
|
|
|
$(PKG_SOURCEBASE)/config.status: extract-stamp
|
|
|
|
cd $(PKG_SOURCEBASE) && ./configure --host=$(HOST_TRIPLET) --enable-static --disable-shared --prefix=`pwd`/../$(TOPDIR)/build/libs
|
|
|
|
|
2009-12-22 06:54:35 -08:00
|
|
|
$(PKG_SOURCEBASE)/libexpat.la: $(PKG_SOURCEBASE)/config.status
|
2009-12-22 08:14:11 -08:00
|
|
|
$(MAKE) -C $(PKG_SOURCEBASE) libexpat.la
|
|
|
|
|
|
|
|
$(TARGET): $(PKG_SOURCEBASE)/libexpat.la
|
2009-12-21 16:59:11 -08:00
|
|
|
$(MAKE) -C $(PKG_SOURCEBASE) installlib
|
|
|
|
|
|
|
|
all: build
|
2009-12-22 08:14:11 -08:00
|
|
|
build: $(TARGET)
|
2009-12-21 16:59:11 -08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -rf $(PKG_SOURCEBASE) extract-stamp
|
|
|
|
|
|
|
|
.PHONY: all build clean
|