2 # Copyright (C) 2006-2015 OpenWrt.org
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
).tgz
15 PKG_SOURCE_URL
:=http
://libdnet.googlecode.com
/files
/
16 PKG_MD5SUM
:=9253ef6de1b5e28e9c9a62b882e44cc9
22 PKG_MAINTAINER
:=Luka Perkov
<luka@openwrt.org
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libdnet
29 TITLE
:=Low-level network library
30 URL
:=http
://sourceforge.net
/projects
/libdnet
/
33 define Package
/libdnet
/description
34 libdnet is a library of simplified
, portable interface to several low-level
38 TARGET_CFLAGS
+= $(FPIC
)
50 CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE"
52 define Build
/InstallDev
53 $(INSTALL_DIR
) $(2)/bin
55 $(PKG_INSTALL_DIR
)/usr
/bin
/dnet-config \
58 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
61 $(INSTALL_DIR
) $(1)/usr
/include
63 $(PKG_INSTALL_DIR
)/usr
/include/dnet.h \
66 $(PKG_INSTALL_DIR
)/usr
/include/dnet \
69 $(INSTALL_DIR
) $(1)/usr
/lib
71 $(PKG_INSTALL_DIR
)/usr
/lib
/libdnet.
{la
,a
,so
*} \
75 define Package
/libdnet
/install
76 $(INSTALL_DIR
) $(1)/usr
/lib
78 $(PKG_INSTALL_DIR
)/usr
/lib
/libdnet.so.
* \
81 $(INSTALL_DIR
) $(1)/usr
/sbin
83 $(PKG_INSTALL_DIR
)/usr
/sbin
/dnet \
87 $(eval
$(call BuildPackage
,libdnet
))