#
# Ideally, the evolution source path autodetection routines would
# load libebook and libecal dynamically, so that dependencies would
# not force the inclusion of evolution-data-server and friends.
#
# But there are two problems with that, which need to be
# cracked first:
#
#     - the glib major version numbers, according to the .so
#       files, are not consistent between distros
#     - when used dynamically, in a program that is not otherwise
#       linked to glib, it can segfault... and it seems to get
#       funky somewhere inside glib itself... so I'm guessing that
#       the library is not being initialized properly :-(
#
# All this means that general compilations of barrydesktop will
# need evolution-data-server and friends linked in.  It is possible
# to compile without by supplying --without-evolution on the configure
# command line, but then you risk getting a weak auto-detection
# of data sources in newer versions of evolution.  If your data
# sources are located in paths like this:
#
#      file:///home/cdfrey/.evolution/addressbook/local/system
#
# then it is safe to disable evolution for the barrydesktop compile.
#
# Otherwise, if your version of evolution is new, and uses funkier names,
# or uses local:system, or puts its files under ~/.config, then
# build --with-evolution and link against it.
#
Source: barry
Section: misc
Priority: optional
Maintainer: Chris Frey <cdfrey@foursquare.net>
Build-Depends: debhelper (>= 7.0.0), g++ (>= 4.1), cdbs, autoconf, autoconf-archive, automake, libtool, pkg-config, libusb-dev, libboost-serialization-dev, libxml++2.6-dev, libfuse-dev (>= 2.5), zlib1g-dev, libtar-dev, libglibmm-2.4-dev, libgtkmm-2.4-dev, libglademm-2.4-dev, autopoint | gettext (<< 0.18), libgcal-dev, wx-common, libwxgtk2.8-dev, libsdl-dev, php5-cli
Standards-Version: 3.9.4
Homepage: http://netdirect.ca/barry
Vcs-Git: git://repo.or.cz/barry.git -b v0.18.x
Vcs-Browser: http://repo.or.cz/w/barry.git

Package: libbarry18
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Library for using the BlackBerry handheld on Linux
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains shared libraries for low level USB communication,
 backup file writing and parsing, sync support routines such as vcard
 support, JDWP debugging support, and ALX release file parsing.

Package: libbarry18-dbg
Section: debug
Priority: extra
Architecture: any
Depends: libbarry18 (= ${binary:Version}), ${misc:Depends}
Description: Library for using the BlackBerry handheld (debug symbols)
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the debug versions of the shared libraries found
 in the libbarry package.

Package: libbarry-dev
Section: libdevel
Architecture: any
Depends: libbarry18 (= ${binary:Version}), ${misc:Depends}
Description: Development files for libbarry
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the header files required for building applications
 based on libbarry.

Package: barry-util
Section: utils
Architecture: any
Depends: libbarry18, udev [linux-any], python, ${shlibs:Depends}, ${misc:Depends}
Suggests: ppp [linux-any]
Description: Command line utilities for working with the RIM BlackBerry Handheld
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains command line utilities, such as bcharge, btool,
 breset, bio, etc.  It also contains udev rules to automate USB charging
 as soon as devices are plugged in.

Package: barry-util-dbg
Section: debug
Priority: extra
Architecture: any
Depends: barry-util (= ${binary:Version}), ${misc:Depends}
Description: Command line BlackBerry utilities (debug symbols)
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the debug versions of the command line utilities
 from the barry-util package.

Package: barrybackup-gui
Section: utils
Architecture: any
Depends: libbarry18, ${shlibs:Depends}, ${misc:Depends}
Replaces: barry-util (<< 0.18.4-1)
Breaks: barry-util (<< 0.18.4-1)
Description: GTK+ GUI for backing up the RIM BlackBerry Handheld
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains a GUI application for making backups and restores.
 It supports configurations to select individual device databases, or to
 restore only certain databases from out of a backup file.  It supports
 multiple devices plugged in at the same time.

Package: barrybackup-gui-dbg
Section: debug
Priority: extra
Architecture: any
Depends: barrybackup-gui (= ${binary:Version}), ${misc:Depends}
Description: GTK+ GUI for backing up BlackBerry (debug symbols)
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the debug version of the backup GUI from the
 barrybackup-gui package.

Package: barrydesktop
Section: utils
Architecture: any
Depends: libbarry18, barry-util, xterm, ${shlibs:Depends}, ${misc:Depends}
Recommends: barrybackup-gui, ppp [linux-any]
Suggests: gksu
Description: Desktop Panel GUI for the RIM BlackBerry Handheld
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the top level Barry Desktop GUI management
 application for backups, modem operation, device data migration,
 and desktop editing of database records via the GUI (Address Book,
 Calendar, Tasks, Memos).

Package: barrydesktop-dbg
Section: debug
Priority: extra
Architecture: any
Depends: barrydesktop (= ${binary:Version}), ${misc:Depends}
Description: Desktop Panel GUI for the RIM BlackBerry Handheld (debug symbols)
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the debug files for the Barry desktop found in the
 barrydesktop package.

Package: barry-doc
Section: doc
Architecture: all
Depends: ${misc:Depends}
Description: End user documentation for Barry Desktop and utilities
 Barry is a GPL C++ library for interfacing with the RIM BlackBerry Handheld.
 .
 This package contains the end-user HTML documentation that comes with the
 source code and which is also the basis for the documentation available
 online at http://netdirect.ca/barry.  This package does not include the
 doxygen documentation.

