summaryrefslogtreecommitdiff
path: root/classes/pkgconfig.bbclass
blob: e89e827fc879bf75cb6ab517b4a0d24dd2121e6e (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
inherit base

DEPENDS_prepend = "pkgconfig-native "

# The namespaces can clash here hence the two step replace
def get_pkgconfig_mangle(d):
	import bb.data
	s = "-e ''"
	if not bb.data.inherits_class('native', d):
		s += " -e 's:=${libdir}:=OELIBDIR:;'"
		s += " -e 's:=${includedir}:=OEINCDIR:;'"
		s += " -e 's:=${datadir}:=OEDATADIR:'"
		s += " -e 's:=${prefix}:=OEPREFIX:'"
		s += " -e 's:=${exec_prefix}:=OEEXECPREFIX:'"
		s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
		s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
		s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
		s += " -e 's:OEPREFIX:${STAGING_LIBDIR}/..:'"
		s += " -e 's:OEEXECPREFIX:${STAGING_LIBDIR}/..:'"
	return s

do_stage_append () {
	for pc in `find ${S} -name '*.pc'`; do
		pcname=`basename $pc`
		install -d ${PKG_CONFIG_PATH}
		cat $pc | sed ${@get_pkgconfig_mangle(d)} > ${PKG_CONFIG_PATH}/$pcname
	done
}
e/console-tools/console-tools_0.3.2.bb?h=morty&id=87a9a3b3b2603516704a38fccc8c396e547ac101'>console-tools: Clean up recipeRichard Purdie1 2012-08-15console-tools: cleanup update-alternatives deprecated codeSaul Wold1 2012-04-24console-tools: Use update-alternativesMark Hatle1 2011-08-23recipes: Delete patch=1, its default and replace pnum with striplevelKhem Raj1 2011-07-27console-tools: removed wildcard from SRC_URIEnrico Scholz1 2011-07-08console-tools: Add RDEPENDS on bashSaul Wold1 2011-05-27console-tools: use u-a also for fgconsole otherwise it collides with busyboxMartin Jansa1 2011-04-04console-tools_0.3.2.bb: inherit gettextKhem Raj1 2010-12-09SRC_URI Checksums AdditionalsSaul Wold1 2010-12-02console-tools:Add license checksum and update the GPL informationMei Lei1