summaryrefslogtreecommitdiffstats
path: root/rules/simplerpl.make
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-03-25 20:53:50 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-03-28 11:29:56 +0100
commitf582b9b2ff09be600516cc4d7e5e434f6f1b1a67 (patch)
treeb417698879aaec5a14ec7bdb156cb6b811b7bca6 /rules/simplerpl.make
parent92ce16f4ef00b276f7b3c87235e51a990f0f2017 (diff)
downloadptxdist-f582b9b2ff09be600516cc4d7e5e434f6f1b1a67.tar.gz
ptxdist-f582b9b2ff09be600516cc4d7e5e434f6f1b1a67.tar.xz
simplerpl: add new package
Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/simplerpl.make')
-rw-r--r--rules/simplerpl.make79
1 files changed, 79 insertions, 0 deletions
diff --git a/rules/simplerpl.make b/rules/simplerpl.make
new file mode 100644
index 000000000..a35eee175
--- /dev/null
+++ b/rules/simplerpl.make
@@ -0,0 +1,79 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Alexander Aring <aar@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_SIMPLERPL) += simplerpl
+
+#
+# Paths and names
+#
+SIMPLERPL_VERSION := 1.0
+SIMPLERPL_MD5 := 8544a9f7414e98cd2d17ff15332c8eee
+SIMPLERPL := simplerpl-$(SIMPLERPL_VERSION)
+SIMPLERPL_SUFFIX := tar.gz
+SIMPLERPL_URL := http://cakelab.org/~eintopf/RPL/$(SIMPLERPL).$(SIMPLERPL_SUFFIX)
+SIMPLERPL_SOURCE := $(SRCDIR)/$(SIMPLERPL).$(SIMPLERPL_SUFFIX)
+SIMPLERPL_DIR := $(BUILDDIR)/$(SIMPLERPL)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SIMPLERPL_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.compile:
+ @$(call targetinfo)
+ @cd $(SIMPLERPL_DIR) && \
+ $(CROSS_ENV) $(CROSS_PYTHON) setup.py build -e "/usr/bin/env python"
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.install:
+ @$(call targetinfo)
+ @cd $(SIMPLERPL_DIR) && \
+ $(CROSS_PYTHON) \
+ setup.py install --root=$(SIMPLERPL_PKGDIR) --prefix="/usr"
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/simplerpl.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, simplerpl)
+ @$(call install_fixup, simplerpl,PRIORITY,optional)
+ @$(call install_fixup, simplerpl,SECTION,base)
+ @$(call install_fixup, simplerpl,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+ @$(call install_fixup, simplerpl,DESCRIPTION,missing)
+
+ @for file in $(shell cd $(SIMPLERPL_PKGDIR) && find . -name "*.pyc"); \
+ do \
+ $(call install_copy, simplerpl, 0, 0, 0644, -, /$$file); \
+ done
+
+ @$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/cliRPL.py)
+ @$(call install_copy, simplerpl, 0, 0, 0755, -, /usr/bin/simpleRPL.py)
+
+ @$(call install_finish, simplerpl)
+
+ @$(call touch)
+
+# vim: syntax=make