diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-01-26 01:24:02 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-20 18:05:52 +0200 |
commit | faac7233ee62ecf23d445c3039f1e8876fe2a8f0 (patch) | |
tree | 742d0b8573597316f432940ebb32bfd80d2579bd /rules/shiboken.make | |
parent | 33b2968543db8237a90282e6ee4392ff2c64dda8 (diff) | |
download | ptxdist-faac7233ee62ecf23d445c3039f1e8876fe2a8f0.tar.gz ptxdist-faac7233ee62ecf23d445c3039f1e8876fe2a8f0.tar.xz |
{host-,}shiboken: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/shiboken.make')
-rw-r--r-- | rules/shiboken.make | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/rules/shiboken.make b/rules/shiboken.make new file mode 100644 index 000000000..242c14880 --- /dev/null +++ b/rules/shiboken.make @@ -0,0 +1,80 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 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_SHIBOKEN) += shiboken + +# +# Paths and names +# +SHIBOKEN_VERSION := 1.0.3 +SHIBOKEN_MD5 := d155d61156c8db25a418b80ade47962f +SHIBOKEN := shiboken-$(SHIBOKEN_VERSION) +SHIBOKEN_SUFFIX := tar.bz2 +SHIBOKEN_URL := http://www.pyside.org/files/$(SHIBOKEN).$(SHIBOKEN_SUFFIX) +SHIBOKEN_SOURCE := $(SRCDIR)/$(SHIBOKEN).$(SHIBOKEN_SUFFIX) +SHIBOKEN_DIR := $(BUILDDIR)/$(SHIBOKEN) +SHIBOKEN_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +SHIBOKEN_CONF_TOOL := cmake +SHIBOKEN_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DBUILD_TESTS:BOOL=OFF + +SHIBOKEN_MAKE_OPT := -C libshiboken +SHIBOKEN_INSTALL_OPT := -C libshiboken install + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/shiboken.install: + @$(call targetinfo) + @$(call world/install, SHIBOKEN) + @cd $(SHIBOKEN_DIR)-build && $(MAKE) -C data install DESTDIR='$(SHIBOKEN_PKGDIR)' + @$(call touch) + +$(STATEDIR)/shiboken.install.post: + @$(call targetinfo) + @$(call world/install.post, SHIBOKEN) + @sed -i -e 's,"/usr/bin,"$(PTXCONF_SYSROOT_HOST)/bin,g' \ + -e 's,"/usr,"$(SYSROOT)/usr,g' \ + '$(SYSROOT)/usr/lib/cmake/Shiboken-$(SHIBOKEN_VERSION)/ShibokenConfig.cmake' + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/shiboken.targetinstall: + @$(call targetinfo) + + @$(call install_init, shiboken) + @$(call install_fixup, shiboken,PRIORITY,optional) + @$(call install_fixup, shiboken,SECTION,base) + @$(call install_fixup, shiboken,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, shiboken,DESCRIPTION,missing) + + @$(call install_lib, shiboken, 0, 0, 0644, libshiboken) + + @$(call install_finish, shiboken) + + @$(call touch) + +# vim: syntax=make |