remove UninstallDev
[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 include $(INCLUDE_DIR)/package.mk
20
21
22 define Package/libexpat
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=An XML parsing library
26   URL:=http://expat.sourceforge.net/
27 endef
28
29 define Package/libexpat/description
30  A fast, non-validating, stream-oriented XML parsing library.
31 endef
32
33
34 PKG_CONFIGURE_ARGS += \
35         --enable-shared \
36         --enable-static \
37
38
39 define Build/Configure
40         $(call Build/Configure/Default)
41         $(call libtool_disable_rpath)
42 endef
43
44 define Build/Compile
45         $(MAKE) -C $(PKG_BUILD_DIR) all
46         $(call libtool_fixup_libdir,$(PKG_INSTALL_DIR))
47         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
48 endef
49
50 define Build/InstallDev
51         mkdir -p $(1)/usr/include
52         $(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
53         mkdir -p $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
55 endef
56
57 define Package/libexpat/install
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
60 endef
61
62
63 $(eval $(call BuildPackage,libexpat))
64