On Mon, Feb 04, 2013 at 12:27:40PM +0100, Josef Holzmayr wrote:
> Signed-off-by: Josef Holzmayr <[email protected]>
> ---
>  rules/gammu.in   | 434 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  rules/gammu.make | 424 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 858 insertions(+)
>  create mode 100644 rules/gammu.in
>  create mode 100644 rules/gammu.make
> 
> diff --git a/rules/gammu.in b/rules/gammu.in
> new file mode 100644
> index 0000000..a1c2aec
> --- /dev/null
> +++ b/rules/gammu.in
> @@ -0,0 +1,434 @@
> +## SECTION=communication
> +menuconfig GAMMU
> +     tristate
> +     prompt "gammu"
> +     select HOST_CMAKE
> +     select LIBC_M

all selects must be listed here:
        select FOO if GAMMU_FOO

or for runtime dependencies only, e.g.:
        select DIALOG if GAMMU_CLITOOLS && RUNTIME

> +     help
> +       Gammu is a toolkit for various GSM-related tasks,
> +       such as sending and receiving text messages, making
> +       calls, etc.
> +
> +if GAMMU
> +
> +config GAMMU_CLITOOLS
> +     bool
> +     prompt "install command line tools"
> +     select DIALOG
> +     help
> +       Whether to install the gammu command line tools.
> +
> +config GAMMU_SMSDTOOLS
> +     bool
> +     prompt "install smsd toolset"
> +     help
> +       Whether to install the smsd toolset from the gammu suite.
> +       (gammu-smsd, gammu-smsd-inject, gammu-smsd-monitor)
> +
> +config GAMMU_SHARED
> +     bool
> +     default y
> +     prompt "build shared lib"
> +     help
> +       Whether to build gammu with shared libraries.

Just enable shared libs without option

> +
> +config GAMMU_CONFIGFILE
> +     bool
> +     prompt "install gammu configuration file"
> +     help
> +       Whether to install the gammu configuration file
> +       to /etc/gammurc

why not always install it?

> +
> +config GAMMU_THREADS
> +     bool
> +     default y
> +     prompt "use threads"
> +     help
> +       Whether to build gammu with support for threads.

always enable this?

> +
> +config GAMMU_LARGE_FILE
> +     bool
> +     default y
> +     prompt "large file support"
> +     help
> +       Whether to build gammu with support for large files.
> +

use the global option for this

> +config GAMMU_INIT
> +     bool
> +     default y
> +     prompt "Init script"
> +     help
> +       Whether to install the initscript from gammu.
> +
> +config GAMMU_UDEV_RULES
> +     bool
> +     prompt "Udev rules"
> +     select UDEV
> +     help
> +       Whether to install udev rules from gammu.

always enable this?

> +
> +config GAMMU_PYTHON
> +     bool
> +     prompt "support for python"
> +     select PYTHON
> +     help
> +       Whether to build gammu with support for python.
> +
> +config GAMMU_BLUETOOTH
> +     bool
> +     prompt "support for bluetooth"
> +     select BLUEZ
> +     help
> +       Whether to build gammu with support for bluetooth.
> +
> +if GAMMU_BLUETOOTH
> +
> +config GAMMU_BLUETOOTH_RF_SEARCHING
> +     bool
> +     prompt "support for bluetooth rf saerching"
> +     select BLUEZ
> +     help
> +       Whether to build gammu with support for bluetooth rf searching.
> +
> +endif
> +
> +config GAMMU_USB
> +     bool
> +     prompt "support for USB"
> +     select LIBUSB
> +     help
> +       Whether to build gammu with support for USB.
> +
> +config GAMMU_IRDA
> +     bool
> +     prompt "support for IrDA"
> +     help
> +       Whether to build gammu with support for IrDA.
> +
> +config GAMMU_CELLBROADCAST
> +     bool
> +     prompt "Cell Broadcast messages support"
> +     help
> +       Whether to build gammu with support for Cell Broadcast messages.
> +
> +config GAMMU_BACKUP
> +     bool
> +     prompt "Backup/Restore functions"
> +     help
> +       Whether to build gammu with support for Backup/Restore functions.
> +
> +menu "database/object support"
> +
> +config GAMMU_MYSQL
> +     bool
> +     prompt "MySQL support"
> +     select MYSQL
> +     help
> +       Whether to build gammu with MySQL support.
> +
> +config GAMMU_ODBC
> +     bool
> +     prompt "ODBC support"
> +     select LIBIODBC
> +     help
> +       Whether to build gammu with ODBC support.
> +
> +endmenu
> +
> +menu "device support"
> +
> +config GAMMU_NOKIA

