packages/kissdx: use new service functions
[openwrt/svn-archive/archive.git] / multimedia / kissdx / Makefile
1 #
2 # Copyright (C) 2009-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=kissdx
11 PKG_VERSION:=0.14.0.b1a
12 PKG_RELEASE:=8
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=http://kissdx.vidartysse.net
16 PKG_MD5SUM:=ef213d2748f5a63b1c97ac7bfa942b2f
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/kissdx
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libjpeg +libdvdread $(ICONV_DEPENDS)
27 TITLE:=PC-Link clone for KiSS media players
28 URL:=http://kissdx.vidartysse.net
29 endef
30
31 define Package/kissdx/description
32 kissdx is a PC-Link clone for KiSS media players, based for
33 the most part on kissd (which it now replaces), with added
34 features for media playback, management, flexibility and more.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CFLAGS="$(TARGET_CFLAGS) -DLinux -DUSE_INTERNAL_SENDFILE -std=gnu99 -Wall -Wstrict-prototypes -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DFILE_OFFSET_BITS=64 -D_GNU_SOURCE -I$(ICONV_PREFIX)/include -I$(STAGING_DIR)/usr/include/dvdread $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -L$(ICONV_PREFIX)/lib" \
40 LDFLAGS="-L$(ICONV_PREFIX)/lib $(TARGET_LDFLAGS)" \
41 STRIP=$(STRIP) \
42 CC="$(TARGET_CROSS)gcc" all
43 endef
44
45 define Package/kissdx/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kissdx $(1)/usr/bin/
48 $(INSTALL_DIR) $(1)/etc
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_DIR) $(1)/etc/config
51 $(INSTALL_DATA) ./files/kissdx.config $(1)/etc/config/kissdx
52 $(INSTALL_BIN) ./files/kissdx.init $(1)/etc/init.d/kissdx
53 endef
54
55 $(eval $(call BuildPackage,kissdx))