> I think (hope?) the installer is doing everything correctly here.

The installer isn't doing everything correctly for me. It puts stuff in
site-packages rather than in site-packages/libavg.

Here's a patch that fixes the installer for me. I know very little about mac
installation, but these changes allowed me to build a libavg.pkg that installed
things in the right places.

Index: MakeMacDist.sh
===================================================================
--- MakeMacDist.sh      (revision 2311)
+++ MakeMacDist.sh      (working copy)
@@ -4,7 +4,7 @@
 set -x
 
 export VERSION=0.7.0
-export INSTALL_PATH="/Library/Python/2.3/site-packages"
+export INSTALL_PATH="/Library/Python/2.3/site-packages/libavg"
 
 fixLib()
 {
@@ -14,7 +14,7 @@
 
 distLib()
 {
-    cp -v ../lib/$1.dylib ./avg
+    cp -v ../../lib/$1.dylib ./avg
     install_name_tool -change $AVG_PATH//lib/$1.dylib
$INSTALL_PATH/avg/$1.dylib avg.0.so
     fixLib ../avg.0.so $1
 }
@@ -36,10 +36,12 @@
 cd ../dist
 
 rm -rf *
+mkdir libavg
+cd libavg
 mkdir avg
 mkdir avg/test
 
-cp -Rv ../lib/python2.3/site-packages/libavg/ .
+cp -Rv ../../lib/python2.3/site-packages/libavg/ .
 
 distLib libMagick++.10
 distLib libWand.10
@@ -48,15 +50,15 @@
 fixLib libMagick++.10.dylib libMagick.10
 fixLib libWand.10.dylib libMagick.10
 
-cd ../libavg
+cd ../../libavg
 
-cp src/avgrc ${AVG_PATH}/dist/avg/
-cp ../bin/fc-cache ${AVG_PATH}/dist/avg/
+cp src/avgrc ${AVG_PATH}/dist/libavg/avg/
+cp ../bin/fc-cache ${AVG_PATH}/dist/libavg/avg/
 
 cd src/test
-cp -Rv Test.py *.avg *.png *.jpg *.tif *.py *.mov *.mpg *.avi *.h264
${AVG_PATH}/dist/avg/test
-mkdir ${AVG_PATH}/dist/avg/test/baseline
-cp baseline/* ${AVG_PATH}/dist/avg/test/baseline
+cp -Rv Test.py *.avg *.png *.jpg *.tif *.py *.mov *.mpg *.avi *.h264
${AVG_PATH}/dist/libavg/avg/test
+mkdir ${AVG_PATH}/dist/libavg/avg/test/baseline
+cp baseline/* ${AVG_PATH}/dist/libavg/avg/test/baseline
 cd ../..
 
 /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
-build -proj mac/libavg.pmproj -v -p libavg.pkg


For anyone else who wants to build a mac installer, I'll also note that I had to
change libavg.pmproj to change the paths of things like the welcome message to
relative paths rather than absolute paths. I'm not including a diff here since
this is a binary file, but I'd be happy to make my changed copy available to
anyone who's interested.

Thanks!

-Amos



_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users

Reply via email to