From: <ma...@us...> - 2004-01-10 23:02:00
|
Update of /cvsroot/sharedaemon/ui-wx In directory sc8-pr-cvs1:/tmp/cvs-serv7356 Modified Files: Makefile.am configure Added Files: Info.plist PkgInfo Log Message: Applied patch [ 871350 ] Added creation of the wxInterface.app package for Mac OS X --- NEW FILE: Info.plist --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>torrent</string> </array> <key>CFBundleTypeIconFile</key> <string>torrent.icns</string> <key>CFBundleTypeMIMETypes</key> <array> <string>application/x-bittorrent</string> </array> <key>CFBundleTypeName</key> <string>BitTorrent Metainfo File</string> <key>CFBundleTypeOSTypes</key> <array> <string>BTMF</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> </array> <key>CFBundleExecutable</key> <string>wxInterface</string> <key>CFBundleGetInfoString</key> <string>wxInterface 0.2.0</string> <key>CFBundleIconFile</key> <string>wxInterface.icns</string> <key>CFBundleIdentifier</key> <string>wxInterface</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>wxInterface</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>0.2.0</string> <key>CFBundleSignature</key> <string>BTBC</string> <key>CFBundleVersion</key> <string>0.2.0</string> <key>NSMainNibFile</key> <string>MainMenu</string> <key>NSPrincipalClass</key> <string>NSApplication</string> </dict> </plist> --- NEW FILE: PkgInfo --- APPLBTBC Index: Makefile.am =================================================================== RCS file: /cvsroot/sharedaemon/ui-wx/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Makefile.am 12 Dec 2003 08:37:48 -0000 1.1 +++ Makefile.am 10 Jan 2004 23:01:57 -0000 1.2 @@ -1,5 +1,7 @@ all: @cd src && make all +dist: + @cd src && make dist clean: @cd src && make clean distclean: Index: configure =================================================================== RCS file: /cvsroot/sharedaemon/ui-wx/configure,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- configure 2 Jan 2004 13:42:10 -0000 1.18 +++ configure 10 Jan 2004 23:01:57 -0000 1.19 @@ -55,6 +55,9 @@ OpenBSD) system=BSD; ;; + Darwin) + system=Darwin + ;; SunOS) system=SunOS; ;; @@ -471,8 +474,30 @@ " src/Makefile.am >> src/Makefile; } - - +add_dist_rule () { +echo "" >> src/Makefile; +echo -e "dist:" >> src/Makefile; + case $system in + Darwin) + echo ' @echo "creating src/wxInterface.app";' >> src/Makefile + echo ' @if test -d ./wxinterface.app; then \' >> src/Makefile + echo ' echo -e "$(ATTENTIONCOLOR)wxInterface.app already exists, \' >> src/Makefile + echo ' remove this directory and try again"; \' >> src/Makefile + echo ' else \' >> src/Makefile + echo ' mkdir ./wxInterface.app; \' >> src/Makefile + echo ' mkdir ./wxInterface.app/Contents; \' >> src/Makefile + echo ' mkdir ./wxInterface.app/Contents/MacOS; \' >> src/Makefile + echo ' mkdir ./wxInterface.app/Contents/Resources; \' >> src/Makefile + echo ' cp ../Info.plist ./wxInterface.app/Contents/Info.plist; \' >> src/Makefile + echo ' cp ../PkgInfo ./wxInterface.app/Contents/PkgInfo; \' >> src/Makefile + echo ' cp -R ./images ./wxInterface.app/Contents/Resources/images; \' >> src/Makefile + echo ' cp -R ./lang ./wxInterface.app/Contents/Resources/lang; \' >> src/Makefile + echo ' cp ./wxInterface ./wxInterface.app/Contents/MacOS/wxInterface; \' >> src/Makefile + echo ' fi' >> src/Makefile + echo ' @echo -e "Successfully created $(OUTPUTCOLOR)wxInterface.app";' >> src/Makefile + ;; + esac +} ## # Outputs error message about too old wxWindows library and exits with false. @@ -524,5 +549,6 @@ check_gtkconfig; check_ccache; gen_makefile; +add_dist_rule; echo -e "configure complete. Now type ${colour_output}make${colour_default} and pray."; |