All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCHv2] libcuefile: convert to cmaketargets infrastructure
@ 2011-01-27 15:02 Gustavo Zacarias
  2011-01-29 23:39 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2011-01-27 15:02 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/multimedia/libcuefile/libcuefile.mk |   31 +++++---------------------
 1 files changed, 6 insertions(+), 25 deletions(-)

diff --git a/package/multimedia/libcuefile/libcuefile.mk b/package/multimedia/libcuefile/libcuefile.mk
index 934113b..86ec070 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))
-- 
1.7.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCHv2] libcuefile: convert to cmaketargets infrastructure
  2011-01-27 15:02 [Buildroot] [PATCHv2] libcuefile: convert to cmaketargets infrastructure Gustavo Zacarias
@ 2011-01-29 23:39 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-01-29 23:39 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
 Gustavo> ---
 Gustavo>  package/multimedia/libcuefile/libcuefile.mk |   31 +++++---------------------
 Gustavo>  1 files changed, 6 insertions(+), 25 deletions(-)

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-29 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27 15:02 [Buildroot] [PATCHv2] libcuefile: convert to cmaketargets infrastructure Gustavo Zacarias
2011-01-29 23:39 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.