diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2009-09-30 15:15:43 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2009-09-30 15:16:04 +0200 |
commit | 3f68fc3d43638f39049a2e9040f828970b8803a4 (patch) | |
tree | 3f67f11519e08c1f3d7077fa8eff30c9419c77d0 /rules/libevent.make | |
parent | c4b2bf5ae9facf3004351111bf309a83e0ed6e8e (diff) | |
download | ptxdist-3f68fc3d43638f39049a2e9040f828970b8803a4.tar.gz ptxdist-3f68fc3d43638f39049a2e9040f828970b8803a4.tar.xz |
[libevent] added
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libevent.make')
-rw-r--r-- | rules/libevent.make | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/rules/libevent.make b/rules/libevent.make new file mode 100644 index 000000000..9f90088eb --- /dev/null +++ b/rules/libevent.make @@ -0,0 +1,82 @@ +# -*-makefile-*- +# $Id$ +# +# Copyright (C) 2009 by Michael Olbrich <m.olbrich@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_LIBEVENT) += libevent + +# +# Paths and names +# +LIBEVENT_VERSION := 2.0.2-alpha +LIBEVENT := libevent-$(LIBEVENT_VERSION) +LIBEVENT_SUFFIX := tar.gz +LIBEVENT_URL := http://www.monkey.org/~provos/$(LIBEVENT).$(LIBEVENT_SUFFIX) +LIBEVENT_SOURCE := $(SRCDIR)/$(LIBEVENT).$(LIBEVENT_SUFFIX) +LIBEVENT_DIR := $(BUILDDIR)/$(LIBEVENT) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(LIBEVENT_SOURCE): + @$(call targetinfo) + @$(call get, LIBEVENT) + + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBEVENT_PATH := PATH=$(CROSS_PATH) +LIBEVENT_ENV := $(CROSS_ENV) + +# +# autoconf +# +LIBEVENT_AUTOCONF := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libevent.targetinstall: + @$(call targetinfo) + + @$(call install_init, libevent) + @$(call install_fixup, libevent,PACKAGE,libevent) + @$(call install_fixup, libevent,PRIORITY,optional) + @$(call install_fixup, libevent,VERSION,$(LIBEVENT_VERSION)) + @$(call install_fixup, libevent,SECTION,base) + @$(call install_fixup, libevent,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, libevent,DEPENDS,) + @$(call install_fixup, libevent,DESCRIPTION,missing) + + @$(call install_copy, libevent, 0, 0, 0644, -, \ + /usr/lib/libevent.so.2.0.0) + @$(call install_link, libevent, libevent.so.2.0.0, /usr/lib/libevent.so.2) + @$(call install_link, libevent, libevent.so.2.0.0, /usr/lib/libevent.so) + + @$(call install_finish, libevent) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +libevent_clean: + rm -rf $(STATEDIR)/libevent.* + rm -rf $(PKGDIR)/libevent_* + rm -rf $(LIBEVENT_DIR) + +# vim: syntax=make |