summaryrefslogtreecommitdiff
path: root/packages/bazaar/bazaar_1.2.bb
blob: 9309a7176b27361227efa2962c7a013c3a14bd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# bazaar OE build file
# Copyright (C) 2005 Chris Larson <kergoth@handhelds.org>
# Released under the MIT license (see the COPYING file in this tree)
#
# NOTE:
#   * Does not have an LDFLAGS variable on its link lines, only the "libs"
#     variable, which makes it troublesome to add -L's to the link.  For now,
#     we cheat and pass it in CFLAGS.

DEPENDS += "neon"
DESCRIPTION = "bazaar is an implementation of GNU Arch in C, based on tla."
HOMEPAGE = "http://bazaar.canonical.com/"
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
PRIORITY = "optional"
SECTION = "devel"
PR = "r2"
RDEPENDS_${PN} += "patch"
RSUGGESTS_${PN} += "gnupg"

SRC_URI = "http://bazaar.canonical.com/releases/src/bazaar_${PV}.tar.gz \
	   file://no_archive_format_guess_msg.patch;patch=1 \
	   file://import_dirarg.patch;patch=1"

S = "${WORKDIR}/thelove@canonical.com---dists--bazaar--1.2"
B = "${WORKDIR}/build-${HOST_SYS}"

CFLAGS += "-I${B} -I${S}/src -I${S}/src/baz"
EXTRA_OEMAKE = "'CC=${CC}' \
		'CFLAGS=${CFLAGS} ${LDFLAGS}' \
		\
		'test-scripts=' \
		'test-progs=' \
		'prefix=${D}${prefix}' \
		'program-install-dir=${D}${bindir}' \
		'cgi-install-dir=${D}${libdir}/cgi' \
		'library-install-dir=${D}${libdir}' \
		'include-install-dir=${D}${includedir}/$(thispath)' \
		'etc-install-dir=${D}${sysconfdir}' \
		'libexec-install-dir=${D}${libexecdir}' \
		'info-install-dir=${D}${infodir}' \
		'man-install-dir=${D}${mandir}' \
		'scm-install-dir=${D}${datadir}/scheme' \
		'doc-install-dir=${D}${docdir}/$(thispath)' \
		'data-install-dir=${D}${datadir}/$(thispath)' \
		'locale-install-dir=${D}${datadir}/locale'"
PARALLEL_MAKE = ""


do_configure () {
	${S}/src/configure ${CONFARGS}

}

do_compile () {
	oe_runmake
}

do_install () {
	oe_runmake install-all
	sed -e 's,^#!.*$$,#!/usr/bin/gawk -f,' ${S}/src/baz/=gpg-check.awk > \
		${D}${bindir}/bazaar-gpg-check
}