Subversion Repositories svnkaklik

Rev

Rev 410 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
497 kaklik 1
# 
2
# Copyright (C) 2007 OpenWrt.org
3
#
4
# This is free software, licensed under the GNU General Public License v2.
5
# See /LICENSE for more information.
6
#
7
# This Makefile is a skeleton
8
#
9
# $Id: $
391 kaklik 10
 
11
include $(TOPDIR)/rules.mk
12
 
13
PKG_NAME:=indiserver
14
PKG_VERSION:=0.5
15
 
497 kaklik 16
PKG_SOURCE:=indilib-0.5.tar.gz
391 kaklik 17
PKG_SOURCE_URL:=http://download.sourceforge.net/indi
497 kaklik 18
PKG_MD5SUM:=
391 kaklik 19
 
20
PKG_BUILD_DIR:=$(BUILD_DIR)/indi
497 kaklik 21
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
391 kaklik 22
 
497 kaklik 23
include $(INCLUDE_DIR)/package.mk
391 kaklik 24
 
497 kaklik 25
define Package/indiserver
26
  SECTION:=utils
27
  CATEGORY:=Utilities
28
  TITLE:=Instrument Neutral Distributed Interface server
29
  URL:=http://indi.sourceforge.net/
30
  DEPENDS:=+libusb +zlib +libstdcpp
31
endef
391 kaklik 32
 
497 kaklik 33
define Package/indiserver/description
34
	INDI is a distributed control protocol designed to operate 
35
	astronomical instrumentation. INDI is small, flexible, easy to parse, 
36
	and scalable. It supports common DCS functions 
37
	such as remote control, data acquisition, monitoring, and a lot more.
38
endef
391 kaklik 39
 
497 kaklik 40
CONFIGURE_ARGS += \
41
	--disable-v4l2 \
42
	--disable-nls \
391 kaklik 43
 
497 kaklik 44
define Build/Compile
45
	# pass CFLAGS again to override -O2 set by configure
46
	$(MAKE) -C $(PKG_BUILD_DIR)/src DESTDIR="$(PKG_INSTALL_DIR)" install
47
endef
391 kaklik 48
 
497 kaklik 49
define Package/indiserver/install
50
	$(INSTALL_DIR) $(1)/usr/bin
51
	$(INSTALL_BIN) $(BUILD_DIR)/indi/src $(1)/usr/bin/
52
endef
393 kaklik 53
 
497 kaklik 54
$(eval $(call BuildPackage,indiserver))