diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
commit | 6bb35a38c244b20bbd6e85fd16f69ff2c4f0ed72 (patch) | |
tree | 432513fc67dcff844ecf5c48f38bdcf1a9fe3523 /package/cdrkit | |
parent | b6ebab842dbb0581526f907bf5b39cad0ac1f756 (diff) | |
parent | 0b79c5022d32b15180a18087a0fba5a2f1af5cc7 (diff) |
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/cdrkit')
-rw-r--r-- | package/cdrkit/Config.in | 11 | ||||
-rw-r--r-- | package/cdrkit/cdrkit.mk | 63 |
2 files changed, 74 insertions, 0 deletions
diff --git a/package/cdrkit/Config.in b/package/cdrkit/Config.in new file mode 100644 index 000000000..2e255819a --- /dev/null +++ b/package/cdrkit/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_CDRKIT + # Needed for libbz + select BR2_PACKAGE_BZIP2 + select BR2_PACKAGE_LIBCAP + bool "cdrkit" + help + cdrkit is a suite of programs for recording CDs and DVDs, + blanking CD-RW media, creating ISO-9660 filesystem images, + extracting audio CD data, and more. + + http://www.cdrkit.org/ diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk new file mode 100644 index 000000000..a6a2e80c5 --- /dev/null +++ b/package/cdrkit/cdrkit.mk @@ -0,0 +1,63 @@ +CDRKIT_VERSION=1.1.10 +CDRKIT_SOURCE=cdrkit-$(CDRKIT_VERSION).tar.gz +CDRKIT_SITE=http://www.cdrkit.org/releases/ + +CDRKIT_DEPENDENCIES=libcap bzip2 host-cmake +HOST_CDRKIT_DEPENDENCIES=host-libcap host-cmake host-bzip2 + +ifeq ($(BR2_ENDIAN),"BIG") +CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=1 +else +CMAKE_ENDIAN_OPT=-DBITFIELDS_HTOL=0 +endif + +define CDRKIT_CONFIGURE_CMDS + -mkdir $(@D)/build + (cd $(@D)/build ; \ + $(HOST_DIR)/usr/bin/cmake .. \ + -Wno-dev \ + -DCMAKE_SYSTEM_NAME:STRING="Linux" \ + -DCMAKE_C_COMPILER:FILEPATH="$(TARGET_CC)" \ + -DCMAKE_CXX_COMPILER:FILEPATH="$(TARGET_CXX)" \ + -DCMAKE_C_FLAGS:STRING="$(TARGET_CFLAGS)" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ + -DCMAKE_FIND_ROOT_PATH:PATH="$(STAGING_DIR)" \ + -DCMAKE_INSTALL_PREFIX:PATH="$(TARGET_DIR)/usr" \ + $(CMAKE_ENDIAN_OPT) \ + ) +endef + +define CDRKIT_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build +endef + +define CDRKIT_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/build install +endef + +define HOST_CDRKIT_CONFIGURE_CMDS + -mkdir $(@D)/build + (cd $(@D)/build ; \ + $(HOST_DIR)/usr/bin/cmake .. \ + -Wno-dev \ + -DCMAKE_C_FLAGS="$(HOST_CFLAGS)" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_INSTALL_PREFIX:STRING="$(HOST_DIR)/usr" \ + ) +endef + +define HOST_CDRKIT_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/build +endef + +define HOST_CDRKIT_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/build install +endef + +$(eval $(call GENTARGETS,package,cdrkit)) +$(eval $(call GENTARGETS,package,cdrkit,host)) + |