9e4aeb3c2b
Thanks to the pkgparentdir and pkgname functions, we can rewrite the GENTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
24 lines
711 B
Makefile
24 lines
711 B
Makefile
################################################################################
|
|
#
|
|
# libcuefile
|
|
#
|
|
################################################################################
|
|
|
|
LIBCUEFILE_VERSION = r475
|
|
LIBCUEFILE_SITE = http://files.musepack.net/source
|
|
LIBCUEFILE_SOURCE = libcuefile_$(LIBCUEFILE_VERSION).tar.gz
|
|
LIBCUEFILE_INSTALL_STAGING = YES
|
|
|
|
define LIBCUEFILE_INSTALL_STAGING_INCLUDES
|
|
cp -r $(@D)/include $(STAGING_DIR)/usr
|
|
endef
|
|
|
|
define LIBCUEFILE_INSTALL_TARGET_INCLUDES
|
|
cp -r $(@D)/include $(TARGET_DIR)/usr
|
|
endef
|
|
|
|
LIBCUEFILE_POST_INSTALL_STAGING_HOOKS += LIBCUEFILE_INSTALL_STAGING_INCLUDES
|
|
LIBCUEFILE_POST_INSTALL_TARGET_HOOKS += LIBCUEFILE_INSTALL_TARGET_INCLUDES
|
|
|
|
$(eval $(call CMAKETARGETS))
|