diff options
-rw-r--r-- | recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch | 35 | ||||
-rw-r--r-- | recipes-qt/qtchooser/qtchooser_git.bb | 30 |
2 files changed, 65 insertions, 0 deletions
diff --git a/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch new file mode 100644 index 00000000..8e8e1c69 --- /dev/null +++ b/recipes-qt/qtchooser/qtchooser/0001-Makefile-install-the-man-dir.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 3f142e100cc3dd69b816ce79152760c823cb86e9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
3 | Date: Fri, 29 Apr 2016 12:41:34 +0900 | ||
4 | Subject: [PATCH] Makefile: install the man dir | ||
5 | |||
6 | upstream-status: backported | ||
7 | |||
8 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
9 | --- | ||
10 | Makefile | 3 +++ | ||
11 | 1 file changed, 3 insertions(+) | ||
12 | |||
13 | diff --git a/Makefile b/Makefile | ||
14 | index 20b9100..1fd8cd3 100644 | ||
15 | --- a/Makefile | ||
16 | +++ b/Makefile | ||
17 | @@ -1,5 +1,6 @@ | ||
18 | prefix = /usr | ||
19 | bindir = $(prefix)/bin | ||
20 | +MKDIR = mkdir -p | ||
21 | TOOLS = assistant \ | ||
22 | designer \ | ||
23 | lconvert \ | ||
24 | @@ -56,6 +57,8 @@ install: | ||
25 | case `uname -s` in Darwin) \ | ||
26 | for tool in $(MACTOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done \ | ||
27 | ;; esac | ||
28 | + $(MKDIR) $(INSTALL_ROOT)$(prefix)/share/man/man1 | ||
29 | + install -m 644 -p doc/qtchooser.1 $(INSTALL_ROOT)$(prefix)/share/man/man1 | ||
30 | |||
31 | uninstall: | ||
32 | cd src/qtchooser && $(MAKE) uninstall | ||
33 | -- | ||
34 | 1.8.4.2 | ||
35 | |||
diff --git a/recipes-qt/qtchooser/qtchooser_git.bb b/recipes-qt/qtchooser/qtchooser_git.bb new file mode 100644 index 00000000..68b1c808 --- /dev/null +++ b/recipes-qt/qtchooser/qtchooser_git.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | DESCRIPTION = "Wrapper to select between Qt development binary versions" | ||
2 | HOMEPAGE = "http://macieira.org/qtchooser" | ||
3 | LICENSE = "LGPL-2.1 & Digia-Qt-LGPL-Exception-1.1 | GPL-3.0" | ||
4 | SRC_URI = "git://code.qt.io/qt/qtchooser.git;branch=master \ | ||
5 | file://0001-Makefile-install-the-man-dir.patch" | ||
6 | |||
7 | LIC_FILES_CHKSUM = " \ | ||
8 | file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6 \ | ||
9 | file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504 \ | ||
10 | file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de \ | ||
11 | " | ||
12 | S = "${WORKDIR}/git" | ||
13 | SRCREV = "4717841185d34bbe450e3b24445f2d35e3325a6a" | ||
14 | PV = "39+git${SRCREV}" | ||
15 | |||
16 | inherit pkgconfig | ||
17 | |||
18 | do_compile() { | ||
19 | oe_runmake | ||
20 | } | ||
21 | |||
22 | do_install() { | ||
23 | oe_runmake install INSTALL_ROOT=${D} | ||
24 | #install configure file | ||
25 | install -d ${D}${sysconfdir}/xdg/qtchooser/ | ||
26 | install -m 0644 ${S}/tests/auto/qtchooser/testdata/config2/qtchooser/*.conf \ | ||
27 | ${D}${sysconfdir}/xdg/qtchooser/ | ||
28 | install -m 0644 ${S}/tests/auto/qtchooser/testdata/default/qtchooser/default.conf \ | ||
29 | ${D}${sysconfdir}/xdg/qtchooser/ | ||
30 | } | ||