@ -1,5 +1,5 @@
#
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := expat
PKG_VERSION := 2.1.0
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_MD5SUM := dd7dab7a5fea97d2a6a43f511449b7cd
@ -17,11 +17,12 @@ PKG_SOURCE_URL:=@SF/expat
PKG_MAINTAINER := Steven Barth <cyrus@openwrt.org>
PKG_LICENSE := MIT
PAC KA GE _LICENSE_FILES := COPYING
PKG_LICENSE_FILES := COPYING
PKG_FIXUP := autoreconf
PKG_REMOVE_FILES := conftools/libtool.m4
PKG_INSTALL := 1
PKG_BUILD_PARALLEL := 1
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
@ -38,17 +39,12 @@ define Package/libexpat/description
A fast, non-validating, stream-oriented XML parsing library.
e n d e f
TARGET_CFLAGS += $( FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static
d e f i n e B u i l d / C o m p i l e
+$( MAKE) $( PKG_JOBS) -C $( PKG_BUILD_DIR) DESTDIR = " $( PKG_INSTALL_DIR) " install
e n d e f
d e f i n e H o s t / I n s t a l l
$( MAKE) -C $( HOST_BUILD_DIR) install
e n d e f
@ -56,13 +52,17 @@ endef
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/expat{ ,_external} .h $( 1) /usr/include/
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/expat.pc $( 1) /usr/lib/pkgconfig/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libexpat.{ a,so*} $( 1) /usr/lib/
e n d e f
d e f i n e P a c k a g e / l i b e x p a t / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libexpat.so. * $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libexpat.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call HostBuild ) )