gpsd: make changes suggested by xtraeme
This commit is contained in:
parent
13b37452de
commit
3e305accc7
1 changed files with 14 additions and 23 deletions
|
@ -4,17 +4,15 @@ version=3.15
|
||||||
revision=1
|
revision=1
|
||||||
build_style=scons
|
build_style=scons
|
||||||
patch_args=-p1
|
patch_args=-p1
|
||||||
make_build_args="dbus_export=0 gpsd_user=gpsd gpsd_group=gpsd sbindir=/usr/bin udevdir=/usr/lib/udev"
|
make_build_args="dbus_export=0 gpsd_user=gpsd gpsd_group=gpsd sbindir=/usr/bin udevdir=/usr/lib/udev CC=${CC}"
|
||||||
make_install_args="${make_build_args}"
|
make_install_args="${make_build_args} udev_install"
|
||||||
short_desc="A GPS/AIS receiver monitoring daemon"
|
short_desc="A GPS/AIS receiver monitoring daemon"
|
||||||
maintainer="uriahheep <uriahheep@gmail.com>"
|
maintainer="uriahheep <uriahheep@gmail.com>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
homepage="http://www.catb.org/gpsd/"
|
homepage="http://www.catb.org/gpsd/"
|
||||||
distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}.tar.gz"
|
distfiles="http://download-mirror.savannah.gnu.org/releases/gpsd/gpsd-${version}.tar.gz"
|
||||||
checksum="81c89e271ae112313e68655ab30d227bc38fe7841ffbff0f1860b12a9d7696ea"
|
checksum="81c89e271ae112313e68655ab30d227bc38fe7841ffbff0f1860b12a9d7696ea"
|
||||||
system_groups="gpsd"
|
|
||||||
system_accounts="gpsd"
|
system_accounts="gpsd"
|
||||||
gpsd_pgroup="gpsd"
|
|
||||||
|
|
||||||
depends="virtual?ntp-daemon ncurses libusb libcap libbluetooth pps-tools"
|
depends="virtual?ntp-daemon ncurses libusb libcap libbluetooth pps-tools"
|
||||||
hostmakedepends="scons pkg-config bc python libxslt xmlto asciidoc"
|
hostmakedepends="scons pkg-config bc python libxslt xmlto asciidoc"
|
||||||
|
@ -22,9 +20,15 @@ makedepends="libudev-devel ntp libusb-devel python-devel pygtk-devel ncurses-dev
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) :;;
|
*-musl) :;;
|
||||||
|
arm*) make_build_args+=" python=0" ;;
|
||||||
*) hostmakedepends+=" qt-devel" ;;
|
*) hostmakedepends+=" qt-devel" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
subpackages="gpsd-devel gpsd-python gpsd-xgps"
|
||||||
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
|
subpackages+=" gpsd-qt gpsd-qt-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
unset CPPFLAGS
|
unset CPPFLAGS
|
||||||
}
|
}
|
||||||
|
@ -33,11 +37,7 @@ pre_install() {
|
||||||
export DESTDIR=${DESTDIR}
|
export DESTDIR=${DESTDIR}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
post_install() {
|
||||||
scons ${makejobs} CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" \
|
|
||||||
CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS" \
|
|
||||||
prefix=/usr destdir=${DESTDIR} DESTDIR=${DESTDIR} \
|
|
||||||
${make_install_args} udev-install
|
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
vlicense AUTHORS
|
vlicense AUTHORS
|
||||||
}
|
}
|
||||||
|
@ -73,12 +73,7 @@ gpsd-qt_package() {
|
||||||
short_desc+=" - Qt bindings"
|
short_desc+=" - Qt bindings"
|
||||||
depends="qt ${sourcepkg}>=${version}_${revision}"
|
depends="qt ${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) :;;
|
|
||||||
arm*) :;;
|
|
||||||
*)
|
|
||||||
vmove usr/lib/libQgpsmm.so.* ;;
|
vmove usr/lib/libQgpsmm.so.* ;;
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,14 +81,10 @@ gpsd-qt-devel_package() {
|
||||||
short_desc+=" - Qt development files"
|
short_desc+=" - Qt development files"
|
||||||
depends="qt-devel ${sourcepkg}-devel>=${version}_${revision}"
|
depends="qt-devel ${sourcepkg}-devel>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) :;;
|
|
||||||
*)
|
|
||||||
vmove usr/lib/libQgpsmm.so
|
vmove usr/lib/libQgpsmm.so
|
||||||
vmove usr/lib/pkgconfig/Qgpsmm.pc
|
vmove usr/lib/pkgconfig/Qgpsmm.pc
|
||||||
vmove usr/lib/libQgpsmm.prl
|
vmove usr/lib/libQgpsmm.prl
|
||||||
vmove usr/share/man/man3/libQgpsmm.3 ;;
|
vmove usr/share/man/man3/libQgpsmm.3 ;;
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue