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.

73 lines
1.7 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:=6
  10. PKG_SOURCE_VERSION:=8bfe0ac00cdb
  11. PKG_SOURCE_URL:=http://dev.automforge.net/CanFestival-3/archive/$(PKG_SOURCE_VERSION).tar.bz2?_dummyfilename=
  12. PKG_SOURCE:=CanFestival-3-$(PKG_SOURCE_VERSION).tar.bz2
  13. PKG_HASH:=0bee7aaef266fc579922ca159b7acbe9cdc9a936ac1f30402814844b007f7185
  14. PKG_SOURCE_SUBDIR:=CanFestival-3-$(PKG_SOURCE_VERSION)
  15. PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
  16. PKG_LICENSE:=LGPL-2.1+
  17. PKG_LICENSE_FILES:=LICENCE
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  19. TAR_OPTIONS+= -m
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libcanfestival
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=Free software CANopen library
  27. URL:=http://canfestival.org
  28. DEPENDS:=+libpthread +librt
  29. endef
  30. define Package/libcanfestival/description
  31. CanFestival library
  32. endef
  33. TARGET_CFLAGS += $(FPIC)
  34. CONFIGURE_ARGS := \
  35. --cc=$(TARGET_CC) \
  36. --cxx=$(TARGET_CXX) \
  37. --ld=$(TARGET_CC) \
  38. --arch=$(ARCH) \
  39. --binutils=$(TARGET_CROSS) \
  40. --os=Linux \
  41. --kerneldir=$(LINUX_DIR) \
  42. --prefix=/usr \
  43. --target=unix \
  44. --can=socket \
  45. --timers=unix \
  46. --debug=ERR \
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include
  49. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
  52. endef
  53. define Package/libcanfestival/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcanfestival_can_socket.so $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libcanfestival))