mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 05:29:47 -05:00
png2ico: works fine against system libpng
This commit is contained in:
1 parent
005243c212
commit
88f5b35f34
1 file changed
+7
-5
@@ -5,12 +5,14 @@ class Png2ico < Formula
|
||||
homepage 'http://www.winterdrache.de/freeware/png2ico/'
|
||||
md5 '9b663df81c826cd564638cba2e6bc75b'
|
||||
|
||||
depends_on 'libpng'
|
||||
|
||||
def install
|
||||
# comment out CPPFLAGS so libpng can add -I and -L flags properly
|
||||
inreplace 'Makefile', 'CPPFLAGS=-W -Wall -O2 -finline-functions', '#CPPFLAGS=-W -Wall -O2 -finline-functions'
|
||||
inreplace 'Makefile', '$(CPPFLAGS)', '$(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -W -Wall -O2 -finline-functions'
|
||||
ENV.x11 # For libpng
|
||||
# Remove hard-coded CPPFLAGS and replace with Homebrew's flags
|
||||
inreplace 'Makefile' do |s|
|
||||
s.remove_make_var! 'CPPFLAGS'
|
||||
s.gsub! '$(CPPFLAGS)', '$(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -finline-functions'
|
||||
end
|
||||
|
||||
system 'make'
|
||||
bin.install 'png2ico'
|
||||
man1.install 'doc/png2ico.1'
|
||||
|
||||
Reference in new issue
Block a user