menuconfig

the same for all others, and add spaces to align the "-->"

also, these are a lot of options. Whats the benefit for making this
configurable?

> +     bool
> +     prompt "Nokia support"
> +     help
> +       Whether to build gammu with support for Nokia devices.
> +
> +if GAMMU_NOKIA
> +
> +config GAMMU_NOKIA_MBUS2
> +     bool
> +     prompt "Nokia MBUS2 protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       MBUS2 protocol.
> +
> +config GAMMU_NOKIA_FBUS2
> +     bool
> +     prompt "Nokia FBUS2 protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       FBUS2 protocol.
> +
> +config GAMMU_NOKIA_FBUS2DLR3
> +     bool
> +     prompt "Nokia FBUS2DLR3 protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       FBUS2DLR3 protocol.
> +
> +config GAMMU_NOKIA_DKU2PHONET
> +     bool
> +     prompt "Nokia DKU2PHONET protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       DKU2PHONET protocol.
> +
> +config GAMMU_NOKIA_DKU2AT
> +     bool
> +     prompt "Nokia DKU2AT protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       DKU2AT protocol.
> +
> +config GAMMU_NOKIA_DKU5FBUS2
> +     bool
> +     prompt "Nokia DKU5FBUS2 protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       DKU5FBUS2 protocol.
> +
> +config GAMMU_NOKIA_MBUS2
> +     bool
> +     prompt "Nokia DKU5FBUS2 protocol support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       DKU5FBUS2 protocol.
> +
> +config GAMMU_NOKIA_FBUS2BLUE
> +     bool
> +     prompt "Nokia FBUS2BLUE protocol support"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the Nokia
> +       FBUS2BLUE protocol.
> +
> +config GAMMU_NOKIA_PHONETBLUE
> +     bool
> +     prompt "Nokia PHONETBLUE protocol support"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the Nokia
> +       PHONETBLUE protocol.
> +
> +config GAMMU_NOKIA_BLUEFBUS2
> +     bool
> +     prompt "Nokia BLUEFBUS2 protocol support"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the Nokia
> +       BLUEFBUS2 protocol.
> +
> +config GAMMU_NOKIA_BLUEPHONET
> +     bool
> +     prompt "Nokia BLUEPHONET protocol support"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the Nokia
> +       BLUEPHONET protocol.
> +
> +config GAMMU_NOKIA_IRDAPHONET
> +     bool
> +     prompt "Nokia IRDAPHONET protocol support"
> +     select GAMMU_IRDA
> +     help
> +       Whether to build gammu with support for the Nokia
> +       IRDAPHONET protocol.
> +
> +config GAMMU_NOKIA_FBUS2IRDA
> +     bool
> +     prompt "Nokia FBUS2IRDA protocol support"
> +     select GAMMU_IRDA
> +     help
> +       Whether to build gammu with support for the Nokia
> +       FBUS2IRDA protocol.
> +
> +config GAMMU_NOKIA_3320
> +     bool
> +     prompt "Nokia model 3320 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 3320 and compatible phones.
> +
> +config GAMMU_NOKIA_650
> +     bool
> +     prompt "Nokia model 650 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 650 and compatible phones.
> +
> +config GAMMU_NOKIA_61xx
> +     bool
> +     prompt "Nokia model 61xx and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 61xx and compatible phones.
> +
> +config GAMMU_NOKIA_6510
> +     bool
> +     prompt "Nokia model 6510 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 6510 and compatible phones.
> +
> +if GAMMU_NOKIA_6510
> +
> +config GAMMU_NOKIA_DCT4_CALENDAR_6210
> +     bool
> +     prompt "Force using 6210 frames for calendar for DCT4 phones"
> +     help
> +       Whether to force gammu to use 6210 frames for calendar
> +       for DCT4 phones
> +
> +endif
> +
> +config GAMMU_NOKIA_7110
> +     bool
> +     prompt "Nokia model 7110 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 7110 and compatible phones.
> +
> +config GAMMU_NOKIA_9210
> +     bool
> +     prompt "Nokia model 9210 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 9210 and compatible phones.
> +
> +if GAMMU_NOKIA_9210
> +
> +config GAMMU_NOKIA_N71_92INCOMINGINFO
> +     bool
> +     prompt "Nokia 62xx/71xx/9xxx incoming call/SMS info"
> +     help
> +       Whether to build gammu with support for Nokia 62xx/71xx/9xxx
> +       incoming call/SMS info.
> +
> +endif
> +
> +config GAMMU_NOKIA_3650
> +     bool
> +     prompt "Nokia model 3650 and compatible phone support"
> +     help
> +       Whether to build gammu with support for the Nokia
> +       model 3650 and compatible phones.
> +
> +endif
> +
> +config GAMMU_AT
> +     bool
> +     prompt "AT support"
> +     help
> +       Whether to build gammu with support for AT devices.
> +
> +if GAMMU_AT
> +
> +config GAMMU_AT_BLUE
> +     bool
> +     prompt "AT protocol over Bluetooth"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the AT
> +       protocol over bluetooth.
> +
> +config GAMMU_AT_IRDA
> +     bool
> +     prompt "AT protocol over IrDA"
> +     select GAMMU_IRDA
> +     help
> +       Whether to build gammu with support for the AT
> +       protocol over IrDA.
> +
> +config GAMMU_AT_ALCATEL
> +     bool
> +     prompt "Alcatel support"
> +     help
> +       Whether to build gammu with support for Alcatel devices.
> +
> +if GAMMU_AT_ALCATEL
> +
> +config GAMMU_AT_ALCABUS
> +     bool
> +     prompt "Alcatel protocol support"
> +     help
> +       Whether to build gammu with support for the Alcatel protocol.
> +
> +endif
> +
> +endif
> +
> +config GAMMU_OBEX
> +     bool
> +     prompt "OBEX support"
> +     help
> +       Whether to build gammu with support for OBEX compatible phones.
> +
> +if GAMMU_OBEX
> +
> +config GAMMU_OBEX_BLUE
> +     bool
> +     prompt "OBEX protocol over Bluetooth"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the OBEX
> +       protocol over bluetooth.
> +
> +config GAMMU_OBEX_IRDA
> +     bool
> +     prompt "OBEX protocol over IrDA"
> +     select GAMMU_IRDA
> +     help
> +       Whether to build gammu with support for the OBEX
> +       protocol over IrDA.
> +
> +config GAMMU_OBEX_AT
> +     bool
> +     prompt "AT with OBEX phones support"
> +     help
> +       Whether to build gammu with support for AT with OBEX phones.
> +
> +config GAMMU_OBEX_AUTOMODE
> +     bool
> +     prompt "Automatic switching to OBEX for AT+MODE capable phones"
> +     help
> +       Whether to build gammu with support to automatically switch to OBEX
> +       for AT+MODE capable phones.
> +
> +endif
> +
> +config GAMMU_S60
> +     bool
> +     prompt "Symbian phones support (S60)"
> +     help
> +       Whether to build gammu with support for Symbian phones (S60).
> +
> +config GAMMU_GNAPPLET
> +     bool
> +     prompt "Symbian phones support (gnapplet)"
> +     select GAMMU_NOKIA
> +     help
> +       Whether to build gammu with support for Symbian phones (gnapplet).
> +
> +if GAMMU_GNAPPLET
> +
> +config GAMMU_GNAPPLET_BLUE
> +     bool
> +     prompt "gnapplet protocol over Bluetooth"
> +     select GAMMU_BLUETOOTH
> +     help
> +       Whether to build gammu with support for the gnapplet
> +       protocol over bluetooth.
> +
> +config GAMMU_GNAPPLET_IRDA
> +     bool
> +     prompt "gnapplet protocol over IrDA"
> +     select GAMMU_IRDA
> +     help
> +       Whether to build gammu with support for the gnapplet
> +       protocol over IrDA.
> +
> +endif
> +
> +endmenu
> +
> +endif
> diff --git a/rules/gammu.make b/rules/gammu.make
> new file mode 100644
> index 0000000..8a4d28e
> --- /dev/null
> +++ b/rules/gammu.make
> @@ -0,0 +1,424 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2012 by Josef Holzmayr <[email protected]>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_GAMMU) += gammu
> +
> +#
> +# Paths and names
> +#
> +GAMMU_VERSION        := 1.31.0
> +GAMMU_MD5    := 9b1ff5d84730f025802b961ab9f26717
> +GAMMU                := gammu-$(GAMMU_VERSION)
> +GAMMU_SUFFIX := tar.bz2
> +GAMMU_URL    := http://dl.cihar.com/gammu/releases/$(GAMMU).$(GAMMU_SUFFIX)
> +GAMMU_DIR    := $(BUILDDIR)/$(GAMMU)
> +GAMMU_SOURCE := $(SRCDIR)/$(GAMMU).$(GAMMU_SUFFIX)
> +GAMMU_LICENSE        := GPLv2
> +
> +# 
> ----------------------------------------------------------------------------
> +# Get
> +# 
> ----------------------------------------------------------------------------
> +
> +$(GAMMU_SOURCE):
> +     @$(call targetinfo)
> +     @$(call get, GAMMU)

