Package Details: libfyba 4.1.1-2

Git Clone URL: (read-only, click to copy)
Package Base: libfyba
Description: Library for reading and writing to the national Norwegian geographical SOSI-format
Upstream URL:
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}"
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
for i in $(grep -rlE '( |\()(min|max)\('); do
sed -i -E 's/#define (min|max).+//g' $i

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