summaryrefslogtreecommitdiffstats
path: root/package/libnl/libnl.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2009-07-26 21:08:51 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-07-26 21:10:56 +0200
commit57c2e79b27273f1a3ca76008c4a428496680e75e (patch)
tree0ce174260f8728ff46a9611e07823cb41d15e8d6 /package/libnl/libnl.mk
parentc972a086e5f4d57b1119809e5e90457792268b22 (diff)
downloadbuildroot-novena-57c2e79b27273f1a3ca76008c4a428496680e75e.tar.gz
buildroot-novena-57c2e79b27273f1a3ca76008c4a428496680e75e.zip
libnl: new package
Closes #287. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Tested-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libnl/libnl.mk')
-rw-r--r--package/libnl/libnl.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libnl/libnl.mk b/package/libnl/libnl.mk
new file mode 100644
index 000000000..1a667468d
--- /dev/null
+++ b/package/libnl/libnl.mk
@@ -0,0 +1,22 @@
+#############################################################
+#
+# libnl
+#
+#############################################################
+
+LIBNL_VERSION = 1.1
+LIBNL_SOURCE = libnl-$(LIBNL_VERSION).tar.gz
+LIBNL_SITE = http://distfiles.gentoo.org/distfiles
+LIBNL_INSTALL_STAGING = YES
+LIBNL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
+
+$(eval $(call AUTOTARGETS,package,libnl))
+
+$(LIBNL_HOOK_POST_INSTALL): $(LIBNL_TARGET_INSTALL_TARGET)
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnl.so*
+ touch $@
+
+$(LIBNL_TARGET_UNINSTALL):
+ $(call MESSAGE,"Uninstalling")
+ rm -f $(TARGET_DIR)/usr/lib/libnl.so*
+ rm -f $(LIBNL_TARGET_INSTALL_TARGET) $(LIBNL_HOOK_POST_INSTALL)