2011-12-14 16:15:18 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# cdrkit
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-03-02 22:32:52 +01:00
|
|
|
|
2011-12-14 16:15:18 +01:00
|
|
|
CDRKIT_VERSION = 1.1.11
|
|
|
|
CDRKIT_SITE = http://www.cdrkit.org/releases
|
|
|
|
CDRKIT_DEPENDENCIES = libcap bzip2 zlib
|
2010-03-02 22:32:52 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
|
|
CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=1
|
|
|
|
else
|
|
|
|
CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=0
|
|
|
|
endif
|
|
|
|
|
2011-01-26 22:18:45 +01:00
|
|
|
CDRKIT_CONF_OPT += $(CMAKE_ENDIAN_OPT)
|
2010-07-29 10:10:35 +02:00
|
|
|
|
2011-01-26 22:18:45 +01:00
|
|
|
## cdrkit isn't completely re-rooted by CMAKE_FIND_ROOT_PATH, so add
|
|
|
|
## some extra flags so it finds needed libs and headers.
|
|
|
|
CDRKIT_CONF_OPT += -DCMAKE_C_FLAGS="-I$(STAGING_DIR)/usr/include"
|
|
|
|
CDRKIT_CONF_OPT += -DCMAKE_EXE_LINKER_FLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
HOST_CDRKIT_CONF_OPT += -DCMAKE_C_FLAGS="-I$(HOST_DIR)/usr/include"
|
|
|
|
HOST_CDRKIT_CONF_OPT += -DCMAKE_EXE_LINKER_FLAGS="$(HOST_LDFLAGS)"
|
2010-03-02 22:32:52 +01:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(cmake-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-cmake-package))
|