User: pabs-guest Date: 06/03/31 12:26:58 Added: debian/patches 00list detect_endianness.dpatch Log: Add avce00 to the repository Revision Changes Path 1.1 avce00/debian/patches/00list CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/avce00/debian/patches/00list?annotate=1.1&cvsroot= CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/avce00/debian/patches/00list?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot= ----------------------------------- Index: 00list =================================================================== detect_endianness 1.1 avce00/debian/patches/detect_endianness.dpatch CVSWEB Options: ------------------- CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/avce00/debian/patches/detect_endianness.dpatch?annotate=1.1&cvsroot= CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/avce00/debian/patches/detect_endianness.dpatch?rev=1.1&content-type=text/x-cvsweb-markup&cvsroot= ----------------------------------- Index: detect_endianness.dpatch =================================================================== #! /bin/sh /usr/share/dpatch/dpatch-run ## detect_endianness.dpatch by Francesco P. Lovergine <[EMAIL PROTECTED]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Manage endianess automagically @DPATCH@ diff -urNad avce00-1.3.0~/GNUmakefile avce00-1.3.0/GNUmakefile --- avce00-1.3.0~/GNUmakefile 2006-03-31 19:59:07.000000000 +0800 +++ avce00-1.3.0/GNUmakefile 2006-03-31 20:01:54.000000000 +0800 @@ -42,7 +42,7 @@ # Select CPL_MSB for SUNs or other platforms with MSB first ordering. # # BYTE_ORDER_FL = -DCPL_MSB -BYTE_ORDER_FL = -DCPL_LSB +#BYTE_ORDER_FL = -DCPL_LSB # # In some cases, AVCE00DeleteCoverage() fails because the coverage directory diff -urNad avce00-1.3.0~/cpl_port.h avce00-1.3.0/cpl_port.h --- avce00-1.3.0~/cpl_port.h 2006-03-31 19:59:07.000000000 +0800 +++ avce00-1.3.0/cpl_port.h 2006-03-31 20:01:54.000000000 +0800 @@ -196,6 +196,7 @@ * This should be defined in the Makefile, but if it is not then * the default is CPL_LSB (Intel ordering, LSB first). *--------------------------------------------------------------------*/ +/* #if defined(WORDS_BIGENDIAN) && !defined(CPL_MSB) && !defined(CPL_LSB) # define CPL_MSB #endif @@ -203,6 +204,17 @@ #if ! ( defined(CPL_LSB) || defined(CPL_MSB) ) #define CPL_LSB #endif +*/ + +/* + * Manage endianess automagically - Francesco P. Lovergine <[EMAIL PROTECTED]> + */ +#include <endian.h> +#if __BYTE_ORDER == __LITTLE_ENDIAN +# define CPL_LSB +#elif __BYTE_ORDER == __BIG_ENDIAN +# define CPL_MSB +#endif /*--------------------------------------------------------------------- * Little endian <==> big endian byte swap macros.
_______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel