Ticket #26205: makeicns-ryandesign.diff
File makeicns-ryandesign.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
5 5 6 6 name makeicns 7 7 version 1.4 8 8 revision 1 9 9 categories graphics 10 10 maintainers techno.ms:mk-macports pixilla.com:brad 11 11 platforms darwin 12 12 supported_archs ppc i386 13 configure.universal_archs ppc i386 13 14 license MIT 14 15 15 16 description This program lets you convert all kinds of images to Apple's icns format on the command line. … … 27 28 sha1 592c2c17fb3ad6f7b480878a2c5764953b69c125 \ 28 29 rmd160 ccdfb493b63f19d508d3ef18aaad67b12c9eda70 29 30 31 patchfiles patch-Makefile.diff 32 30 33 use_configure no 31 34 35 variant universal {} 36 if {[variant_isset universal]} { 37 set archflags ${configure.universal_cflags} 38 } else { 39 set archflags ${configure.cc_archflags} 40 } 41 if {${configure.sdkroot} != ""} { 42 configure.ldflags-append "-isysroot ${configure.sdkroot}" 43 } 44 32 45 build.target 33 46 build.env CC=${configure.cc} \ 34 CXX=${configure.cxx} 47 CXX=${configure.cxx} \ 48 CFLAGS="${configure.cflags} ${archflags}" \ 49 CXXFLAGS="${configure.cxxflags} ${archflags}" \ 50 LDFLAGS="[join ${configure.ldflags}] ${archflags}" 35 51 36 52 destroot { 37 53 xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} -
files/patch-Makefile.diff
1 --- Makefile.orig 2010-05-19 16:20:17.000000000 -0500 2 +++ Makefile 2010-08-24 00:30:35.000000000 -0500 3 @@ -1,9 +1,9 @@ 4 -CFLAGS = -fpascal-strings -O2 -arch ppc -arch i386 5 +CFLAGS += -fpascal-strings 6 7 .PHONY: clean dist 8 9 makeicns: makeicns.o IconFamily.o NSString+CarbonFSRefCreation.o 10 - $(CXX) -o $@ $^ -O2 -arch ppc -arch i386 \ 11 + $(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS) \ 12 -framework Foundation -framework AppKit -framework Carbon 13 14 clean: