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