Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Copyright (C) 2010 segal.ubi.pt
  3. # Copyright (C) 2014 nunojpg@gmail.com
  4. # Copyright (C) 2015 dev@localnet.hu
  5. #
  6. # This is free software, licensed under the GNU General Public License v2.
  7. # See /LICENSE for more information.
  8. #
  9. include $(TOPDIR)/rules.mk
  10. PKG_NAME:=open2300
  11. PKG_VERSION:=1.12
  12. PKG_RELEASE:=5
  13. PKG_LICENSE:=GPL-2.0+
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_SOURCE_PROTO:=svn
  16. PKG_SOURCE_URL:=http://www.lavrsen.dk/svn/open2300/trunk
  17. PKG_SOURCE_VERSION:=r12
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  20. PKG_CHECK_FORMAT_SECURITY:=0
  21. PKG_MAINTAINER:=Gabor SZOLLOSI <dev@localnet.hu>
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/open2300
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. TITLE:=WS23XX weather station utilities
  27. URL:=http://www.lavrsen.dk/foswiki/bin/view/Open2300
  28. endef
  29. define Package/open2300/description
  30. This is an utility suite used to communicate with and collect data from a WS23XX wheather station.
  31. endef
  32. MAKE_FLAGS += \
  33. CFLAGS="$(TARGET_CFLAGS) -DVERSION=\"$(PKG_VERSION)\""
  34. define Package/open2300/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin2300 $(1)/usr/bin/
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/cw2300 $(1)/usr/bin/
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump2300 $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/fetch2300 $(1)/usr/bin/
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/histlog2300 $(1)/usr/bin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/history2300 $(1)/usr/bin/
  42. $(INSTALL_BIN) $(PKG_BUILD_DIR)/interval2300 $(1)/usr/bin/
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/light2300 $(1)/usr/bin/
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/log2300 $(1)/usr/bin/
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/minmax2300 $(1)/usr/bin/
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/open2300 $(1)/usr/bin/
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/wu2300 $(1)/usr/bin/
  48. $(INSTALL_BIN) $(PKG_BUILD_DIR)/xml2300 $(1)/usr/bin/
  49. $(INSTALL_DIR) $(1)/etc
  50. $(INSTALL_DATA) ./files/open2300.conf $(1)/etc/
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib2300.so.1.11 $(1)/usr/lib/
  53. ln -sf /usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so
  54. endef
  55. $(eval $(call BuildPackage,open2300))