summaryrefslogtreecommitdiffstats
path: root/rules/libmicrohttpd.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-10-27 13:56:08 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-10-27 13:56:08 +0000
commitf8d379741f14694e5c0aa98520051d998a90af12 (patch)
treecdbf81702a1545032a2ecccdb858f438698d4060 /rules/libmicrohttpd.make
parent0c99c359f0c4899a246e1d217e22f3eb8f636e26 (diff)
downloadptxdist-f8d379741f14694e5c0aa98520051d998a90af12.tar.gz
ptxdist-f8d379741f14694e5c0aa98520051d998a90af12.tar.xz
* libmicrohttpd: new packet
Signed-off-by: Erwin Rol <erwin@erwinrol.com> * libmicrohttpd: - fixed permissions - broke long lines - use gnu mirror from ptxdist setup Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8954 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libmicrohttpd.make')
-rw-r--r--rules/libmicrohttpd.make120
1 files changed, 120 insertions, 0 deletions
diff --git a/rules/libmicrohttpd.make b/rules/libmicrohttpd.make
new file mode 100644
index 000000000..83d6b7a47
--- /dev/null
+++ b/rules/libmicrohttpd.make
@@ -0,0 +1,120 @@
+# -*-makefile-*-
+# $Id: template-make 8785 2008-08-26 07:48:06Z wsa $
+#
+# Copyright (C) 2008 by Erwin Rol
+#
+# 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_LIBMICROHTTPD) += libmicrohttpd
+
+#
+# Paths and names
+#
+LIBMICROHTTPD_VERSION := 0.4.0pre0
+LIBMICROHTTPD := libmicrohttpd-$(LIBMICROHTTPD_VERSION)
+LIBMICROHTTPD_SUFFIX := tar.gz
+LIBMICROHTTPD_URL := $(PTXCONF_SETUP_GNUMIRROR)/libmicrohttpd/$(LIBMICROHTTPD).$(LIBMICROHTTPD_SUFFIX)
+LIBMICROHTTPD_SOURCE := $(SRCDIR)/$(LIBMICROHTTPD).$(LIBMICROHTTPD_SUFFIX)
+LIBMICROHTTPD_DIR := $(BUILDDIR)/$(LIBMICROHTTPD)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBMICROHTTPD_SOURCE):
+ @$(call targetinfo)
+ @$(call get, LIBMICROHTTPD)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libmicrohttpd.extract:
+ @$(call targetinfo)
+ @$(call clean, $(LIBMICROHTTPD_DIR))
+ @$(call extract, LIBMICROHTTPD)
+ @$(call patchin, LIBMICROHTTPD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBMICROHTTPD_PATH := PATH=$(CROSS_PATH)
+LIBMICROHTTPD_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBMICROHTTPD_AUTOCONF := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/libmicrohttpd.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(LIBMICROHTTPD_DIR)/config.cache)
+ cd $(LIBMICROHTTPD_DIR) && \
+ $(LIBMICROHTTPD_PATH) $(LIBMICROHTTPD_ENV) \
+ ./configure $(LIBMICROHTTPD_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libmicrohttpd.compile:
+ @$(call targetinfo)
+ cd $(LIBMICROHTTPD_DIR) && $(LIBMICROHTTPD_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libmicrohttpd.install:
+ @$(call targetinfo)
+ @$(call install, LIBMICROHTTPD)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libmicrohttpd.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libmicrohttpd)
+ @$(call install_fixup, libmicrohttpd,PACKAGE,libmicrohttpd)
+ @$(call install_fixup, libmicrohttpd,PRIORITY,optional)
+ @$(call install_fixup, libmicrohttpd,VERSION,$(LIBMICROHTTPD_VERSION))
+ @$(call install_fixup, libmicrohttpd,SECTION,base)
+ @$(call install_fixup, libmicrohttpd,AUTHOR,"Erwin Rol <erwin@erwinrol.com>")
+ @$(call install_fixup, libmicrohttpd,DEPENDS,)
+ @$(call install_fixup, libmicrohttpd,DESCRIPTION,missing)
+
+ @$(call install_copy, libmicrohttpd, 0, 0, 0644, \
+ $(LIBMICROHTTPD_DIR)/src/daemon/.libs/libmicrohttpd.so.4.0.3, \
+ /usr/lib/libmicrohttpd.so.4.0.3)
+ @$(call install_link, libmicrohttpd, libmicrohttpd.so.4.0.3, /usr/lib/libmicrohttpd.so.4)
+ @$(call install_link, libmicrohttpd, libmicrohttpd.so.4.0.3, /usr/lib/libmicrohttpd.so)
+
+
+ @$(call install_finish, libmicrohttpd)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libmicrohttpd_clean:
+ rm -rf $(STATEDIR)/libmicrohttpd.*
+ rm -rf $(PKGDIR)/libmicrohttpd_*
+ rm -rf $(LIBMICROHTTPD_DIR)
+
+# vim: syntax=make