514291f39e
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>
31 lines
942 B
Makefile
31 lines
942 B
Makefile
################################################################################
|
|
#
|
|
# libb64
|
|
#
|
|
################################################################################
|
|
|
|
LIBB64_VERSION = 1.2.1
|
|
LIBB64_SOURCE = libb64-$(LIBB64_VERSION).zip
|
|
LIBB64_SITE = https://downloads.sourceforge.net/project/libb64/libb64/libb64
|
|
LIBB64_LICENSE = Public Domain
|
|
LIBB64_LICENSE_FILES = LICENSE
|
|
LIBB64_INSTALL_STAGING = YES
|
|
# Only static lib and headers
|
|
LIBB64_INSTALL_TARGET = NO
|
|
|
|
define LIBB64_EXTRACT_CMDS
|
|
unzip $(LIBB64_DL_DIR)/$(LIBB64_SOURCE) -d $(BUILD_DIR)
|
|
endef
|
|
|
|
define LIBB64_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS)" -C $(@D) all_src
|
|
endef
|
|
|
|
define LIBB64_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -d -m 0755 $(STAGING_DIR)/usr/include/b64
|
|
$(INSTALL) -m 0644 $(@D)/include/b64/* $(STAGING_DIR)/usr/include/b64
|
|
$(INSTALL) -D -m 0755 $(@D)/src/libb64.a $(STAGING_DIR)/usr/lib
|
|
endef
|
|
|
|
$(eval $(generic-package))
|