[ gpsdrive ] improvement to debian build rules

Hamish hamish_b at yahoo.com
Mon Jan 26 13:21:15 AKST 2009


Hamish:
> perhaps better:
> 
>     if dpkg -l libgda3-dev > /dev/null ; then
>        echo "have GDA3-dev"
>     else
>        echo "do not have GDA3-dev"
>     fi

umm, sorry that's broken, perhaps:

if [ `dpkg -l libgda2-dev 2> /dev/null | grep -c '^ii'` -ne 0 ] ; then


 
> also better would be to somehow follow the setting in
> DefineOptions.cmake instead of deciding based on what is
> installed (for users with the libgda3-dev package installed
> who do not want it in the build).

actually I think it does that already, you just have to be sure to
remove build/CMakeCache.txt and run 'debuild clean' after changing
DefineOptions.cmake. (just tested, I'm running etch so no libgda3-dev ii)

so simply this in debian/rules would be fine:

        cd build; cmake -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DMAN_INSTALL_DIR=/usr/share/man \
                -DINFO_INSTALL_DIR=/usr/share/info \
                -DDATADIR=/usr/share \
                ..


Hamish



      



More information about the GPSdrive mailing list