kirby 6ca97e8ce6 Import gammu-1.37.4
Tweaks, tests and OK feinerer@

Gammu command line utility provides access to wide range of phone
features, however support level differs from phone to phone and you
might want to check Gammu Phone Database for user experiences with
various phones. Generally following features are supported:
     * Call listing, initiating and handling
     * SMS retrieval, backup and sending
     * MMS retrieval
     * Phonebook listing, export and import (also from standard
       formats such as vCard)
     * Calendar and tasks listing, export and import (also from
       standard formats such as vCalendar or iCalendar)
     * Retrieval of phone and network information
     * Access to phone file system.
2016-11-25 11:51:46 +00:00

60 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2016/11/25 11:51:46 kirby Exp $
COMMENT = Gnu All Mobile Management Utilities
DISTNAME = gammu-1.37.4
SHARED_LIBS += Gammu 0.0 # 7.1
SHARED_LIBS += gsmsd 0.0 # 7.1
CATEGORIES = comms
HOMEPAGE = http://wammu.eu/
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c curl dbi glib-2.0 gobject-2.0 iconv intl m pthread usb-1.0
MASTER_SITES = http://dl.cihar.com/gammu/releases/
MODULES = devel/cmake
BUILD_DEPENDS = devel/gettext-tools
RUN_DEPENDS = misc/dialog
LIB_DEPENDS = databases/libdbi \
devel/glib2 \
devel/libusb1 \
net/curl
TEST_DEPENDS = devel/cmake
CONFIGURE_ARGS += -DINSTALL_MAN_DIR:STRING=man \
-DINSTALL_BASH_COMPLETION=OFF \
-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -liconv -lintl"
FLAVORS += mysql pgsql
FLAVOR ?=
SEPARATE_BUILD = flavored
.if !${FLAVOR:Mpgsql} && !${FLAVOR:Mmysql}
RUN_DEPENDS += databases/libdbi-drivers,-sqlite3
.endif
.if ${FLAVOR:Mmysql}
CONFIGURE_ARGS += -DMYSQL_BACKEND=ON
LIB_DEPENDS += databases/mariadb
RUN_DEPENDS += databases/libdbi-drivers
WANTLIB += mysqlclient
.endif
.if ${FLAVOR:Mpgsql}
CONFIGURE_ARGS += -DPSQL_BACKEND=ON
LIB_DEPENDS += databases/postgresql
RUN_DEPENDS += databases/libdbi-drivers,-pgsql
WANTLIB += pq
.endif
.include <bsd.port.mk>