Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs
In directory vz-cvs-3.sog:/tmp/cvs-serv7459

Modified Files:
        openni.info 
Log Message:
updated to work for building openni-sensor-primesense against it

Index: openni.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/openni.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- openni.info 18 Jan 2012 16:12:50 -0000      1.1
+++ openni.info 19 Jan 2012 19:35:21 -0000      1.2
@@ -2,7 +2,7 @@
 # TODO build and link against libjpeg-turbo
 Package: openni
 Version: 1.5.2.23
-Revision: 1
+Revision: 2
 Homepage: http://www.openni.org
 License: GPL3+
 Maintainer: Hans-Christoph Steiner <h...@eds.org>
@@ -13,14 +13,18 @@
 SourceRename: OpenNI-OpenNI-Stable-%v-0-g1516074.tar.gz
 SourceDirectory: OpenNI-OpenNI-1516074
 #
-BuildDepends: fink (>= 0.28), libusb1, doxygen, graphviz
-Depends: darwin (>= 9-1),  %n-shlibs (= %v-%r)
+BuildDepends: fink (>= 0.28), libusb1, doxygen, graphviz, freeglut
+Depends: darwin (>= 10-1),  %n-shlibs (= %v-%r), freeglut-shlibs
 BuildDependsOnly: true
 #
-CompileScript: <<
+PatchScript: <<
   sed -i 's|/opt/local|%p|' %b/Platform/Linux/Build/OpenNI/Makefile
-  sed -i 's|CFLAGS += -arch i386 -arch x86_64||' 
%b/Platform/Linux/Build/Common/Platform.x86
-  sed -i 's|LDFLAGS += -arch i386 -arch x86_64||' 
%b/Platform/Linux/Build/Common/Platform.x86
+  sed -i 's|-arch i386 -arch x86_64|-DXN_OPEN_NI_FILES_LOCATION=%p/etc/ni|' \
+      %b/Platform/Linux/Build/Common/Platform.x86
+  sed -i 's|-arch i386 -arch x86_64||' \
+      %b/Platform/Linux/Build/Common/Platform.x86
+<<
+CompileScript: <<
   make -C %b/Platform/Linux/Build
   mkdir %b/Source/DoxyGen/html
   cd %b/Source/DoxyGen/ && doxygen
@@ -40,16 +44,30 @@
             %b/Platform/Linux/Bin/x86-Release/libnimMockNodes.dylib \
             %b/Platform/Linux/Bin/x86-Release/libnimRecorder.dylib \
             %i/lib
+        # update library names to installed location
         install_name_tool -id %p/lib/libOpenNI.dylib  %i/lib/libOpenNI.dylib
         install_name_tool -id %p/lib/libOpenNI.jni.dylib  
%i/lib/libOpenNI.jni.dylib
         install_name_tool -id %p/lib/libnimCodecs.dylib  
%i/lib/libnimCodecs.dylib
         install_name_tool -id %p/lib/libnimMockNodes.dylib  
%i/lib/libnimMockNodes.dylib
         install_name_tool -id %p/lib/libnimRecorder.dylib  
%i/lib/libnimRecorder.dylib
+        # update links to point to installed location
+        install_name_tool -change ../../Bin/x86-Release/libOpenNI.dylib 
%p/lib/libOpenNI.dylib \
+            %i/lib/libOpenNI.dylib
+        install_name_tool -change ../../Bin/x86-Release/libOpenNI.dylib 
%p/lib/libOpenNI.dylib \
+            %i/lib/libOpenNI.jni.dylib
+        install_name_tool -change ../../Bin/x86-Release/libOpenNI.dylib 
%p/lib/libOpenNI.dylib \
+            %i/lib/libnimCodecs.dylib
+        install_name_tool -change ../../Bin/x86-Release/libOpenNI.dylib 
%p/lib/libOpenNI.dylib \
+            %i/lib/libnimMockNodes.dylib
+        install_name_tool -change ../../Bin/x86-Release/libOpenNI.dylib 
%p/lib/libOpenNI.dylib \
+            %i/lib/libnimRecorder.dylib
+        # just copy the Include contents since its got a tricky, ever-changing 
setup
        install -d %i/include/ni
-       install -p %b/Include/*.h  %i/include/ni
-       install -p %b/Include/MacOSX/*.h  %i/include/ni
+       /bin/cp -pR %b/Include/*  %i/include/ni/
+        # create empty dirs for other related packages to use
        install -d %i/var/lib/ni
        install -d %i/etc/primesense
+        install -d %i/var/log/primesense
 <<
 DocFiles: CHANGES GPL.txt LGPL.txt README Documentation/OpenNI_UserGuide.pdf 
Documentation/OpenNI.chm %b/Source/DoxyGen/html
 Description: Sensor-based Natural Interaction framework


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to