diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/zypper/zypper/cmake.patch | 20 | ||||
-rw-r--r-- | meta/recipes-extended/zypper/zypper_git.bb | 19 |
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 @@ | |||
1 | without the patch, /usr/include/rpm/ won't be added | ||
2 | in cppflags | ||
3 | |||
4 | 8/19/2010 - created by Qing He <qing.he@intel.com> | ||
5 | |||
6 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
7 | index 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 @@ | |||
1 | HOMEPAGE = "http://gitorious.org/opensuse/zypper" | ||
2 | DESCRIPTION = "The ZYpp Linux Software management framework" | ||
3 | |||
4 | LICENSE = "GPLv2+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=3201406e350b39e05a82e28b5020f413" | ||
6 | |||
7 | DEPENDS = "libzypp augeas" | ||
8 | PR = "r0" | ||
9 | |||
10 | inherit cmake | ||
11 | |||
12 | SRCREV = "9eb0e248e06c8d20ad054be2439149d9ede37531" | ||
13 | |||
14 | SRC_URI = "git://gitorious.org/opensuse/zypper.git;protocol=git \ | ||
15 | file://cmake.patch \ | ||
16 | " | ||
17 | S = "${WORKDIR}/git" | ||
18 | |||
19 | PV = "1.4.7-git${SRCPV}" | ||