diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2011-01-18 13:54:36 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-01-20 21:28:31 +0100 |
commit | 9af7b7677fa9672b39939e7e7160cfbd0ba23c5f (patch) | |
tree | 22363295af1d801d9c41718d1f83beb63c9b1d21 /package/multimedia/libcuefile/libcuefile.mk | |
parent | 464f862d82c2c1dee1f154e587e8771bbf45f780 (diff) |
libcuefile: new package
[Peter: fix build with ccache]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/multimedia/libcuefile/libcuefile.mk')
-rw-r--r-- | package/multimedia/libcuefile/libcuefile.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/package/multimedia/libcuefile/libcuefile.mk b/package/multimedia/libcuefile/libcuefile.mk new file mode 100644 index 000000000..934113ba0 --- /dev/null +++ b/package/multimedia/libcuefile/libcuefile.mk @@ -0,0 +1,42 @@ +################################################################################ +# +# libcuefile +# +################################################################################ + +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 + cp -r $(@D)/include $(STAGING_DIR)/usr +endef + +define LIBCUEFILE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install + cp -r $(@D)/include $(TARGET_DIR)/usr +endef + +$(eval $(call GENTARGETS,package/multimedia,libcuefile)) |