1. # Copyright (C) 2008 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. #
  5.  
  6. include $(TOPDIR)/rules.mk
  7. ## Package name
  8. PKG_NAME:=lpsk31
  9. ## Package version we need (to match our download source)
  10. PKG_VERSION:=1.1
  11. ## Release version (don't really needed, just for completeness)
  12. PKG_RELEASE:=1
  13. ## Name of the file we will download, with the previous package name definitions
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. ## Url with the PKG_SOURCE file
  16. PKG_SOURCE_URL:=http://5b4az.chronos.org.uk/pkg/psk31/lpsk31/
  17. ## Program to uncompress the sources
  18. PKG_CAT:=bunzip2
  19.  
  20. include $(INCLUDE_DIR)/package.mk
  21. # Definition of the package, for adding to menuconfig and creating the ipkg.
  22. define Package/lpsk31
  23. TITLE:=Text Based PSK31 Encoder / Decoder
  24. SECTION:=hamradio
  25. CATEGORY:=HamRadio
  26. URL:=http://5b4az.chronos.org.uk/pkg/psk31/lpsk31/
  27. endef
  28. # Directory where the sources will be uncompiled and built BUILD_DIR
  29. # is an env variable from the OpenWrt toolchain, you don't need to set
  30. # it.
  31. PKG_BUILD_DIR:=$(BUILD_DIR)/lpsk31-$(PKG_VERSION)
  32. # Long description of the package
  33. define Package/lpsk31/description
  34. lpsk31 is a text based psk31 encoder / decoder
  35. endef
  36. # If ./configure does not need any options, leave it as follows
  37. define Package/lpsk31/Build/Configure
  38. $(call Build/Configure/Default)
  39. endef
  40.  
  41. # Where will be copied the binaries and libraries after installation.
  42. # lpsk31 creates the binary executable in the interface directory.
  43. define Package/lpsk31/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/interface/lpsk31 $(1)/usr/bin/
  46. endef
  47.  
  48. # Final step for bulding the package
  49. $(eval $(call BuildPackage,lpsk31))