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.

69 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2015-2016 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:=3
  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. --binutils=$(TARGET_CROSS) \
  38. --os=Linux \
  39. --kerneldir=$(LINUX_DIR) \
  40. --prefix=/usr \
  41. --target=unix \
  42. --can=socket \
  43. --timers=unix \
  44. --debug=ERR \
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  50. endef
  51. define Package/libcanfestival/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcanfestival_can_socket.so $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libcanfestival))