Ticket #26205: makeicns-brad.diff
File makeicns-brad.diff, 2.1 KB (added by pixilla (Bradley Giesbrecht), 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 32 build.target 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 33 45 build.env CC=${configure.cc} \ 34 CXX=${configure.cxx} 46 CXX=${configure.cxx} \ 47 CFLAGS="${configure.cflags} ${archflags}" \ 48 CXXFLAGS="${configure.cxxflags} ${archflags}" \ 49 LDFLAGS="[join ${configure.ldflags}] ${archflags}" 35 50 36 51 destroot { 37 52 xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name} -
files/patch-Makefile.diff
1 --- Makefile.orig 2010-08-24 07:48:45.000000000 -0700 2 +++ Makefile 2010-08-24 07:50:43.000000000 -0700 3 @@ -1,9 +1,11 @@ 4 -CFLAGS = -fpascal-strings -O2 -arch ppc -arch i386 5 +CFLAGS += -fpascal-strings 6 7 .PHONY: clean dist 8 9 +all: makeicns 10 + 11 makeicns: makeicns.o IconFamily.o NSString+CarbonFSRefCreation.o 12 - $(CXX) -o $@ $^ -O2 -arch ppc -arch i386 \ 13 + $(CXX) -o $@ $^ $(CXXFLAGS) $(LDFLAGS) \ 14 -framework Foundation -framework AppKit -framework Carbon 15 16 clean: