Package Details: libfyba 4.1.1-2

Git Clone URL: https://aur.archlinux.org/libfyba.git (read-only)
Package Base: libfyba
Description: Library for reading and writing to the national Norwegian geographical SOSI-format
Upstream URL: https://github.com/kartverket/fyba
Keywords: library openstreetmap
Licenses: custom
Submitter: ekkelett
Maintainer: ekkelett
Last Packager: ekkelett
Votes: 1
Popularity: 0.000000
First Submitted: 2015-04-20 06:28
Last Updated: 2015-06-09 06:01

Latest Comments

hinerk commented on 2017-06-19 20:19

I had a little struggle with compiling this one. Reason for failing to build seems to be the redefinition of min and max, which does not only takes affect on the source - it does also overwrite the use of min/max in all included system libraries. Since I have only rudimentary knowledge regarding C++, I hacked arround by letting the preprocessor run over the source and then removing the define sections in the source code. This results in the following build() block in my PKGBUILD:

build() {
cd "fyba-${pkgver}"
sed '1,/LICENSE/d' README > LICENSE
autoreconf --force --install
./configure --prefix=/usr
for i in $(grep -rlE '( |\()(min|max)\('|grep -vE 'fyut.h');do
g++ -E $i -I src/UT/ -I include/ > $i
done
for i in $(grep -rlE '( |\()(min|max)\('); do
sed -i -E 's/#define (min|max).+//g' $i
done
make
}

I also enabled staticlibs and libtools in /etc/makepkg.conf to create .a files, which I need to compile gdal with sosi support