remove

> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +GAMMU_CONF_ENV       := $(CROSS_ENV)

remove

> +
> +#
> +# cmake
> +#
> +
> +GAMMU_CONF_TOOL      := cmake
> +
> +GAMMU_CONF_OPT       := $(CROSS_CMAKE_USR)
> +
> +GAMMU_CONF_OPT       += -DONLINE_TESTING=OFF
> +GAMMU_CONF_OPT       += -DPSQL_TESTING=OFF
> +GAMMU_CONF_OPT       += -DMYSQL_TESTING=OFF
> +GAMMU_CONF_OPT       += -DODBC_TESTING=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_GNAPPLET=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_MEDIA=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_PHP_EXAMPLES=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_BASH_COMPLETION=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_DOC=OFF
> +GAMMU_CONF_OPT       += -DINSTALL_LOC=OFF
> +GAMMU_CONF_OPT       += -DWITH_Doxygen=OFF
> +
> +GAMMU_CONF_OPT       += -DWITH_MySQL=OFF
> +GAMMU_CONF_OPT       += -DWITH_ODBC=OFF
> +GAMMU_CONF_OPT       += -DWITH_Postgres=OFF
> +GAMMU_CONF_OPT       += -DWITH_LibDBI=OFF
> +GAMMU_CONF_OPT       += -DWITH_Libintl=OFF
> +GAMMU_CONF_OPT       += -DWITH_Iconv=OFF
> +GAMMU_CONF_OPT       += -DWITH_CURL=OFF
> +GAMMU_CONF_OPT       += -DWITH_Glib=OFF
> +GAMMU_CONF_OPT       += -DWITH_Gobject=OFF

