DESCR

Gammu is a command line utility and library to work with mobile phones
from many vendors. Support for different models differs, but basic
functions should work with majority of them. The program can work with
contacts, messages (SMS, EMS and MMS), calendar, todos, file system,
integrated radio, camera, etc. It also supports a daemon mode to send
and receive SMS messages.

Gammu includes Python bindings, which allows easy scripting of
desired functionality using core functions.

Makefile

# $NetBSD: Makefile,v 1.5 2010/01/17 12:02:08 wiz Exp $
#

.include "Makefile.common"
PKGREVISION= 1

COMMENT= Command line utility and library to work with mobile phones

# cmake tests for it; unclear for what it would be used
#BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
# for gammu-config
DEPENDS+= dialog-[0-9]*:../../misc/dialog

PKG_DESTDIR_SUPPORT= user-destdir

USE_CMAKE= yes
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+= -DINSTALL_MAN_DIR:STRING=${PKGMANDIR}
# see py-gammu:
CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF
# make sure some optional dependencies are not found:
CMAKE_ARGS+= -DWITH_MySQL:BOOL=OFF
CMAKE_ARGS+= -DWITH_Postgres:BOOL=OFF
CMAKE_ARGS+= -DWITH_LibDBI:BOOL=OFF
# avoid installing bash completion scripts
CMAKE_ARGS+= -DBASH_BIN:FILEPATH=
#CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON

USE_LANGUAGES= c c++
USE_TOOLS+= bash:run msgfmt
REPLACE_BASH= utils/gammu-config utils/jadmaker

# needed because of https://bugs.cihar.com/view.php?id=908
BUILDLINK_TRANSFORM+= rm:-Werror

.include "../../devel/libusb/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

Makefile.common

# $NetBSD: Makefile.common,v 1.7 2010/04/17 15:48:22 zafer Exp $
#
# used by comms/gammu/Makefile
# used by comms/py-gammu/Makefile

DISTNAME= gammu-1.26.1
CATEGORIES= comms
MASTER_SITES= http://dl.cihar.com/gammu/releases/ \
http://dl.cihar.com.nyud.net/gammu/releases/
EXTRACT_SUFX= .tar.bz2

MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cihar.com/gammu/
LICENSE= gnu-gpl-v2

PLIST

