From 950a63a75383ec42795ec4a0c1559bbc832912be Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Thu, 27 Jan 2011 12:02:40 -0300 Subject: libcuefile: convert to cmaketargets infrastructure Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/multimedia/libcuefile/libcuefile.mk | 31 ++++++----------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'package/multimedia') diff --git a/package/multimedia/libcuefile/libcuefile.mk b/package/multimedia/libcuefile/libcuefile.mk index 934113ba0..86ec07098 100644 --- a/package/multimedia/libcuefile/libcuefile.mk +++ b/package/multimedia/libcuefile/libcuefile.mk @@ -7,36 +7,17 @@ LIBCUEFILE_VERSION = r453 LIBCUEFILE_SITE = http://files.musepack.net/source LIBCUEFILE_SOURCE = libcuefile_$(LIBCUEFILE_VERSION).tar.gz -LIBCUEFILE_DEPENDENCIES = host-cmake LIBCUEFILE_INSTALL_STAGING = YES -# CMake doesn't support having the --sysroot option directly in the -# compiler path, so move this option to the CFLAGS/CXXFLAGS variables. -# It also gets confused by ccache, so don't use ccache here. -LIBCUEFILE_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC_NOCCACHE)) -LIBCUEFILE_TARGET_CFLAGS = $(filter --sysroot=%,$(TARGET_CC)) $(TARGET_CFLAGS) - -define LIBCUEFILE_CONFIGURE_CMDS - (cd $(@D) ; \ - $(HOST_DIR)/usr/bin/cmake . \ - -DCMAKE_C_COMPILER:FILEPATH="$(LIBCUEFILE_TARGET_CC)" \ - -DCMAKE_C_FLAGS:STRING="$(LIBCUEFILE_TARGET_CFLAGS)" \ - -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ - ) -endef - -define LIBCUEFILE_BUILD_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -endef - -define LIBCUEFILE_INSTALL_STAGING_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" install +define LIBCUEFILE_INSTALL_STAGING_INCLUDES cp -r $(@D)/include $(STAGING_DIR)/usr endef -define LIBCUEFILE_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install +define LIBCUEFILE_INSTALL_TARGET_INCLUDES cp -r $(@D)/include $(TARGET_DIR)/usr endef -$(eval $(call GENTARGETS,package/multimedia,libcuefile)) +LIBCUEFILE_POST_INSTALL_STAGING_HOOKS += LIBCUEFILE_INSTALL_STAGING_INCLUDES +LIBCUEFILE_POST_INSTALL_TARGET_HOOKS += LIBCUEFILE_INSTALL_TARGET_INCLUDES + +$(eval $(call CMAKETARGETS,package/multimedia,libcuefile)) -- cgit v1.2.3