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