summaryrefslogtreecommitdiff
path: root/package/cdrkit/Makefile
blob: cc0a8b4f8de6911a15f7fdfa62934a9f1be81a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		cdrkit
PKG_VERSION:=		1.1.11
PKG_RELEASE:=		1
PKG_HASH:=		d1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da
PKG_DESCR:=		cd burning kit
PKG_SECTION:=		sys/hw
PKG_DEPENDS:=		libmagic zlib libbz2 libcap
PKG_BUILDDEP:=		cmake-host file zlib bzip2 libcap
PKG_SITES:=		http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/c/cdrkit/

DISTFILES:=             $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,CDRKIT,cdrkit,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIG_STYLE:=          cmake
CMAKE_FLAGS+=		-DUSE_LIBC_NLS=1 -DUSE_LIBXNET=0 -DUSE_LIBNLS=0

ifeq ($(ADK_TARGET_ENDIAN),little)
CMAKE_FLAGS+=		-DBITFIELDS_HTOL=0
else
CMAKE_FLAGS+=		-DBITFIELDS_HTOL=1
endif

cdrkit-install:
	$(INSTALL_DIR) $(IDIR_CDRKIT)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/* \
		$(IDIR_CDRKIT)/usr/bin

include $(ADK_TOPDIR)/mk/pkg-bottom.mk