Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/graphics
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25979

Added Files:
        vigra4.info vigra4.patch 
Log Message:
new pkg vigra4 1.9.0 adapted from fangism and Ben Hines older versions

--- NEW FILE: vigra4.info ---
Info3: <<
Package: vigra4
Version: 1.9.0
Revision: 4
Description: Computer Vision Library
License: OSI-Approved
### free to update and take over
Maintainer: Hanspeter Niederstrasser <nie...@users.sourceforge.net>
Depends: %N-shlibs (= %v-%r)
Conflicts: vigra
Replaces: vigra
BuildDepends: <<
        boost1.53.python27,
        cmake,
        doxygen,
        fftw3,
        fink-package-precedence,
        hdf5.8,
        ilmbase,
        libjpeg9,
        libopenexr6,
        libpng16,
        libtiff5,
        numpy-py27,
        python27,
        szip
<<
BuildDependsOnly: True
Source: http://hci.iwr.uni-heidelberg.de/vigra/vigra-%v-src.tar.gz
Source-MD5: b6155afe1ea967917d2be16d98a85404
SourceDirectory: vigra-%v
PatchFile: %n.patch
PatchFile-MD5: b418db0a9453d614ed37f0b020d1ed9b
SetCC: gcc -MD
SetCXX: g++ -MD
GCC: 4.0
CompileScript: <<
        #!/bin/sh -ev
        mkdir -p finkbuild
        pushd finkbuild
        cmake \
                -DCMAKE_VERBOSE_MAKEFILE=ON \
                -DCMAKE_INSTALL_PREFIX=%p \
                -DCMAKE_INSTALL_NAME_DIR=%p/lib \
                -DCMAKE_INCLUDE_PATH=%p/include \
                -DCMAKE_LIBRARY_PATH=%p/lib \
                -DPYTHON_EXECUTABLE:FILEPATH=%p/bin/python2.7 \
                -DWITH_OPENEXR:BOOL=TRUE \
                -DCMAKE_BUILD_TYPE=Release \
                -DBUILD_SHARED_LIBS=ON \
                -DDOCINSTALL:STRING=share/doc \
                -DWITH_VIGRANUMPY=ON \
                ..
        make -w
        fink-package-precedence --prohibit-bdep=%n --depfile-ext='\.d' .
        popd
<<
InfoTest: <<
        TestScript: <<
                #!/bin/sh -ev
                pushd finkbuild
                make check || exit 2
                make test || exit 2
                popd
        <<
<<
InstallScript: <<
        #!/bin/sh -ev
        pushd finkbuild
        make DESTDIR=%d install
        mv %i/share/doc/vigra %i/share/doc/vigra-%v
        mv %i/share/doc/vigranumpy %i/share/doc/vigranumpy-%v
        popd
<<
DocFiles: LICENSE.txt README.txt
SplitOff: <<
        Package: %N-doc
        Files: <<
                share/doc/vigra-%v
                share/doc/vigranumpy-%v
        <<
        Description: Documentation for vigra libraries
<<
SplitOff2: <<
        Package: %N-shlibs
        Depends: <<
                hdf5.8-shlibs,
                ilmbase-shlibs,
                libjpeg9-shlibs,
                libopenexr6-shlibs,
                libpng16-shlibs,
                libtiff5-shlibs,
                szip-shlibs
        <<
        Files: <<
                lib/libvigraimpex.4.190.dylib
                lib/libvigraimpex.4.dylib
        <<
        Shlibs: %p/lib/libvigraimpex.4.dylib 4.0.0 %n (>= 1.9.0-1)
        Description: Shared libraries for vigra package
        DocFiles: LICENSE.txt README.txt
<<
SplitOff3: <<
        Package: vigra-py27
        Depends: <<
                %N-shlibs (= %v-%r),
                boost1.53.python27-shlibs,
                fftw3-shlibs,
                hdf5.8-shlibs,
                ilmbase-shlibs,
                libjpeg9-shlibs,
                libopenexr6-shlibs,
                libpng16-shlibs,
                libtiff5-shlibs,
                numpy-py27,
                python27,
                szip-shlibs
        <<
        Files: <<
                lib/python2.7
        <<
        Description: Python binding for vigra package
        DocFiles: LICENSE.txt README.txt
<<
Homepage: http://kogs-www.informatik.uni-hamburg.de/~koethe/vigra/
DescDetail: <<
VIGRA stands for "Vision with Generic Algorithms". It's a novel computer
vision library that puts its main emphasize on customizable algorithms
and data structures. By using template techniques similar to those in
the C++  Standard Template Library, you can easily adapt any VIGRA
component to the needs of your application, without thereby giving up
execution speed.
<<
DescPackaging: <<
Based on David Fang's vigra-1.8, which was based on Ben Hines'
vigra (1.4).

Only packaged python27 vigra-py as I could find no way to just build 
the python module by itself.
<<
<<

--- NEW FILE: vigra4.patch ---
diff -ruN vigra-1.9.0-orig/config/FindVIGRANUMPY_DEPENDENCIES.cmake 
vigra-1.9.0/config/FindVIGRANUMPY_DEPENDENCIES.cmake
--- vigra-1.9.0-orig/config/FindVIGRANUMPY_DEPENDENCIES.cmake   2012-11-06 
07:34:42.000000000 -0500
+++ vigra-1.9.0/config/FindVIGRANUMPY_DEPENDENCIES.cmake        2013-02-07 
07:11:40.000000000 -0500
@@ -32,10 +32,10 @@
         execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
                          "import sys; print sys.exec_prefix"
                           OUTPUT_VARIABLE PYTHON_PREFIX 
OUTPUT_STRIP_TRAILING_WHITESPACE)
-        SET(PYTHON_LIBRARY "${PYTHON_PREFIX}/Python"
+        SET(PYTHON_LIBRARY 
"${PYTHON_PREFIX}/lib/python2.7/config/libpython2.7.dylib"
             CACHE FILEPATH "Python library"
             FORCE)
-        SET(PYTHON_LIBRARIES "${PYTHON_PREFIX}/Python"
+        SET(PYTHON_LIBRARIES 
"${PYTHON_PREFIX}/lib/python2.7/config/libpython2.7.dylib"
             CACHE FILEPATH "Python libraries"
             FORCE)
     ELSE()
diff -ruN vigra-1.9.0-orig/vigranumpy/src/core/CMakeLists.txt 
vigra-1.9.0/vigranumpy/src/core/CMakeLists.txt
--- vigra-1.9.0-orig/config/VIGRA_ADD_NUMPY_MODULE.cmake        2012-11-06 
07:34:42.000000000 -0500
+++ vigra-1.9.0/config/VIGRA_ADD_NUMPY_MODULE.cmake     2013-02-09 
17:08:34.000000000 -0500
@@ -49,7 +49,7 @@
         set(LIBRARY_NAME ${target})
     ENDIF()
 
-    ADD_LIBRARY(${TARGET_NAME} SHARED ${SOURCES})    
+    ADD_LIBRARY(${TARGET_NAME} MODULE ${SOURCES})    
     
     IF(PART_OF_VIGRANUMPY)
         ADD_DEPENDENCIES(vigranumpy ${TARGET_NAME})


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to