Permalink
Browse files

Use the Erlang version

Build a 10.6 ready prefpane.

All in one commit for extra git-blame frustration. Sorry about that.
  • Loading branch information...
1 parent 49d013b commit 792b8b62b68b3cfe9416acf770f2c30790a788ca @mxcl committed Oct 18, 2009
View
@@ -1,3 +0,0 @@
-[submodule "playdar"]
- path = playdar
- url = git://github.com/mxcl/playdar.git
View
@@ -5,30 +5,34 @@
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
- <string>Playdar</string>
+ <string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>playdar.icns</string>
<key>CFBundleIdentifier</key>
<string>org.playdar</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
- <string>Playdar</string>
+ <string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
- <key>CFBundleVersion</key>
- <string>0.1.8</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
+ <key>CFBundleVersion</key>
+ <string>0.1.9</string>
<key>NSMainNibFile</key>
<string>main</string>
+ <key>NSPrefPaneIconFile</key>
+ <string>playdar.icns</string>
<key>NSPrefPaneIconLabel</key>
<string>Playdar</string>
<key>NSPrincipalClass</key>
<string>OrgPlaydarPreferencePane</string>
- <key>LSMinimumSystemVersion</key>
+ <key>CFBundleDisplayName</key>
<string>10.5.0</string>
- <key>SUEnableAutomaticChecks</key>
+ <key>SUEnalbeAutomaticChecks</key>
<true/>
<key>SUAllowsAutomaticUpdates</key>
<true/>
@@ -1,62 +0,0 @@
-d=$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_FOLDER_PATH)/../Daemon
-Resources=$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)
-INT=cd $(d) && $(SRCROOT)/Playdar.prefPane.xcodeproj/install_name_tool
-
-DYLIBS=$(d)/libboost_date_time.dylib $(d)/libboost_regex.dylib $(d)/libtag.1.dylib $(d)/libboost_filesystem.dylib $(d)/libboost_system.dylib $(d)/libboost_program_options.dylib $(d)/libboost_thread.dylib
-EXECUTABLES=$(d)/playdar $(d)/tagger $(d)/scanner
-PLUGINS=$(d)/plugins/audioscrobbler.resolver $(d)/plugins/local.resolver $(d)/plugins/api.resolver $(d)/plugins/boffin.resolver $(d)/plugins/lan.resolver
-
-# this is the only bit specific to my machine, please fix!
-BOOST_PREFIX=/usr/local/Cellar/boost/1.39.0
-TAGLIB_PREFIX=/usr/local/Cellar/taglib/1.5
-
-force: $(EXECUTABLES) $(DYLIBS) $(PLUGINS) $(d)/www
-clean:
- rm $(EXECUTABLES) $(DYLIBS) $(PLUGINS) $(d)/www
-
-$(d):
- mkdir -p $@
-
-$(d)/plugins: | $(d)
- mkdir $@
-$(d)/plugins/%.resolver: playdar/plugins/%.resolver | $(d)/plugins
- cp $< $@
- $(INT) plugins/$(@F)
-$(d)/playdar: playdar/bin/playdar | $(d)
- cp $< $@
- strip -SX $@
- $(INT) $@
-$(d)/tagger: playdar/bin/tagger | $(d)
- cp $< $@
- strip -SX $@
- $(INT) $@
-$(d)/scanner: playdar/bin/scanner | $(d)
- cp $< $@
- strip -SX $@
- $(INT) $@
-$(d)/www: playdar/www | $(d)
- rm -rf $@ && cp -R $< $@
-
-$(d)/libboost_date_time.dylib: $(BOOST_PREFIX)/lib/libboost_date_time.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libboost_regex.dylib: $(BOOST_PREFIX)/lib/libboost_regex.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libboost_filesystem.dylib: $(BOOST_PREFIX)/lib/libboost_filesystem.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libboost_system.dylib: $(BOOST_PREFIX)/lib/libboost_system.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libboost_program_options.dylib: $(BOOST_PREFIX)/lib/libboost_program_options.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libboost_thread.dylib: $(BOOST_PREFIX)/lib/libboost_thread.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-$(d)/libtag.1.dylib: $(TAGLIB_PREFIX)/lib/libtag.1.5.0.dylib | $(d)
- cp $< $@
- $(INT) $(@F)
-
-.PHONY: force clean
@@ -1,17 +0,0 @@
-#!/usr/bin/ruby
-require 'fileutils'
-
-lines=`otool -L #{ARGV[0]}`.split "\n"
-lines.shift #lose intro line
-
-FileUtils.chmod 0744, ARGV[0]
-
-if ARGV[0] =~ /\.(dylib|resolver)$/
- `install_name_tool -id @executable_path/#{ARGV[0]} #{ARGV[0]}`
- lines.shift
-end
-
-lines.each do |dylib|
- dylib=dylib.strip.split[0]
- `install_name_tool -change #{dylib} @executable_path/#{File.basename dylib} #{ARGV[0]}` unless dylib =~ %r[^/usr/lib] or dylib =~ %r[^/System]
-end
Oops, something went wrong.

0 comments on commit 792b8b6

Please sign in to comment.