Subversion Repositories svnkaklik

Rev

Rev 410 | Blame | Compare with Previous | Last modification | View Log | Download

# 
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# This Makefile is a skeleton
#
# $Id: $

include $(TOPDIR)/rules.mk

PKG_NAME:=indiserver
PKG_VERSION:=0.5

PKG_SOURCE:=indilib-0.5.tar.gz
PKG_SOURCE_URL:=http://download.sourceforge.net/indi
PKG_MD5SUM:=

PKG_BUILD_DIR:=$(BUILD_DIR)/indi
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(INCLUDE_DIR)/package.mk

define Package/indiserver
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=Instrument Neutral Distributed Interface server
  URL:=http://indi.sourceforge.net/
  DEPENDS:=+libusb +zlib +libstdcpp
endef

define Package/indiserver/description
        INDI is a distributed control protocol designed to operate 
        astronomical instrumentation. INDI is small, flexible, easy to parse, 
        and scalable. It supports common DCS functions 
        such as remote control, data acquisition, monitoring, and a lot more.
endef

CONFIGURE_ARGS += \
        --disable-v4l2 \
        --disable-nls \

define Build/Compile
        # pass CFLAGS again to override -O2 set by configure
        $(MAKE) -C $(PKG_BUILD_DIR)/src DESTDIR="$(PKG_INSTALL_DIR)" install
endef

define Package/indiserver/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(BUILD_DIR)/indi/src $(1)/usr/bin/
endef

$(eval $(call BuildPackage,indiserver))