Last active
May 11, 2016 14:04
-
-
Save saiten/7431fca4f443559cf019 to your computer and use it in GitHub Desktop.
SwiffCore.podspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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