summaryrefslogtreecommitdiffstats
path: root/rules/libnl.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2009-01-29 14:50:07 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2009-01-29 14:50:07 +0000
commit5ddf2a51305375fbcfea6783c9acb904e9f7a485 (patch)
tree3c4e49bfd3ff8a2fefcc104d01d3c23996176e99 /rules/libnl.make
parent2c82738d75b793ea86fecfc9ee35372526819021 (diff)
downloadptxdist-5ddf2a51305375fbcfea6783c9acb904e9f7a485.tar.gz
ptxdist-5ddf2a51305375fbcfea6783c9acb904e9f7a485.tar.xz
* libnl: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9673 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libnl.make')
-rw-r--r--rules/libnl.make117
1 files changed, 117 insertions, 0 deletions
diff --git a/rules/libnl.make b/rules/libnl.make
new file mode 100644
index 000000000..8266c6dc6
--- /dev/null
+++ b/rules/libnl.make
@@ -0,0 +1,117 @@
+# -*-makefile-*-
+# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
+#
+# Copyright (C) 2009 by Robert Schwebel <r.schwebel@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBNL) += libnl
+
+#
+# Paths and names
+#
+LIBNL_VERSION := 1.1
+LIBNL := libnl-$(LIBNL_VERSION)
+LIBNL_SUFFIX := tar.gz
+LIBNL_URL := http://people.suug.ch/~tgr/libnl/files/$(LIBNL).$(LIBNL_SUFFIX)
+LIBNL_SOURCE := $(SRCDIR)/$(LIBNL).$(LIBNL_SUFFIX)
+LIBNL_DIR := $(BUILDDIR)/$(LIBNL)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBNL_SOURCE):
+ @$(call targetinfo)
+ @$(call get, LIBNL)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnl.extract:
+ @$(call targetinfo)
+ @$(call clean, $(LIBNL_DIR))
+ @$(call extract, LIBNL)
+ @$(call patchin, LIBNL)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBNL_PATH := PATH=$(CROSS_PATH)
+LIBNL_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBNL_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/libnl.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(LIBNL_DIR)/config.cache)
+ cd $(LIBNL_DIR) && \
+ $(LIBNL_PATH) $(LIBNL_ENV) \
+ ./configure $(LIBNL_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnl.compile:
+ @$(call targetinfo)
+ cd $(LIBNL_DIR) && $(LIBNL_PATH) $(MAKE) $(PARALLELMFLAGS) CC=$(CROSS_CC)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnl.install:
+ @$(call targetinfo)
+ @$(call install, LIBNL)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libnl.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libnl)
+ @$(call install_fixup, libnl,PACKAGE,libnl)
+ @$(call install_fixup, libnl,PRIORITY,optional)
+ @$(call install_fixup, libnl,VERSION,$(LIBNL_VERSION))
+ @$(call install_fixup, libnl,SECTION,base)
+ @$(call install_fixup, libnl,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
+ @$(call install_fixup, libnl,DEPENDS,)
+ @$(call install_fixup, libnl,DESCRIPTION,missing)
+
+ @$(call install_copy, libnl, 0, 0, 0644, -, /usr/lib/libnl.so.1.1)
+ @$(call install_link, libnl, libnl.so.1.1, /usr/lib/libnl.so.1)
+ @$(call install_link, libnl, libnl.so.1.1, /usr/lib/libnl.so)
+
+ @$(call install_finish, libnl)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libnl_clean:
+ rm -rf $(STATEDIR)/libnl.*
+ rm -rf $(PKGDIR)/libnl_*
+ rm -rf $(LIBNL_DIR)
+
+# vim: syntax=make