add a patch to use target optimization flags, change to build-dep on libjpeg, Makefil...
[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 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 PKG_BUILDDEP:=libjpeg
23
24 define Package/palantir
25 SECTION:=multimedia
26 CATEGORY:=Multimedia
27 TITLE:=A multichannel interactive streaming solution
28 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 URL:=http://www.fastpath.it/products/palantir/
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 rm -rf $(PKG_INSTALL_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)/usr
47 $(MAKE) -C $(PKG_BUILD_DIR)/server/libgsm \
48 $(TARGET_CONFIGURE_OPTS) \
49 CCINC="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
50 COPTS="$(TARGET_CFLAGS)" \
51 lib/libgsm.a
52 $(MAKE) -C $(PKG_BUILD_DIR)/server \
53 $(TARGET_CONFIGURE_OPTS) \
54 COPTS="$(TARGET_CFLAGS)" \
55 palantir
56 endef
57
58 define Package/palantir/install
59 install -d -m0755 $(1)/etc
60 install -m0644 $(PKG_BUILD_DIR)/server/palantir-mips.conf.sample $(1)/etc/palantir.conf
61 install -d -m0755 $(1)/usr/sbin
62 install -m0755 $(PKG_BUILD_DIR)/server/palantir $(1)/usr/sbin/
63 endef
64
65 $(eval $(call BuildPackage,palantir))