summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/zypper/zypper/cmake.patch20
-rw-r--r--meta/recipes-extended/zypper/zypper_git.bb19
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-extended/zypper/zypper/cmake.patch b/meta/recipes-extended/zypper/zypper/cmake.patch
new file mode 100644
index 0000000000..1b0a682880
--- /dev/null
+++ b/meta/recipes-extended/zypper/zypper/cmake.patch
@@ -0,0 +1,20 @@
1without the patch, /usr/include/rpm/ won't be added
2in cppflags
3
48/19/2010 - created by Qing He <qing.he@intel.com>
5
6diff --git a/CMakeLists.txt b/CMakeLists.txt
7index 6b040a6..04a1595 100644
8--- a/CMakeLists.txt
9+++ b/CMakeLists.txt
10@@ -21,6 +21,10 @@ SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O2 -Wall -fstack-protector" )
11
12 GENERATE_PACKAGING(${PACKAGE} ${VERSION})
13
14+FIND_PACKAGE(PkgConfig REQUIRED)
15+PKG_CHECK_MODULES(RPM REQUIRED rpm)
16+INCLUDE_DIRECTORIES( ${RPM_INCLUDE_DIRS} )
17+
18 FIND_PACKAGE( Zypp REQUIRED )
19 IF( ZYPP_FOUND )
20 INCLUDE_DIRECTORIES(${ZYPP_INCLUDE_DIR})
diff --git a/meta/recipes-extended/zypper/zypper_git.bb b/meta/recipes-extended/zypper/zypper_git.bb
new file mode 100644
index 0000000000..b7adb0f602
--- /dev/null
+++ b/meta/recipes-extended/zypper/zypper_git.bb
@@ -0,0 +1,19 @@
1HOMEPAGE = "http://gitorious.org/opensuse/zypper"
2DESCRIPTION = "The ZYpp Linux Software management framework"
3
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=3201406e350b39e05a82e28b5020f413"
6
7DEPENDS = "libzypp augeas"
8PR = "r0"
9
10inherit cmake
11
12SRCREV = "9eb0e248e06c8d20ad054be2439149d9ede37531"
13
14SRC_URI = "git://gitorious.org/opensuse/zypper.git;protocol=git \
15 file://cmake.patch \
16 "
17S = "${WORKDIR}/git"
18
19PV = "1.4.7-git${SRCPV}"