2015-09-18 02:04:30 +02:00
|
|
|
# Template file for 'gpsd'
|
|
|
|
pkgname=gpsd
|
2016-01-12 08:41:29 +01:00
|
|
|
version=3.16
|
|
|
|
revision=1
|
2015-09-18 02:04:30 +02:00
|
|
|
build_style=scons
|
|
|
|
patch_args=-p1
|
2015-09-18 07:46:37 +02:00
|
|
|
make_build_args="dbus_export=0 gpsd_user=gpsd gpsd_group=gpsd sbindir=/usr/bin udevdir=/usr/lib/udev CC=${CC}"
|
2015-09-18 08:02:31 +02:00
|
|
|
make_install_args="${make_build_args}"
|
2015-09-18 08:05:46 +02:00
|
|
|
make_install_target="udev-install"
|
2015-09-18 02:04:30 +02:00
|
|
|
short_desc="A GPS/AIS receiver monitoring daemon"
|
|
|
|
maintainer="uriahheep <uriahheep@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://www.catb.org/gpsd/"
|
|
|
|
distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}.tar.gz"
|
2016-01-12 08:41:29 +01:00
|
|
|
checksum="03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029"
|
2015-09-18 02:04:30 +02:00
|
|
|
system_accounts="gpsd"
|
|
|
|
|
2016-01-12 08:41:29 +01:00
|
|
|
hostmakedepends="scons pkg-config bc python libxslt xmlto asciidoc ncurses"
|
2016-03-22 10:39:45 +01:00
|
|
|
makedepends="eudev-libudev-devel ntp libusb-devel ncurses-devel pps-tools-devel libcap-devel libbluetooth-devel"
|
2015-09-18 02:04:30 +02:00
|
|
|
|
2015-09-18 07:50:54 +02:00
|
|
|
subpackages="gpsd-devel"
|
2015-09-18 07:46:37 +02:00
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2015-09-18 07:50:54 +02:00
|
|
|
subpackages+=" gpsd-python gpsd-xgps gpsd-qt gpsd-qt-devel"
|
2015-09-18 08:41:59 +02:00
|
|
|
makedepends+=" qt-devel python-devel"
|
2015-09-18 08:02:31 +02:00
|
|
|
else
|
|
|
|
make_build_args+=" python=0"
|
2015-09-18 07:46:37 +02:00
|
|
|
fi
|
|
|
|
|
2015-09-18 02:04:30 +02:00
|
|
|
pre_build() {
|
|
|
|
unset CPPFLAGS
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_install() {
|
|
|
|
export DESTDIR=${DESTDIR}
|
|
|
|
}
|
|
|
|
|
2015-09-18 07:46:37 +02:00
|
|
|
post_install() {
|
2015-09-20 00:21:30 +02:00
|
|
|
vsv gpsd
|
2015-09-18 04:25:49 +02:00
|
|
|
vlicense COPYING
|
|
|
|
vlicense AUTHORS
|
2015-09-18 02:04:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
gpsd-python_package() {
|
|
|
|
short_desc+=" - python tools/bindings"
|
|
|
|
depends="python gnuplot ${sourcepkg}>=${version}_${revision}"
|
|
|
|
pycompile_module="gpsd"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python2.7
|
|
|
|
vmove usr/bin/gegps
|
|
|
|
vmove usr/bin/gpscat
|
|
|
|
vmove usr/bin/gpsfake
|
|
|
|
vmove usr/bin/gpsprof
|
|
|
|
vmove usr/share/man/man1/gegps.1
|
|
|
|
vmove usr/share/man/man1/gpscat.1
|
|
|
|
vmove usr/share/man/man1/gpsfake.1
|
|
|
|
vmove usr/share/man/man1/gpsprof.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gpsd-xgps_package() {
|
|
|
|
short_desc+=" - PyGTK based clients"
|
|
|
|
depends="pygtk ${sourcepkg}-python>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/xgps
|
|
|
|
vmove usr/bin/xgpsspeed
|
|
|
|
vmove usr/share/man/man1/xgps*
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gpsd-qt_package() {
|
|
|
|
short_desc+=" - Qt bindings"
|
2015-09-18 09:08:18 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2015-09-18 02:04:30 +02:00
|
|
|
pkg_install() {
|
2015-09-18 07:50:54 +02:00
|
|
|
vmove usr/lib/libQgpsmm.so.*
|
2015-09-18 02:04:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gpsd-qt-devel_package() {
|
|
|
|
short_desc+=" - Qt development files"
|
|
|
|
depends="qt-devel ${sourcepkg}-devel>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
2015-09-18 07:46:37 +02:00
|
|
|
vmove usr/lib/libQgpsmm.so
|
|
|
|
vmove usr/lib/pkgconfig/Qgpsmm.pc
|
|
|
|
vmove usr/lib/libQgpsmm.prl
|
2015-09-18 07:50:54 +02:00
|
|
|
vmove usr/share/man/man3/libQgpsmm.3
|
2015-09-18 02:04:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gpsd-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2015-09-18 04:25:49 +02:00
|
|
|
vmove usr/lib/pkgconfig/libgps*.pc
|
|
|
|
vmove usr/lib/libgps.so
|
2015-09-18 02:04:30 +02:00
|
|
|
}
|
|
|
|
}
|