diff options
Diffstat (limited to 'meta/packages/libgsmd/gsmd.inc')
| -rw-r--r-- | meta/packages/libgsmd/gsmd.inc | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/meta/packages/libgsmd/gsmd.inc b/meta/packages/libgsmd/gsmd.inc new file mode 100644 index 0000000000..4fe36b9616 --- /dev/null +++ b/meta/packages/libgsmd/gsmd.inc | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | DESCRIPTION = "GSM libraries and daemons implementing the 07.10 specification" | ||
| 2 | HOMEPAGE = "http://www.openmoko.org" | ||
| 3 | LICENSE = "GPL LGPL" | ||
| 4 | SECTION = "libs/gsm" | ||
| 5 | PROVIDES += "gsmd" | ||
| 6 | RPROVIDES_${PN} = "libgsmd0 libgsmd gsmd gsmd-devel" | ||
| 7 | PV = "0.1+svnr${SRCREV}" | ||
| 8 | PR = "r37" | ||
| 9 | |||
| 10 | SRC_URI = "svn://svn.openmoko.org/trunk/src/target;module=gsm;proto=http \ | ||
| 11 | file://gsmd \ | ||
| 12 | file://default" | ||
| 13 | S = "${WORKDIR}/gsm" | ||
| 14 | |||
| 15 | inherit autotools pkgconfig update-rc.d | ||
| 16 | # handle update-rc.d RDEPENDS manually, we don't need it on | ||
| 17 | # anything but gsmd | ||
| 18 | RDEPENDS_append = "" | ||
| 19 | |||
| 20 | INITSCRIPT_NAME = "gsmd" | ||
| 21 | INITSCRIPT_PARAMS = "defaults 35" | ||
| 22 | |||
| 23 | do_stage() { | ||
| 24 | autotools_stage_all | ||
| 25 | } | ||
| 26 | |||
| 27 | do_install_append() { | ||
| 28 | install -d ${D}/${sysconfdir}/init.d | ||
| 29 | install -m 0755 ${WORKDIR}/gsmd ${D}/${sysconfdir}/init.d/ | ||
| 30 | install -d ${D}/${sysconfdir}/default | ||
| 31 | install ${WORKDIR}/default ${D}/${sysconfdir}/default/gsmd | ||
| 32 | } | ||
| 33 | |||
| 34 | PACKAGES =+ "${PN}-tools \ | ||
| 35 | ${BASEPN}-plugins \ | ||
| 36 | ${BASEPN}-plugin-machine-generic \ | ||
| 37 | ${BASEPN}-plugin-machine-tihtc \ | ||
| 38 | ${BASEPN}-plugin-vendor-bcm \ | ||
| 39 | ${BASEPN}-plugin-vendor-qc \ | ||
| 40 | ${BASEPN}-plugin-vendor-ti \ | ||
| 41 | ${BASEPN}-plugin-vendor-tihtc \ | ||
| 42 | " | ||
| 43 | |||
| 44 | RDEPENDS_${BASEPN}-plugins = "${BASEPN}-plugin-machine-generic \ | ||
| 45 | ${BASEPN}-plugin-machine-tihtc \ | ||
| 46 | ${BASEPN}-plugin-vendor-bcm \ | ||
| 47 | ${BASEPN}-plugin-vendor-qc \ | ||
| 48 | ${BASEPN}-plugin-vendor-ti \ | ||
| 49 | ${BASEPN}-plugin-vendor-tihtc \ | ||
| 50 | " | ||
| 51 | |||
| 52 | RDEPENDS_${PN} += "update-rc.d initscripts" | ||
| 53 | RRECOMMENDS_${PN} += "${BASEPN}-plugins" | ||
| 54 | |||
| 55 | FILES_${PN}-dbg += "${libdir}/gsmd/.debug/*" | ||
| 56 | FILES_${PN}-tools = "${bindir}/*" | ||
| 57 | FILES_${BASEPN}-plugins = "" | ||
| 58 | FILES_${BASEPN}-plugin-machine-generic = "${libdir}/gsmd/libgsmd-machine_generic.so*" | ||
| 59 | FILES_${BASEPN}-plugin-machine-tihtc = "${libdir}/gsmd/libgsmd-machine_tihtc.so*" | ||
| 60 | FILES_${BASEPN}-plugin-vendor-qc = "${libdir}/gsmd/libgsmd-vendor_qc.so*" | ||
| 61 | FILES_${BASEPN}-plugin-vendor-bcm = "${libdir}/gsmd/libgsmd-vendor_bcm.so*" | ||
| 62 | FILES_${BASEPN}-plugin-vendor-ti = "${libdir}/gsmd/libgsmd-vendor_ti.so*" | ||
| 63 | FILES_${BASEPN}-plugin-vendor-tihtc = "${libdir}/gsmd/libgsmd-vendor_tihtc.so*" | ||
| 64 | |||
| 65 | PACKAGES_DYNAMIC = "lib${BASEPN}* ${BASEPN}" | ||
| 66 | |||
| 67 | ALLOW_EMPTY_${BASEPN}-plugins = "1" | ||
| 68 | |||
| 69 | RCONFLICTS_lib${BASEPN} = "lib${CONFLICTNAME}" | ||
| 70 | RCONFLICTS_${BASEPN} = "${CONFLICTNAME}" | ||
| 71 | RCONFLICTS_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | ||
| 72 | RCONFLICTS_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | ||
| 73 | RCONFLICTS_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | ||
| 74 | RCONFLICTS_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | ||
| 75 | RCONFLICTS_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | ||
| 76 | RCONFLICTS_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | ||
| 77 | RCONFLICTS_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc" | ||
| 78 | |||
| 79 | RPROVIDES_lib${BASEPN} += "lib${CONFLICTNAME}" | ||
| 80 | RPROVIDES_${BASEPN} = "${CONFLICTNAME}" | ||
| 81 | RPROVIDES_${BASEPN}-plugins = "${CONFLICTNAME}-plugins" | ||
| 82 | RPROVIDES_${BASEPN}-plugin-machine-generic = "${CONFLICTNAME}-plugin-machine-generic" | ||
| 83 | RPROVIDES_${BASEPN}-plugin-machine-tihtc = "${CONFLICTNAME}-plugin-machine-tihtc" | ||
| 84 | RPROVIDES_${BASEPN}-plugin-vendor-qc = "${CONFLICTNAME}-plugin-vendor-qc" | ||
| 85 | RPROVIDES_${BASEPN}-plugin-vendor-bcm = "${CONFLICTNAME}-plugin-vendor-bcm" | ||
| 86 | RPROVIDES_${BASEPN}-plugin-vendor-ti = "${CONFLICTNAME}-plugin-vendor-ti" | ||
| 87 | RPROVIDES_${BASEPN}-plugin-vendor-tihtc = "${CONFLICTNAME}-plugin-vendor-tihtc" | ||
