[package] update gst-plugins-base to 0.10.25, modularize plugin building
[openwrt/svn-archive/archive.git] / multimedia / kissdx / Makefile
1 #
2 # Copyright (C) 2009 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:=7
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
22 define Package/kissdx
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 DEPENDS:=+libjpeg +libiconv +libdvdread
26 TITLE:=PC-Link clone for KiSS media players
27 URL:=http://kissdx.vidartysse.net
28 endef
29
30 define Package/kissdx/description
31 kissdx is a PC-Link clone for KiSS media players, based for
32 the most part on kissd (which it now replaces), with added
33 features for media playback, management, flexibility and more.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 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$(STAGING_DIR)/usr/lib/libiconv/include -I$(STAGING_DIR)/usr/include/dvdread $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib/libiconv/lib $(TARGET_LDFLAGS)" \
40 STRIP=$(STRIP) \
41 CC="$(TARGET_CROSS)gcc" all
42 endef
43
44 define Package/kissdx/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kissdx $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DATA) ./files/kissdx.config $(1)/etc/config/kissdx
51 $(INSTALL_BIN) ./files/kissdx.init $(1)/etc/init.d/kissdx
52 endef
53
54 $(eval $(call BuildPackage,kissdx))