2 # Copyright (C) 2019 EWSI
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/ewsi
/$(PKG_NAME
)/tar.gz
/v
$(PKG_VERSION
)?
16 PKG_HASH
:=b3d12f2533eafbb293bbf27608ff39520508d955a084f33894c594f39d2f7c8e
18 PKG_MAINTAINER
:=Carey Sonsino
<careys@edgewaterwireless.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=COPYING
24 PKG_BUILD_FLAGS
:=gc-sections lto
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/libdcwproto
32 TITLE
:=Dual-Channel WiFi messaging library
33 URL
:=https
://www.edgewaterwireless.com
34 DEPENDS
:=+kmod-macremapper
37 define Package
/libdcwproto
/description
38 Platform-independent C library for marshaling and serializing DCW messages
41 TARGET_LDFLAGS
+= -Wl
,--as-needed
43 define Build
/InstallDev
44 $(INSTALL_DIR
) $(1)/usr
/include
45 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
46 $(INSTALL_DIR
) $(1)/usr
/lib
47 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/$(PKG_NAME
)*.so
* $(1)/usr
/lib
/
50 define Package
/libdcwproto
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 # Note: $(INSTALL_BIN) does not keep symlinks, so use $(CP)
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/$(PKG_NAME
)*.so
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libdcwproto
))