Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $OpenBSD: Makefile,v 1.5 2017/05/25 18:07:53 kirby Exp $
  2. COMMENT = Gnu All Mobile Management Utilities
  3. DISTNAME = gammu-1.38.3
  4. SHARED_LIBS += Gammu 1.0 # 8.1
  5. SHARED_LIBS += gsmsd 1.0 # 8.1
  6. CATEGORIES = comms
  7. HOMEPAGE = http://wammu.eu/
  8. MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += c curl dbi glib-2.0 gobject-2.0 iconv intl m pthread usb-1.0
  12. MASTER_SITES = http://dl.cihar.com/gammu/releases/
  13. MODULES = devel/cmake
  14. BUILD_DEPENDS = devel/gettext-tools
  15. RUN_DEPENDS = misc/dialog
  16. LIB_DEPENDS = databases/libdbi \
  17. devel/glib2 \
  18. devel/libusb1 \
  19. net/curl
  20. TEST_DEPENDS = devel/cmake
  21. CONFIGURE_ARGS += -DINSTALL_MAN_DIR:STRING=man \
  22. -DINSTALL_BASH_COMPLETION=OFF \
  23. -DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib -liconv -lintl"
  24. FLAVORS += mysql pgsql
  25. FLAVOR ?=
  26. SEPARATE_BUILD = flavored
  27. .if !${FLAVOR:Mpgsql} && !${FLAVOR:Mmysql}
  28. RUN_DEPENDS += databases/libdbi-drivers,-sqlite3
  29. .endif
  30. .if ${FLAVOR:Mmysql}
  31. CONFIGURE_ARGS += -DMYSQL_BACKEND=ON
  32. LIB_DEPENDS += databases/mariadb
  33. RUN_DEPENDS += databases/libdbi-drivers
  34. WANTLIB += mysqlclient
  35. .endif
  36. .if ${FLAVOR:Mpgsql}
  37. CONFIGURE_ARGS += -DPSQL_BACKEND=ON
  38. LIB_DEPENDS += databases/postgresql
  39. RUN_DEPENDS += databases/libdbi-drivers,-pgsql
  40. WANTLIB += pq
  41. .endif
  42. .include <bsd.port.mk>