![Maxime Hadjinlian](/assets/img/avatar_default.png)
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 lines
813 B
Makefile
28 lines
813 B
Makefile
################################################################################
|
|
#
|
|
# rapidxml
|
|
#
|
|
################################################################################
|
|
|
|
RAPIDXML_VERSION = 1.13
|
|
RAPIDXML_SOURCE = rapidxml-$(RAPIDXML_VERSION).zip
|
|
RAPIDXML_SITE = http://downloads.sourceforge.net/project/rapidxml/rapidxml/rapidxml%20$(RAPIDXML_VERSION)
|
|
RAPIDXML_LICENSE = BSL-1.0 or MIT
|
|
RAPIDXML_LICENSE_FILES = license.txt
|
|
|
|
# C++ headers only
|
|
RAPIDXML_INSTALL_TARGET = NO
|
|
RAPIDXML_INSTALL_STAGING = YES
|
|
|
|
define RAPIDXML_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(RAPIDXML_DL_DIR)/$(RAPIDXML_SOURCE)
|
|
mv $(@D)/rapidxml-$(RAPIDXML_VERSION)/* $(@D)/
|
|
rmdir $(@D)/rapidxml-$(RAPIDXML_VERSION)
|
|
endef
|
|
|
|
define RAPIDXML_INSTALL_STAGING_CMDS
|
|
cp -dpfr $(@D)/*hpp $(STAGING_DIR)/usr/include
|
|
endef
|
|
|
|
$(eval $(generic-package))
|