8magsvn – Rev 20

Subversion Repositories:
Rev:
# $Id: Makefile 1146 2005-06-05 13:32:28Z nbd $

include $(TOPDIR)/rules.mk

PKG_NAME:=sidd
PKG_VERSION:=0.1

PKG_SOURCE_URL:=http://downloads.ust.cz/sources/
PKG_SOURCE:=sidd-0.96.tar.gz
PKG_MD5SUM:=

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

include $(INCLUDE_DIR)/package.mk

define Package/sidd
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=SIDD - Software VLF receiver
  DEPENDS:=+fftw3
  URL:=
endef

define Package/sidd/description
sidd daemon is desinged to record SID events
endef

define Package/sidd/conffiles
        /etc/sidd.conf
endef

define Build/Compile
        $(TARGET_CC) -g -O2 $(PKG_BUILD_DIR)/src/sidd.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) -lfftw3
endef

define Package/sidd/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
        $(INSTALL_DIR) $(1)/etc/
        $(INSTALL_CONF) ./files/sidd.conf $(1)/etc/
endef

$(eval $(call BuildPackage,sidd))