summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-08-20 11:08:43 +0800
committerSaul Wold <Saul.Wold@intel.com>2010-09-03 18:30:17 -0700
commit7b017195a389d7e4d00b93f087ab098173c7e96f (patch)
tree6cce3b782fec0e027ec20d68e6fdd37a171a5a39 /meta/recipes-extended
parent162c652a2ca36e5afc58f21cb86601a057a4e4bc (diff)
downloadpoky-7b017195a389d7e4d00b93f087ab098173c7e96f.tar.gz
zypper: add new package
Signed-off-by: Saul Wold <saul.wold@intel.com> Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/recipes-extended')
-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}"