Amos Latteier schrieb:
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.
Yes, you're right. I see it now. Thanks for the patch. I've fixed two
other things that break when the path changes (the tests couldn't find
the library and the font cache wasn't built on install) and built a new
mac ppc installer.
I haven't built a new intel mac installer because I don't have an intel
mac at the moment. I'll try to get access to one tomorrow, but if you
have a chance to build a new intel mac installer that includes the last
fixes and send the zip to me, that would save lots of hassle.
Cheers,
Uli
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
--
Ulrich von Zadow | +49-172-7872715 | [EMAIL PROTECTED]
_______________________________________________
libavg-users mailing list
[email protected]
https://mail.datenhain.de/mailman/listinfo/libavg-users