Port ptunnel to -ng
[openwrt/svn-archive/archive.git] / multimedia / palantir / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=palantir
12 PKG_VERSION:=2.6
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=8e4d20e7f7fad26d7447483c68894ace
15
16 PKG_SOURCE_URL:=http://www.fastpath.it/products/palantir/pub/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 define Package/palantir
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libjpeg
27 TITLE:=A multichannel interactive streaming solution
28 DESCRIPTION:=Palantir is a Linux-based streaming system designed to transmit live\\\
29 video, audio and data over a TCP/IP network, as well as to control\\\
30 remote devices.\\\
31 URL:=http://www.fastpath.it/products/palantir/
32 endef
33
34 define Package/palantir/conffiles
35 /etc/palantir.conf
36 endef
37
38 export CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
39 export LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
40
41 include $(INCLUDE_DIR)/package.mk
42
43 define Build/Compile
44 rm -rf $(PKG_INSTALL_DIR)
45 mkdir -p $(PKG_INSTALL_DIR)/usr
46 $(MAKE) -C $(PKG_BUILD_DIR)/server/libgsm \
47 $(TARGET_CONFIGURE_OPTS) \
48 CCINC="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
49 lib/libgsm.a
50 $(MAKE) -C $(PKG_BUILD_DIR)/server \
51 $(TARGET_CONFIGURE_OPTS) \
52 CFLAGS="-Wall -D_REENTRANT $(TARGET_CFLAGS)" \
53 palantir
54 endef
55
56 define Package/palantir/install
57 install -d -m0755 $(1)/etc
58 install -m0644 $(PKG_BUILD_DIR)/server/palantir-mips.conf.sample $(1)/etc/palantir.conf
59 install -d -m0755 $(1)/usr/sbin
60 install -m0755 $(PKG_BUILD_DIR)/server/palantir $(1)/usr/sbin/
61 endef
62
63 $(eval $(call BuildPackage,palantir))