python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ezxml / ezxml.mk
blobf1e18aa68032c2759b32486d03ea4e616db639d2
1 ################################################################################
3 # ezxml
5 ################################################################################
7 EZXML_VERSION = 0.8.6
8 EZXML_SITE = http://downloads.sourceforge.net/project/ezxml/ezXML/ezXML%20$(EZXML_VERSION)
9 EZXML_INSTALL_STAGING = YES
10 EZXML_LICENSE = MIT
11 EZXML_LICENSE_FILES = license.txt
13 EZXML_CFLAGS = $(TARGET_CFLAGS)
15 # mmap code uses madvise which isn't available on nommu uClibc
16 ifeq ($(BR2_USE_MMU),)
17 EZXML_CFLAGS += -D EZXML_NOMMAP
18 endif
20 define EZXML_BUILD_CMDS
21 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f GNUmakefile \
22 CC="$(TARGET_CC)" CFLAGS="$(EZXML_CFLAGS)" AR=$(TARGET_AR)
23 endef
25 define EZXML_INSTALL_STAGING_CMDS
26 $(INSTALL) -D -m 0644 $(@D)/ezxml.h $(STAGING_DIR)/usr/include/ezxml.h
27 $(INSTALL) -D -m 0644 $(@D)/libezxml.a $(STAGING_DIR)/usr/lib/libezxml.a
28 endef
30 define EZXML_INSTALL_TARGET_CMDS
31 $(INSTALL) -D -m 0644 $(@D)/ezxml.h $(TARGET_DIR)/usr/include/ezxml.h
32 $(INSTALL) -D -m 0644 $(@D)/libezxml.a $(TARGET_DIR)/usr/lib/libezxml.a
33 endef
35 $(eval $(generic-package))