summaryrefslogtreecommitdiff
path: root/classes/sip3.bbclass
blob: 7ecc63bf0231454a52dd210d98a19c30ae83a618 (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
# Build Class for Sip based Python Bindings
# (C) Michael 'Mickey' Lauer <mickey@Vanille.de>
#

DEPENDS =+ "sip-native python-sip"

# default stuff, do not uncomment
# EXTRA_SIPTAGS = "-tWS_QWS -tQtPE_1_6_0 -tQt_2_3_1"

sip3_do_generate() {
	if [ -z "${SIP_MODULES}" ]; then 
		MODULES="`ls sip/*mod.sip`"
	else
		MODULES="${SIP_MODULES}"
	fi

	if [ -z "$MODULES" ]; then
		die "SIP_MODULES not set and no modules found in $PWD"
        else
		oenote "using modules '${SIP_MODULES}' and tags '${EXTRA_SIPTAGS}'"
	fi

	if [ -z "${EXTRA_SIPTAGS}" ]; then
		die "EXTRA_SIPTAGS needs to be set!"
	else
		SIPTAGS="${EXTRA_SIPTAGS}"
	fi

	if [ ! -z "${SIP_FEATURES}" ]; then
		FEATURES="-z ${SIP_FEATURES}"
		oenote "sip feature file: ${SIP_FEATURES}"
	fi

	for module in $MODULES
	do
        	install -d ${module}/
		oenote "calling 'sip -I sip -I ${STAGING_SIPDIR} ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.pro.in sip/${module}/${module}mod.sip'"
		sip -I ${STAGING_SIPDIR} -I sip ${SIPTAGS} ${FEATURES} -c ${module} -b ${module}/${module}.sbf sip/${module}/${module}mod.sip \
		|| die "Error calling sip on ${module}"
		cat ${module}/${module}.sbf 	| sed s,target,TARGET, \
						| sed s,sources,SOURCES, \
						| sed s,headers,HEADERS, \
						| sed s,"moc_HEADERS =","HEADERS +=", \
		>${module}/${module}.pro
		echo "TEMPLATE=lib" >>${module}/${module}.pro
		[ "${module}" = "qt" ] 		&& echo "" 		>>${module}/${module}.pro
		[ "${module}" = "qtcanvas" ] 	&& echo ""		>>${module}/${module}.pro
		[ "${module}" = "qttable" ] 	&& echo ""		>>${module}/${module}.pro
		[ "${module}" = "qwt" ] 	&& echo ""		>>${module}/${module}.pro
		[ "${module}" = "qtpe" ]        && echo ""		>>${module}/${module}.pro
		[ "${module}" = "qtpe" ]        && echo "LIBS+=-lqpe"	>>${module}/${module}.pro
		true
	done
}

do_generate[deptask] = "do_populate_staging"

EXPORT_FUNCTIONS do_generate

addtask generate after do_unpack do_patch before do_configure
='mode'>-rw-r--r--packages/abiword/abiword-plugins_2.4.5.bb26
-rw-r--r--packages/abiword/abiword-plugins_2.4.6.bb25
-rw-r--r--packages/abiword/abiword.inc48
-rw-r--r--packages/abiword/abiword_2.4.5.bb4
-rw-r--r--packages/abiword/abiword_2.4.6.bb4
-rw-r--r--packages/abiword/abiword_2.5.1.bb7
-rw-r--r--packages/abiword/files/.mtn2git_empty0
-rw-r--r--packages/abiword/files/abiword-plugin-pdf-poppler.patch11
-rwxr-xr-xpackages/abiword/files/cdump.pl32
-rw-r--r--packages/abuse/.mtn2git_empty0
-rw-r--r--packages/abuse/abuse_0.7.0.bb11
-rw-r--r--packages/acct/.mtn2git_empty0
-rw-r--r--packages/acct/acct_6.3.99+6.4pre1.bb9
-rw-r--r--packages/acct/files/.mtn2git_empty0
-rw-r--r--packages/acct/files/cross-compile.patch34
-rw-r--r--packages/acpid/.mtn2git_empty0
-rw-r--r--packages/acpid/acpid-1.0.2/.mtn2git_empty0
-rw-r--r--packages/acpid/acpid-1.0.3/.mtn2git_empty0
-rw-r--r--packages/acpid/acpid-1.0.3/gcc40.patch13
-rw-r--r--packages/acpid/acpid-1.0.4/.mtn2git_empty0
-rw-r--r--packages/acpid/acpid-1.0.4/gcc40.patch13
-rw-r--r--packages/acpid/acpid.inc32
-rw-r--r--packages/acpid/acpid_1.0.2.bb3
-rw-r--r--packages/acpid/acpid_1.0.3.bb4
-rw-r--r--packages/acpid/acpid_1.0.4.bb4
-rw-r--r--packages/acpid/files/.mtn2git_empty0
-rwxr-xr-xpackages/acpid/files/init26
-rw-r--r--packages/addons/.mtn2git_empty0
-rw-r--r--packages/addons/devshell.bb75
-rw-r--r--packages/adns/.mtn2git_empty0
-rw-r--r--packages/adns/adns-1.0/.mtn2git_empty0
-rw-r--r--packages/adns/adns-1.0/configure.patch137
-rw-r--r--packages/adns/adns-1.0/fixparsedomainflags.patch11
-rw-r--r--packages/adns/adns_1.0.bb30
-rw-r--r--packages/aiostress/.mtn2git_empty0
-rw-r--r--packages/aiostress/aiostress_0.0.bb17
-rw-r--r--packages/aircrack/.mtn2git_empty0
-rw-r--r--packages/aircrack/aircrack-ng_0.7.bb25
-rw-r--r--packages/aircrack/aircrack_2.1.bb22
-rw-r--r--packages/aircrack/aircrack_2.41.bb24
-rw-r--r--packages/aircrack/files/.mtn2git_empty0
-rw-r--r--packages/aircrack/files/oe.patch10
-rw-r--r--packages/aircrack/files/silent_patch.diff87
-rw-r--r--packages/albumshaper/.mtn2git_empty0
-rw-r--r--packages/albumshaper/albumshaper_2.1.bb18
-rw-r--r--packages/albumshaper/files/.mtn2git_empty0
-rw-r--r--packages/albumshaper/files/fixpaths.patch53
-rw-r--r--packages/aliens/.mtn2git_empty0
-rw-r--r--packages/aliens/aliens_1.0.0.bb21
-rw-r--r--packages/alp/.mtn2git_empty0
-rw-r--r--packages/alp/hiker_0.9.bb24
-rw-r--r--packages/alsa/.mtn2git_empty0
-rw-r--r--packages/alsa/alsa-driver/.mtn2git_empty0
-rw-r--r--packages/alsa/alsa-driver/adriver.h.patch23
-rw-r--r--packages/alsa/alsa-driver/h5400.patch12
-rw-r--r--packages/alsa/alsa-driver/sa11xx.patch38
-rw-r--r--packages/alsa/alsa-driver/sound.p.patch59
-rw-r--r--packages/alsa/alsa-driver_0.9.6-hh4c.bb83
-rw-r--r--packages/alsa/alsa-lib/.mtn2git_empty0
-rw-r--r--packages/alsa/alsa-lib/fix-tstamp-declaration.patch13
-rw-r--r--packages/alsa/alsa-lib_1.0.11.bb41
-rw-r--r--packages/alsa/alsa-lib_1.0.13.bb42
-rw-r--r--packages/alsa/alsa-oss_1.0.11.bb19
-rw-r--r--packages/alsa/alsa-state.bb50
-rw-r--r--packages/alsa/alsa-state/.mtn2git_empty0
-rwxr-xr-xpackages/alsa/alsa-state/alsa-state29
-rw-r--r--packages/alsa/alsa-state/asound.state1
-rw-r--r--packages/alsa/alsa-state/fic-gta01/.mtn2git_empty0
-rw-r--r--packages/alsa/alsa-state/fic-gta01/asound.state900
-rw-r--r--packages/alsa/alsa-utils_1.0.11.bb55
-rw-r--r--packages/alsa/alsa-utils_1.0.13.bb56
-rw-r--r--packages/alsa/files/.mtn2git_empty0
-rw-r--r--packages/alsa/files/alsa-utils-sys-siglist.patch15
-rw-r--r--packages/altboot/.mtn2git_empty0
-rw-r--r--packages/altboot/altboot_0.0.0.bb95
-rw-r--r--packages/altboot/altboot_1.0.5.bb154
-rw-r--r--packages/altboot/altboot_1.0.8.bb92
-rw-r--r--packages/altboot/altboot_wip.bb99
-rw-r--r--packages/altboot/files/.mtn2git_empty0
-rw-r--r--packages/altboot/files/akita/.mtn2git_empty0
-rw-r--r--packages/altboot/files/akita/altboot-2.4.cfg31
-rw-r--r--packages/altboot/files/akita/altboot-2.6.cfg41
-rw-r--r--packages/altboot/files/altboot-menu/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot-menu/00-Default14
-rw-r--r--packages/altboot/files/altboot-menu/10-noGui14
-rw-r--r--packages/altboot/files/altboot-menu/15-bootSD32
-rw-r--r--packages/altboot/files/altboot-menu/20-bootCF32
-rw-r--r--packages/altboot/files/altboot-menu/99-ownScripts-example68
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/30-bootUSB-Stick47
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/40-bootNFS110
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/55-bin-sh27
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/60-orig-init20
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-install-tgz264
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-setKernel68
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/80-configure-kexec248
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/80-copyrootfs323
-rw-r--r--packages/altboot/files/altboot.func870
-rw-r--r--packages/altboot/files/altboot.rc/.mtn2git_empty0
-rw-r--r--packages/altboot/files/altboot.rc/Readme.txt2
-rw-r--r--packages/altboot/files/altboot.rc/disable_printk.sh6
-rw-r--r--packages/altboot/files/altboot.rc/loadkeymap.sh8
-rw-r--r--packages/altboot/files/altboot.rc/playbeep.sh34
-rwxr-xr-xpackages/altboot/files/altbootctl311
-rw-r--r--packages/altboot/files/altbootctl.conf98
-rw-r--r--packages/altboot/files/beep.raw1
-rw-r--r--packages/altboot/files/c7x0/.mtn2git_empty0
-rw-r--r--packages/altboot/files/c7x0/altboot-2.4.cfg30
-rw-r--r--packages/altboot/files/c7x0/altboot-2.6.cfg39
-rw-r--r--packages/altboot/files/collie/.mtn2git_empty0
-rw-r--r--packages/altboot/files/collie/altboot-2.4.cfg26
-rw-r--r--packages/altboot/files/fic-gta01/.mtn2git_empty0
-rw-r--r--packages/altboot/files/fic-gta01/altboot-2.6.cfg41
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/.mtn2git_empty0
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/00-Default14
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/15-bootSD32
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/Advanced/.mtn2git_empty0
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/Advanced/30-bootUSB-Stick47
-rw-r--r--packages/altboot/files/fic-gta01/altboot-menu/Advanced/40-bootNFS110
-rw-r--r--packages/altboot/files/init.altboot582
-rw-r--r--packages/altboot/files/poodle/.mtn2git_empty0
-rw-r--r--packages/altboot/files/poodle/altboot-2.4.cfg26
-rw-r--r--packages/altboot/files/poodle/altboot-2.6.cfg45
-rw-r--r--packages/altboot/files/spitz/.mtn2git_empty0
-rw-r--r--packages/altboot/files/spitz/altboot-2.6.cfg41