# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
maintainers {michaelld @michaelld} openmaintainer
description ${name} provides a set of C-language libraries that form the core infrastructure of many Osmocom Open Source Mobile Communications projects.
long_description ${description}
github.setup osmocom libosmocore 94c0031297abb0bb42a4ea23e68f944622f50469
checksums rmd160 4f56c42ee40b415b7b79d15ead491e394b1bc2eb\
sha256 df70dc095bcd2315f475175e8dbd9507594f623df973a851f5db7542a098f52d\
patchfiles-append patch-fix-python.diff
reinplace "s|@PYTHON_EXECUTABLE@|${frameworks_dir}/Python.framework/Versions/2.7/bin/python2.7|g" \
${worksrcpath}/include/Makefile.am \
${worksrcpath}/src/gsm/Makefile.am \
${worksrcpath}/tests/Makefile.am \
${worksrcpath}/utils/conv_codes_gsm.py \
${worksrcpath}/utils/conv_gen.py \
# fix stats.h to work within MacPorts
patchfiles-append patch-include_osmocom_core_stats.h.diff
# fix header variable declaration to be "extern" even though it should
# not technically be necessary.
patchfiles-append patch-include_osmocom_coding_gsm0503_parity.h.diff
# update configure.ac to current automake standards
patchfiles-append patch-configure.ac.diff
# fix 'timer_clockgettime.c' to work with OSs that don't provide
# the function 'clock_gettime' and/or its various options.
patchfiles-append patch-fix_clock_gettime.diff