summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-10-13 10:26:58 +0000
committerMichael Lauer <mickey@vanille-media.de>2006-10-13 10:26:58 +0000
commit26c785056eb873aabb62a9453b08e546e2ffcf0b (patch)
tree0ff8869d73ac2cd628a88314151eba3f5e030778
parente246bc5838801e9d61dd896597426af9bcd7ec74 (diff)
p4: add p4.inc which defines the common p4_arch function
-rw-r--r--packages/p4/p4.inc16
1 files changed, 4 insertions, 12 deletions
diff --git a/packages/p4/p4.inc b/packages/p4/p4.inc
index a473cfeea1..3b8303fe4e 100644
--- a/packages/p4/p4.inc
+++ b/packages/p4/p4.inc
@@ -2,19 +2,11 @@
# Copyright (C) 2006, Advanced Micro Devices, Inc. All Rights Reserved
# Released under the MIT license (see /COPYING)
-HOMEPAGE = "http://www.perforce.com"
DESCRIPTION = "Perforce client and server binaries"
+HOMEPAGE = "http://www.perforce.com"
MAINTAINER = "Raymond Danks <info-linux@geode.amd.com>"
LICENSE = "Perforce"
-def get_kernelmajorversion(p):
- import re
- r = re.compile("([0-9]+\.[0-9]+).*")
- m = r.match(p);
- if m:
- return m.group(1)
- return None
-
def p4_arch(d):
import bb, re
arch = bb.data.getVar('TARGET_ARCH', d, 1)
@@ -36,9 +28,8 @@ def p4_arch(d):
return "%s%s" % (os, arch)
-P4ARCH="${@p4_arch(d)}"
-P4BASEURL="http://filehost.perforce.com/perforce/r${PV}/bin.${P4ARCH}"
-S="${WORKDIR}"
+P4ARCH = "${@p4_arch(d)}"
+P4BASEURL = "http://filehost.perforce.com/perforce/r${PV}/bin.${P4ARCH}"
#Because these files are all named the same thing, regardless of version or arch
PREMIRRORS=""
@@ -51,6 +42,7 @@ SRC_URI="\
${P4BASEURL}/p4ftpd \
${P4BASEURL}/p4p \
${P4BASEURL}/p4web"
+S = "${WORKDIR}"
PACKAGES += " ${PN}-server"
FILES_${PN} = " ${bindir}/p4"