2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://people.suug.ch
/~tgr
/libnl
/files
/
17 PKG_MD5SUM
:=ae970ccd9144e132b68664f98e7ceeb1
19 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=netlink socket library
25 URL
:=http
://people.suug.ch
/~tgr
/libnl
/
28 define Package
/libnl
/description
29 This package contains a library for applications dealing with netlink sockets
32 TARGET_CFLAGS
+= -ffunction-sections
$(FPIC
)
35 $(call Build
/Compile
/Default
)
36 make
-C
$(PKG_BUILD_DIR
) \
37 DESTDIR
="$(PKG_INSTALL_DIR)" \
41 ifneq ($(CONFIG_LINUX_2_6
),)
42 define Build
/InstallDev
44 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
45 mkdir
-p
$(1)/usr
/include/libnl
46 $(CP
) $(PKG_BUILD_DIR
)/include/linux
$(1)/usr
/include/libnl
/
49 define Package
/libnl
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnl.so.
* $(1)/usr
/lib
/
55 $(eval
$(call BuildPackage
,libnl
))