Skip to content

Instantly share code, notes, and snippets.

@saiten
Last active May 11, 2016 14:04
Show Gist options
  • Save saiten/7431fca4f443559cf019 to your computer and use it in GitHub Desktop.
Save saiten/7431fca4f443559cf019 to your computer and use it in GitHub Desktop.
SwiffCore.podspec
Pod::Spec.new do |s|
s.name = "SwiffCore"
s.version = "1.0"
s.summary = ".swf parsing and rendering framework for Mac OS X and iOS"
s.homepage = "http://www.musictheory.net/"
s.author = "musictheory.net, LLC."
s.license = { :type => 'BSD', :file => 'license' }
s.platform = :ios, '7.0'
s.requires_arc = true
s.source_files = "Source/*.{h,m}"
s.library = 'xml2', 'z'
s.frameworks = 'CoreGraphics'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
s.source = { :git => "https://github.com/musictheory/SwiffCore.git" }
s.prepare_command = <<-CMD
sed -i "" 's/#import <Swiff\\(.*\\).h>/#import "Swiff\\1.h"/g' ./Source/*.h
sed -i "" '1i\\'$'\\n''#ifndef _SWIFFTYPES_H_'$'\\n' ./Source/SwiffTypes.h
sed -i "" '2i\\'$'\\n''#define _SWIFFTYPES_H_'$'\\n' ./Source/SwiffTypes.h
echo "#endif" >> ./Source/SwiffTypes.h
CMD
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment