3ff6b5b05a1b6e606e3d13d36d606c9dccbbb0b3
[openwrt/svn-archive/archive.git] / multimedia / palantir / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=palantir
11 PKG_VERSION:=2.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=http://www.fastpath.it/products/palantir/pub/
16 PKG_MD5SUM:=3a5b1fb340857f6d8e357bf39b77583e
17
18 PKG_BUILD_DEPENDS:=libjpeg
19
20 define Package/palantir
21 SECTION:=multimedia
22 CATEGORY:=Multimedia
23 DEPENDS:=+libjpeg +libpthread
24 TITLE:=A multichannel interactive streaming solution
25 URL:=http://www.fastpath.it/products/palantir/
26 endef
27
28 define Package/palantir/description
29 Palantir is a Linux-based streaming system designed to transmit live
30 video, audio and data over a TCP/IP network, as well as to control
31 remote devices.
32 endef
33
34 define Package/palantir/conffiles
35 /etc/palantir.conf
36 endef
37
38 include $(INCLUDE_DIR)/package.mk
39
40 export CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
41 export LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR)/server/libgsm \
45 $(TARGET_CONFIGURE_OPTS) \
46 CCINC="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
47 COPTS="$(TARGET_CFLAGS)" \
48 lib/libgsm.a
49 $(MAKE) -C $(PKG_BUILD_DIR)/server \
50 $(TARGET_CONFIGURE_OPTS) \
51 COPTS="$(TARGET_CFLAGS)" \
52 palantir
53 endef
54
55 define Package/palantir/install
56 $(INSTALL_DIR) $(1)/etc
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/server/palantir-mips.conf.sample $(1)/etc/palantir.conf
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/server/palantir $(1)/usr/sbin/
60 endef
61
62 $(eval $(call BuildPackage,palantir))