Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "GNU All Mobile Managment Utilities" |
| 2 | SECTION = "console/network" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 3 | DEPENDS = "cmake-native virtual/libiconv libdbi mysql5 glib-2.0 udev libgudev unixodbc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=a17cb0a873d252440acfdf9b3d0e7fbf" |
| 6 | HOMEPAGE = "http://www.gammu.org/" |
| 7 | |
| 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}/${PV}/${BP}.tar.bz2 \ |
| 9 | file://gammurc \ |
| 10 | file://gammu-smsdrc \ |
| 11 | " |
| 12 | |
| 13 | SRC_URI[md5sum] = "8ea16c6b3cc48097a8e62311fe0e25b9" |
| 14 | SRC_URI[sha256sum] = "de67caa102aa4c8fbed5300e5a0262e40411c4cc79f4379a8d34eed797968fc3" |
| 15 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | inherit distutils3 cmake gettext |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | |
| 18 | do_install_append() { |
| 19 | # these files seem to only be used by symbian and trigger QA warnings |
| 20 | rm -rf ${D}/usr/share/gammu |
| 21 | #install default configuration files |
| 22 | install -d ${D}${sysconfdir} |
| 23 | install -m 0644 ${WORKDIR}/gammurc ${D}${sysconfdir}/gammurc |
| 24 | install -m 0644 ${WORKDIR}/gammu-smsdrc ${D}${sysconfdir}/gammu-smsdrc |
| 25 | } |
| 26 | |
| 27 | EXTRA_OECONF = " \ |
| 28 | --enable-shared \ |
| 29 | --enable-backup \ |
| 30 | --enable-protection \ |
| 31 | " |
| 32 | |
| 33 | EXTRA_OECMAKE = " \ |
| 34 | -DWITH_CURL=OFF \ |
| 35 | -DWITH_BLUETOOTH=OFF \ |
| 36 | -DWITH_NOKIA_SUPPORT=OFF \ |
| 37 | -DWITH_IRDA=OFF \ |
| 38 | -DWITH_PYTHON=OFF \ |
| 39 | -DWITH_MySQL=ON \ |
| 40 | -DWITH_Postgres=OFF \ |
| 41 | " |
| 42 | |
| 43 | PACKAGES =+ "${PN}-smsd libgammu libgsmsd python-${PN}" |
| 44 | |
| 45 | FILES_${PN} = "${bindir}/gammu ${bindir}/jadmaker ${sysconfdir}/bash_completion.d/gammu \ |
| 46 | ${bindir}/gammu-detect ${sysconfdir}/gammurc" |
| 47 | CONFFILES_${PN} = "${sysconfdir}/gammurc" |
| 48 | FILES_${PN}-smsd = "${bindir}/gammu-smsd* ${sysconfdir}/gammu-smsdrc" |
| 49 | CONFFILES_${PN}-smsd = "${sysconfdir}/gammu-smsdrc" |
| 50 | FILES_${PN}-dev += "${bindir}/gammu-config ${libdir}/*.so" |
| 51 | FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug ${PYTHON_SITEPACKAGES_DIR}/gammu/.debug" |
| 52 | FILES_libgammu = "${libdir}/libGammu.so.*" |
| 53 | FILES_libgsmsd = "${libdir}/libgsmsd.so.*" |
| 54 | FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/gammu/*.??" |
| 55 | |
| 56 | RDEPENDS_${PN} += "bash" |
| 57 | RDEPENDS_${PN}-dev += "bash" |
| 58 | |
| 59 | # Fails to build with thumb-1 (qemuarm) |
| 60 | # gammu-1.32.0/libgammu/service/sms/gsmems.c:542:1: internal compiler error: in patch_jump_insn, at cfgrtl.c:1275 |
| 61 | # | } |
| 62 | # | ^ |
| 63 | # | Please submit a full bug report, |
| 64 | # | with preprocessed source if appropriate. |
| 65 | # | See <http://gcc.gnu.org/bugs.html> for instructions. |
| 66 | # | make[2]: *** [libgammu/CMakeFiles/libGammu.dir/service/sms/gsmems.o] Error 1 |
| 67 | # | make[2]: *** Waiting for unfinished jobs.... |
| 68 | ARM_INSTRUCTION_SET = "arm" |