You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libcanfestival
  9. PKG_RELEASE:=2
  10. PKG_SOURCE_PROTO:=hg
  11. PKG_SOURCE_URL:=http://dev.automforge.net/CanFestival-3
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  13. PKG_SOURCE_VERSION:=8bfe0ac00cdb
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
  15. PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
  16. PKG_LICENSE:=LGPL-2.1+
  17. PKG_LICENSE_FILES:=LICENCE
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libcanfestival
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Free software CANopen library
  25. URL:=http://canfestival.org
  26. DEPENDS:=+libpthread +librt
  27. endef
  28. define Package/libcanfestival/description
  29. CanFestival library
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_ARGS := \
  33. --cc=$(TARGET_CC) \
  34. --cxx=$(TARGET_CXX) \
  35. --ld=$(TARGET_CC) \
  36. --arch=$(ARCH) \
  37. --os=Linux \
  38. --kerneldir=$(LINUX_DIR) \
  39. --prefix=/usr \
  40. --target=unix \
  41. --can=socket \
  42. --timers=unix \
  43. --debug=ERR \
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include
  46. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  49. endef
  50. define Package/libcanfestival/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcanfestival_can_socket.so $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,libcanfestival))