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