8magsvn – Rev 15

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_RELEASE:=1
PKG_MD5SUM:=

PKG_SOURCE_URL:=http://downloads.ust.cz/sources/
PKG_SOURCE:=sidd-source-0.1.tar.gz
PKG_CAT:=zcat

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

include $(TOPDIR)/package/rules.mk

$(eval $(call PKG_template,SIDD,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))

$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
        touch $@

$(PKG_BUILD_DIR)/.built:
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)/usr/bin
        $(TARGET_CC) -g -O2 $(PKG_BUILD_DIR)/src/sidd.c -o $(PKG_BUILD_DIR)/$(PKG_NAME) -l fftw3
        $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_INSTALL_DIR)/usr/bin
        touch $@

$(IPKG_SIDD):
        install -d -m0755 $(IDIR_SIDD)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(IDIR_SIDD)/usr/bin
        $(RSTRIP) $(IDIR_SIDD)
        $(IPKG_BUILD) $(IDIR_SIDD) $(PACKAGE_DIR)

mostlyclean:
        $(MAKE) -C $(PKG_BUILD_DIR) clean
        rm -f $(PKG_BUILD_DIR)/.built