+GAMMU_CONF_OPT := \
        $(CROSS_CMAKE_USR) \
        -DONLINE_TESTING=OFF \
        ...

and we should provide a macro for the options, so we can use:
        -DBUILD_SHARED_LIBS=$(call ptx/onoff, PTXCONF_GAMMU_SHARED)

or something like that

> +
> +# do we want shared libraries?
> +ifdef PTXCONF_GAMMU_SHARED
> +GAMMU_CONF_OPT += -DBUILD_SHARED_LIBS=ON
> +else
> +GAMMU_CONF_OPT += -DBUILD_SHARED_LIBS=OFF
> +endif
> +# do we want to use threads?
> +ifdef PTXCONF_GAMMU_THREADS
> +GAMMU_CONF_OPT += -DWITH_THREADS=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_THREADS=OFF
> +endif
> +# do we want large file support?
> +ifdef PTXCONF_GAMMU_LARGE_FILE
> +GAMMU_CONF_OPT += -DBUILD_LARGE_FILES=ON
> +else
> +GAMMU_CONF_OPT += -DBUILD_LARGE_FILES=OFF
> +endif
> +# do we want init scripts?
> +ifdef PTXCONF_GAMMU_INIT
> +GAMMU_CONF_OPT += -DINSTALL_LSB_INIT=ON
> +else
> +GAMMU_CONF_OPT += -DINSTALL_LSB_INIT=OFF
> +endif
> +# do we want udev rules?
> +ifdef PTXCONF_GAMMU_UDEV_RULES
> +GAMMU_CONF_OPT += -DINSTALL_UDEV_RULES=ON
> +else
> +GAMMU_CONF_OPT += -DINSTALL_UDEV_RULES=OFF
> +endif
> +# do we want python support?
> +ifdef PTXCONF_GAMMU_PYTHON
> +GAMMU_CONF_OPT += -DWITH_PYTHON=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_PYTHON=OFF
> +endif
> +# do we want bluetooth support?
> +ifdef PTXCONF_GAMMU_BLUETOOTH
> +GAMMU_CONF_OPT += -DWITH_BLUETOOTH=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUETOOTH=OFF
> +endif
> +# do we want bluetooth rf search support?
> +ifdef PTXCONF_GAMMU_BLUETOOTH_RF_SEARCHING
> +GAMMU_CONF_OPT += -DWITH_BLUETOOTH_RF_SEARCHING=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUETOOTH_RF_SEARCHING=OFF
> +endif
> +# do we want usb support?
> +ifdef PTXCONF_GAMMU_USB
> +GAMMU_CONF_OPT += -DWITH_USB=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_USB=OFF
> +endif
> +# do we want IrDA support?
> +ifdef PTXCONF_GAMMU_IRDA
> +GAMMU_CONF_OPT += -DWITH_IRDA=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_IRDA=OFF
> +endif
> +# do we want Cell Broadcast messages support?
> +ifdef PTXCONF_GAMMU_CELLBROADCAST
> +GAMMU_CONF_OPT += -DWITH_CELLBROADCAST=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_CELLBROADCAST=OFF
> +endif
> +# do we want Backup/Restore support?
> +ifdef PTXCONF_GAMMU_BACKUP
> +GAMMU_CONF_OPT += -DWITH_BACKUP=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BACKUP=OFF
> +endif
> +
> +# Here come the supported devices
> +# Nokia
> +ifdef PTXCONF_GAMMU_NOKIA
> +GAMMU_CONF_OPT += -DWITH_NOKIA_SUPPORT=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA_SUPPORT=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_MBUS2
> +GAMMU_CONF_OPT += -DWITH_MBUS2=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_MBUS2=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_FBUS2
> +GAMMU_CONF_OPT += -DWITH_FBUS2=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_FBUS2=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_FBUS2DLR3
> +GAMMU_CONF_OPT += -DWITH_FBUS2DLR3=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_FBUS2DLR3=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_DKU2PHONET
> +GAMMU_CONF_OPT += -DWITH_DKU2PHONET=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_DKU2PHONET=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_DKU2AT
> +GAMMU_CONF_OPT += -DWITH_DKU2AT=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_DKU2AT=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_DKU5FBUS2
> +GAMMU_CONF_OPT += -DWITH_DKU5FBUS2=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_DKU5FBUS2=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_FBUS2PL2303
> +GAMMU_CONF_OPT += -DWITH_FBUS2PL2303=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_FBUS2PL2303=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_FBUS2BLUE
> +GAMMU_CONF_OPT += -DWITH_FBUS2BLUE=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_FBUS2BLUE=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_PHONETBLUE
> +GAMMU_CONF_OPT += -DWITH_PHONETBLUE=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_PHONETBLUE=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_BLUEFBUS2
> +GAMMU_CONF_OPT += -DWITH_BLUEFBUS2=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUEFBUS2=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_BLUEPHONET
> +GAMMU_CONF_OPT += -DWITH_BLUEPHONET=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUEPHONET=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_IRDAPHONET
> +GAMMU_CONF_OPT += -DWITH_IRDAPHONET=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_IRDAPHONET=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_FBUS2IRDA
> +GAMMU_CONF_OPT += -DWITH_FBUS2IRDA=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_FBUS2IRDA=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_3320
> +GAMMU_CONF_OPT += -DWITH_NOKIA3320=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA3320=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_650
> +GAMMU_CONF_OPT += -DWITH_NOKIA650=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA650=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_61xx
> +GAMMU_CONF_OPT += -DWITH_NOKIA6110=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA6110=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_6510
> +GAMMU_CONF_OPT += -DWITH_NOKIA6510=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA6510=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_DCT4_CALENDAR_6210
> +GAMMU_CONF_OPT += -DWITH_DCT4_CALENDAR_6210=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_DCT4_CALENDAR_6210=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_7110
> +GAMMU_CONF_OPT += -DWITH_NOKIA7110=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA7110=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_9210
> +GAMMU_CONF_OPT += -DWITH_NOKIA9210=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA9210=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_N71_92INCOMINGINFO
> +GAMMU_CONF_OPT += -DWITH_N71_92INCOMINGINFO=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_N71_92INCOMINGINFO=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_NOKIA_3650
> +GAMMU_CONF_OPT += -DWITH_NOKIA3650=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_NOKIA3650=OFF
> +endif
> +
> +# AT
> +ifdef PTXCONF_GAMMU_AT
> +GAMMU_CONF_OPT += -DWITH_AT_SUPPORT=ON -DWITH_AT=ON -DWITH_ATGEN=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_AT_SUPPORT=OFF -DWITH_AT=ON -DWITH_ATGEN=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_AT_BLUE
> +GAMMU_CONF_OPT += -DWITH_BLUEAT=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUEAT=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_AT_IRDA
> +GAMMU_CONF_OPT += -DWITH_IRDAAT=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_IRDAAT=OFF
> +endif
> +
> +# Alcatel
> +ifdef PTXCONF_GAMMU_AT_ALCATEL
> +GAMMU_CONF_OPT += -DWITH_ALCATEL_SUPPORT=ON -DWITH_ALCATEL=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_ALCATEL_SUPPORT=OFF -DWITH_ALCATEL=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_AT_ALCABUS
> +GAMMU_CONF_OPT += -DWITH_ALCABUS=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_ALCABUS=OFF
> +endif
> +
> +# OBEX
> +ifdef PTXCONF_GAMMU_OBEX
> +GAMMU_CONF_OPT += -DWITH_OBEX_SUPPORT=ON -DWITH_OBEXGEN=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_OBEX_SUPPORT=OFF -DWITH_OBEXGEN=ON
> +endif
> +
> +ifdef PTXCONF_GAMMU_OBEX_BLUE
> +GAMMU_CONF_OPT += -DWITH_BLUEOBEX=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUEOBEX=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_OBEX_IRDA
> +GAMMU_CONF_OPT += -DWITH_IRDAOBEX=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_IRDAOBEX=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_OBEX_AT
> +GAMMU_CONF_OPT += -DWITH_ATOBEX=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_ATOBEX=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_OBEX_AUTOMODE
> +GAMMU_CONF_OPT += -DWITH_ATOBEX_AUTO_MODE=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_ATOBEX_AUTO_MODE=OFF
> +endif
> +
> +# Symbian S60
> +ifdef PTXCONF_GAMMU_S60
> +GAMMU_CONF_OPT += -DWITH_S60_SUPPORT=ON -DWITH_S60=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_S60_SUPPORT=OFF -DWITH_S60=ON
> +endif
> +
> +# Symbian gnapplet
> +ifdef PTXCONF_GAMMU_S60
> +GAMMU_CONF_OPT += -DWITH_GNAPPLET_SUPPORT=ON -DWITH_GNAPGEN=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_GNAPPLET_SUPPORT=OFF -DWITH_GNAPGEN=ON
> +endif
> +
> +ifdef PTXCONF_GAMMU_GNAPPLET_BLUE
> +GAMMU_CONF_OPT += -DWITH_BLUEGNAPBUS=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_BLUEGNAPBUS=OFF
> +endif
> +
> +ifdef PTXCONF_GAMMU_GNAPPLET_IRDA
> +GAMMU_CONF_OPT += -DWITH_IRDAGNAPBUS=ON
> +else
> +GAMMU_CONF_OPT += -DWITH_IRDAGNAPBUS=OFF
> +endif
> +
> +# 
> ----------------------------------------------------------------------------
> +# Target-Install
> +# 
> ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/gammu.targetinstall:
> +     @$(call targetinfo)
> +
> +     @$(call install_init, gammu)
> +     @$(call install_fixup, gammu, PRIORITY, optional)
> +     @$(call install_fixup, gammu, SECTION, base)
> +     @$(call install_fixup, gammu, AUTHOR, "Josef Holzmayr 
> <[email protected]>")
> +     @$(call install_fixup, gammu, DESCRIPTION, missing)
> +
> +
> +ifdef PTXCONF_GAMMU_SHARED
> +     @$(call install_lib, gammu, 0, 0, 0644, libGammu)
> +endif
> +
> +ifdef PTXCONF_GAMMU_CLITOOLS
> +     @$(call install_copy, gammu, 0, 0, 0755, -, /usr/bin/gammu);
> +     @$(call install_copy, gammu, 0, 0, 0755, -, /usr/bin/gammu-config);
> +endif
> +
> +ifdef PTXCONF_GAMMU_SMSDTOOLS
> +     @$(call install_copy, gammu, 0, 0, 0755, -, /usr/bin/gammu-smsd-inject);
> +     @$(call install_copy, gammu, 0, 0, 0755, -, 
> /usr/bin/gammu-smsd-monitor);
> +     @$(call install_copy, gammu, 0, 0, 0755, -, /usr/bin/gammu-smsd);
> +ifdef PTXCONF_GAMMU_SHARED
> +     @$(call install_lib, gammu, 0, 0, 0644, libgsmsd)
> +endif
> +
> +endif
> +
> +ifdef PTXCONF_GAMMU_CONFIGFILE
> +     @$(call install_alternative, gammu, 0, 0, 0644, /etc/gammurc, n)
> +endif

the ",n)" at the end is no longer needed.

> +
> +
> +     @$(call install_finish, gammu)
> +
> +     @$(call touch)
> +
> +# 
> ----------------------------------------------------------------------------
> +# Clean
> +# 
> ----------------------------------------------------------------------------
> +
> +#$(STATEDIR)/gammu.clean:
> +#    @$(call targetinfo)
> +#    @$(call clean_pkg, GAMMU)


remove

Michael

> +
> +# vim: syntax=make
> -- 
> 1.8.1.1
> 
> 
> -- 
> _____________________________________________________________
> R-S-I Elektrotechnik GmbH & Co. KG
> Woelkestrasse 11
> D-85301 Schweitenkirchen
> Fon: +49 8444 9204-0
> Fax: +49 8444 9204-50
> www.rsi-elektrotechnik.de
> 
> _____________________________________________________________
> Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
> Gesch?ftsf?hrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> USt-IdNr.: DE 128592548
> 
> 

> -- 
> ptxdist mailing list
> [email protected]


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to