clean up, replace old libtool fixup calls with PKG_FIXUP
[packages.git] / libs / expat / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=expat
12 PKG_VERSION:=1.95.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=aff487543845a82fe262e6e2922b4c8e
17 PKG_SOURCE_URL:=@SF/expat
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23
24 define Package/libexpat
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=An XML parsing library
28   URL:=http://expat.sourceforge.net/
29 endef
30
31 define Package/libexpat/description
32  A fast, non-validating, stream-oriented XML parsing library.
33 endef
34
35
36 CONFIGURE_ARGS += \
37         --enable-shared \
38         --enable-static
39
40 define Build/Compile
41         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
42 endef
43
44 define Build/InstallDev
45         mkdir -p $(1)/usr/include
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
47         mkdir -p $(1)/usr/lib
48         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
49 endef
50
51 define Package/libexpat/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
54 endef
55
56
57 $(eval $(call BuildPackage,libexpat))
58