2014-06-26 14:37:29 +00:00
|
|
|
# Template file for 'gpsbabel'
|
|
|
|
pkgname=gpsbabel
|
|
|
|
version=1.5.1
|
2014-09-25 08:58:39 +00:00
|
|
|
revision=2
|
2014-06-26 14:37:29 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
|
|
|
|
homepage="http://www.gpsbabel.org/"
|
|
|
|
license="GPL-2"
|
2014-06-28 15:04:27 +00:00
|
|
|
short_desc="Converts waypoints, tracks, and routes between popular GPS formats"
|
2014-09-25 08:58:39 +00:00
|
|
|
hostmakedepends="perl>=5.20 docbook-xml xmlwf offo-hyphenation"
|
2014-07-03 22:51:24 +00:00
|
|
|
makedepends="qt-devel libusb-compat-devel expat-devel libxml2-devel libxslt-devel"
|
2014-06-26 14:37:29 +00:00
|
|
|
distfiles="http://arch.p5n.pp.ru/~sergej/dl/2014/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum="3feec7d43ca6cb5393645fe0df893d9f7bf5334849fa8abd4c5c3ee775c8cac3"
|
|
|
|
|
2014-09-29 15:04:28 +00:00
|
|
|
#Error: JAVA_HOME is not defined correctly.
|
|
|
|
# We cannot execute /usr/lib/jvm/openjdk/bin/java
|
|
|
|
# Makefile:262: recipe for target 'gpsbabel.pdf' failed
|
|
|
|
broken=1
|
|
|
|
|
2014-06-26 14:37:29 +00:00
|
|
|
do_build(){
|
2014-09-29 14:59:17 +00:00
|
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
2014-06-26 14:37:29 +00:00
|
|
|
make
|
|
|
|
make doc
|
2014-07-03 22:51:24 +00:00
|
|
|
cd gui
|
2014-06-26 14:37:29 +00:00
|
|
|
qmake
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install(){
|
|
|
|
make install DESTDIR=${DESTDIR}
|
|
|
|
vmkdir usr/share/doc/${pkgname}
|
2014-06-30 14:10:47 +00:00
|
|
|
vcopy "README* AUTHORS COPYING gpsbabel.pdf gpsbabel-sample.ini guibabel style" usr/share/doc/${pkgname}
|
2014-06-26 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_clean() {
|
2014-06-28 15:04:27 +00:00
|
|
|
# Remove temporary stuff from masterdir
|
2014-07-03 22:51:24 +00:00
|
|
|
rm -rf ${XBPS_BUILDDIR}/babelweb
|
2014-06-26 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
gpsbabel-gui_package() {
|
|
|
|
short_desc+=" - Qt4 GUI"
|
2014-07-03 22:51:24 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision} desktop-file-utils"
|
2014-06-26 14:37:29 +00:00
|
|
|
pkg_install() {
|
2014-06-30 14:10:47 +00:00
|
|
|
vinstall ${wrksrc}/gui/gpsbabelfe 755 usr/bin
|
|
|
|
vinstall ${wrksrc}/gui/objects/gpsbabelfe-bin 755 usr/bin
|
2014-06-29 22:31:44 +00:00
|
|
|
vinstall ${wrksrc}/gui/gpsbabel.desktop 644 usr/share/applications
|
2014-07-01 15:17:22 +00:00
|
|
|
vinstall ${wrksrc}/gui/images/appicon.png 644 usr/share/pixmaps gpsbabel.png
|
2014-06-26 14:37:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|