diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2010-08-03 10:26:57 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2010-08-03 10:26:57 +0000 |
commit | 214b06a42c3d7c239b4a04ea91486973892707ba (patch) | |
tree | afa55c4a92e026d48ee93107fc05d648ce9e4b8e /graphics/libecwj2/files/patch-configure.in | |
parent | Allows building executables simply from sbcl. (diff) |
Add graphics/libecwj2 that implements support for the JPEG2000 and
ECW image formats.
Submitted by: glebius
Notes
Notes:
svn path=/head/; revision=258676
Diffstat (limited to 'graphics/libecwj2/files/patch-configure.in')
-rw-r--r-- | graphics/libecwj2/files/patch-configure.in | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/libecwj2/files/patch-configure.in b/graphics/libecwj2/files/patch-configure.in new file mode 100644 index 000000000000..27d919fbe0eb --- /dev/null +++ b/graphics/libecwj2/files/patch-configure.in @@ -0,0 +1,42 @@ +--- configure.in.orig 2010-07-29 14:03:26.000000000 +0400 ++++ configure.in 2010-07-29 14:02:39.000000000 +0400 +@@ -32,17 +32,6 @@ + # Build some standard absolute include paths for the build + + MAIN_INCLUDE_DIR="$PWD/Source/include" +-LCMS_INCLUDE_DIR="$PWD/Source/C/NCSEcw/lcms/include" +- +-# Run configure in the LCMS directory (using LCMS's own configure script) +-# to initialise any platform dependent settings that it uses +-# (e.g. typedefs for int types) +- +-THISDIR=$PWD +-cd Source/C/NCSEcw/lcms +-chmod +x configure +-./configure +-cd $THISDIR + + # Build LIBECWJ2_DEFS with all defines, and NCSGnuSystemDefs.h with defines + # needed by apps building against libecwj2. +@@ -76,6 +65,12 @@ + PLATFORM_STATIC_LDFLAGS="$PLATFORM_STATIC_LDFLAGS -L/System/Library/Frameworks/Carbon.framework/Carbon" + PLATFORM_SHARED_LDFLAGS="$PLATFORM_SHARED_LDFLAGS $PLATFORM_STATIC_LDFLAGS -dynamiclib -single_module" + ;; ++ *freebsd*) ++ PLATFORM_DEFS="FREEBSD" ++ PLATFORM_CFLAGS="$PLATFORM_CFLAGS -fpic" ++ PLATFORM_STATIC_LDFLAGS="" ++ PLATFORM_SHARED_LDFLAGS="$PLATFORM_SHARED_LDFLAGS $PLATFORM_STATIC_LDFLAGS" ++ ;; + *) + PLATFORM_DEFS="" + PLATFORM_STATIC_LDFLAGS="" +@@ -89,7 +84,7 @@ + LIBECWJ2_CFLAGS="$PLATFORM_CFLAGS" + LIBECWJ2_STATIC_LDFLAGS="$PLATFORM_STATIC_LDFLAGS" + LIBECWJ2_SHARED_LDFLAGS="$PLATFORM_SHARED_LDFLAGS" +-LIBECWJ2_INCLUDES="-I$MAIN_INCLUDE_DIR -I$LCMS_INCLUDE_DIR" ++LIBECWJ2_INCLUDES="-I$MAIN_INCLUDE_DIR -I%%LOCALBASE%%/include" + + rm -f Source/NCSBuildGnu/NCSGnuSystemDefs.h + echo "#ifndef LIBECWJ2" > Source/NCSBuildGnu/NCSGnuSystemDefs.h |