Files
ports/comms/gammu/Makefile
T
sthen 223dd2dcf0 set COMPILER_LANGS=c for various C-only ports
add annotations near COMPILER for some other ports that don't have
COMPILER_LIBCXX in WANTLIB

not changing the actual compiler version of anything here (some could
possibly remove the COMPILER line completely where they only used
COMPILER due to an old WANTLIB entry which has since stopped using
C++, but changing that is too likely to break things)
2025-01-28 11:22:02 +00:00

65 lines
1.3 KiB
Makefile

COMMENT = Gnu All Mobile Management Utilities
DISTNAME = gammu-1.42.0
REVISION = 0
SHARED_LIBS += Gammu 1.1 # 8.1
SHARED_LIBS += gsmsd 1.0 # 8.1
CATEGORIES = comms
HOMEPAGE = https://wammu.eu/
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
# GPLv2
PERMIT_PACKAGE = Yes
WANTLIB += c curl dbi glib-2.0 gobject-2.0 iconv intl m pthread usb-1.0
SITES = https://dl.cihar.com/gammu/releases/
MODULES = devel/cmake
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
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 \
-Wno-dev
CFLAGS += -I${LOCALBASE}/include
LDFLAGS = -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 += mariadb
.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>