@comment $NetBSD: PLIST,v 1.4 2009/09/04 23:19:58 wiz Exp $
bin/gammu
bin/gammu-config
bin/gammu-smsd
bin/gammu-smsd-inject
bin/gammu-smsd-monitor
bin/jadmaker
include/gammu/gammu-backup.h
include/gammu/gammu-bitmap.h
include/gammu/gammu-calendar.h
include/gammu/gammu-call.h
include/gammu/gammu-callback.h
include/gammu/gammu-category.h
include/gammu/gammu-config.h
include/gammu/gammu-datetime.h
include/gammu/gammu-debug.h
include/gammu/gammu-error.h
include/gammu/gammu-file.h
include/gammu/gammu-info.h
include/gammu/gammu-inifile.h
include/gammu/gammu-keys.h
include/gammu/gammu-limits.h
include/gammu/gammu-memory.h
include/gammu/gammu-message.h
include/gammu/gammu-misc.h
include/gammu/gammu-nokia.h
include/gammu/gammu-ringtone.h
include/gammu/gammu-security.h
include/gammu/gammu-settings.h
include/gammu/gammu-smsd.h
include/gammu/gammu-statemachine.h
include/gammu/gammu-types.h
include/gammu/gammu-unicode.h
include/gammu/gammu-wap.h
include/gammu/gammu.h
lib/libGammu.so
lib/libGammu.so.7
lib/libGammu.so.7.${PKGVERSION}
lib/libgsmsd.so
lib/libgsmsd.so.7
lib/libgsmsd.so.7.${PKGVERSION}
lib/pkgconfig/gammu-smsd.pc
lib/pkgconfig/gammu.pc
man/cs/man1/gammu-config.1
man/cs/man1/gammu-smsd-inject.1
man/cs/man1/gammu-smsd-monitor.1
man/cs/man1/gammu-smsd.1
man/cs/man1/gammu.1
man/cs/man1/jadmaker.1
man/cs/man5/gammu-smsdrc.5
man/cs/man5/gammurc.5
man/cs/man7/gammu-smsd-dbi.7
man/cs/man7/gammu-smsd-files.7
man/cs/man7/gammu-smsd-mysql.7
man/cs/man7/gammu-smsd-pgsql.7
man/cs/man7/gammu-smsd-tables.7
man/man1/gammu-config.1
man/man1/gammu-smsd-inject.1
man/man1/gammu-smsd-monitor.1
man/man1/gammu-smsd.1
man/man1/gammu.1
man/man1/jadmaker.1
man/man5/gammu-smsdrc.5
man/man5/gammurc.5
man/man7/gammu-smsd-dbi.7
man/man7/gammu-smsd-files.7
man/man7/gammu-smsd-mysql.7
man/man7/gammu-smsd-pgsql.7
man/man7/gammu-smsd-tables.7
share/doc/gammu/COPYING
share/doc/gammu/ChangeLog
share/doc/gammu/README
share/doc/gammu/SUPPORTERS
share/doc/gammu/devel/Gammu.htm
share/doc/gammu/devel/PORTING
share/doc/gammu/devel/develop.txt
share/doc/gammu/devel/examples/Makefile
share/doc/gammu/devel/examples/phone-info.c
share/doc/gammu/devel/examples/sms-send.c
share/doc/gammu/devel/gammu_hints.txt
share/doc/gammu/devel/protocol/TDMA_5120.txt
share/doc/gammu/devel/protocol/carkit.txt
share/doc/gammu/devel/protocol/n6110.txt
share/doc/gammu/devel/protocol/n6510.txt
share/doc/gammu/devel/protocol/n7110.txt
share/doc/gammu/devel/protocol/nokia.txt
share/doc/gammu/devel/protocol/readme
share/doc/gammu/devel/sms/charset.txt
share/doc/gammu/devel/sms/convert.txt
share/doc/gammu/devel/sms/readme
share/doc/gammu/devel/sounds/readme
share/doc/gammu/devel/sounds/ring2.txt
share/doc/gammu/examples/config/gammurc
share/doc/gammu/examples/config/smsdrc
share/doc/gammu/examples/media/aliens.nlm
share/doc/gammu/examples/media/axelf.txt
share/doc/gammu/examples/php/class_gammu/README
share/doc/gammu/examples/php/class_gammu/class.gammu_nix_win32_v2.php
share/doc/gammu/examples/php/class_gammu/class.sms.gammu.php
share/doc/gammu/examples/php/class_gammu/example_gammu_text.php
share/doc/gammu/examples/php/smsd-mysql-admin/admin.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/config.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/funcoes/func.gammu.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/funcoes/func.sql.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/index.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/intergammu.txt
share/doc/gammu/examples/php/smsd-mysql-intergammu/proc/admin.php
share/doc/gammu/examples/php/smsd-mysql-intergammu/proclast.sql
share/doc/gammu/examples/php/smsd-mysql-linked/linked.php
share/doc/gammu/examples/php/smsd-mysql-linked/linked.sql
share/doc/gammu/examples/php/smsd-mysql-list/sms.php
share/doc/gammu/examples/sql/mysql.sql
share/doc/gammu/examples/sql/pgsql.sql
share/doc/gammu/examples/sql/sqlite.sql
share/doc/gammu/gammu.html
share/doc/gammu/gammu.it.txt
share/doc/gammu/readme.html
share/doc/gammu/readme.it.txt
share/doc/gammu/replace.txt
share/doc/gammu/symbian/gnapplet.ini
share/doc/gammu/symbian/gnapplet.sis
share/doc/gammu/symbian/readme.txt
share/locale/af/LC_MESSAGES/gammu.mo
share/locale/af/LC_MESSAGES/libgammu.mo
share/locale/bg/LC_MESSAGES/gammu.mo
share/locale/bg/LC_MESSAGES/libgammu.mo
share/locale/ca/LC_MESSAGES/gammu.mo
share/locale/ca/LC_MESSAGES/libgammu.mo
share/locale/cs/LC_MESSAGES/gammu.mo
share/locale/cs/LC_MESSAGES/libgammu.mo
share/locale/da/LC_MESSAGES/gammu.mo
share/locale/da/LC_MESSAGES/libgammu.mo
share/locale/de/LC_MESSAGES/gammu.mo
share/locale/de/LC_MESSAGES/libgammu.mo
share/locale/el/LC_MESSAGES/gammu.mo
share/locale/el/LC_MESSAGES/libgammu.mo
share/locale/es/LC_MESSAGES/gammu.mo
share/locale/es/LC_MESSAGES/libgammu.mo
share/locale/et/LC_MESSAGES/gammu.mo
share/locale/et/LC_MESSAGES/libgammu.mo
share/locale/fi/LC_MESSAGES/gammu.mo
share/locale/fi/LC_MESSAGES/libgammu.mo
share/locale/fr/LC_MESSAGES/gammu.mo
share/locale/fr/LC_MESSAGES/libgammu.mo
share/locale/gl/LC_MESSAGES/gammu.mo
share/locale/gl/LC_MESSAGES/libgammu.mo
share/locale/he/LC_MESSAGES/gammu.mo
share/locale/he/LC_MESSAGES/libgammu.mo
share/locale/hu/LC_MESSAGES/gammu.mo
share/locale/hu/LC_MESSAGES/libgammu.mo
share/locale/id/LC_MESSAGES/gammu.mo
share/locale/id/LC_MESSAGES/libgammu.mo
share/locale/it/LC_MESSAGES/gammu.mo
share/locale/it/LC_MESSAGES/libgammu.mo
share/locale/ko/LC_MESSAGES/gammu.mo
share/locale/ko/LC_MESSAGES/libgammu.mo
share/locale/nl/LC_MESSAGES/gammu.mo
share/locale/nl/LC_MESSAGES/libgammu.mo
share/locale/pl/LC_MESSAGES/gammu.mo
share/locale/pl/LC_MESSAGES/libgammu.mo
share/locale/pt_BR/LC_MESSAGES/gammu.mo
share/locale/pt_BR/LC_MESSAGES/libgammu.mo
share/locale/ru/LC_MESSAGES/gammu.mo
share/locale/ru/LC_MESSAGES/libgammu.mo
share/locale/sk/LC_MESSAGES/gammu.mo
share/locale/sk/LC_MESSAGES/libgammu.mo
share/locale/sv/LC_MESSAGES/gammu.mo
share/locale/sv/LC_MESSAGES/libgammu.mo
share/locale/sw/LC_MESSAGES/gammu.mo
share/locale/sw/LC_MESSAGES/libgammu.mo
share/locale/zh_CN/LC_MESSAGES/gammu.mo
share/locale/zh_CN/LC_MESSAGES/libgammu.mo
share/locale/zh_TW/LC_MESSAGES/gammu.mo
share/locale/zh_TW/LC_MESSAGES/libgammu.mo

buildlink3.mk

# $NetBSD: buildlink3.mk,v 1.1 2009/05/26 21:31:21 wiz Exp $

BUILDLINK_TREE+= gammu

.if !defined(GAMMU_BUILDLINK3_MK)
GAMMU_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.gammu+= gammu>=1.24.0
BUILDLINK_PKGSRCDIR.gammu?= ../../comms/gammu

.endif # GAMMU_BUILDLINK3_MK

BUILDLINK_TREE+= -gammu

distinfo

$NetBSD: distinfo,v 1.6 2009/09/09 13:34:54 wiz Exp $

SHA1 (gammu-1.26.1.tar.bz2) = 122886f29c566f72020e91da119e1e04f7bfbec6
RMD160 (gammu-1.26.1.tar.bz2) = a913ac6c999f81ab4fda7c1656232484033ac540
Size (gammu-1.26.1.tar.bz2) = 2113622 bytes