Ticket #17175: glew-universal.diff
File glew-universal.diff, 1.3 KB (added by arcata@…, 16 years ago) |
---|
-
dports/graphics/glew/Portfile
6 6 name glew 7 7 version 1.5.1 8 8 categories graphics devel 9 platforms darwin9 platforms macosx 10 10 maintainers jmr openmaintainer 11 11 description OpenGL Extension Wrangler Library 12 12 long_description The OpenGL Extension Wrangler Library (GLEW) is a \ … … 27 27 build.env GLEW_DEST=${prefix} 28 28 destroot.env GLEW_DEST=${destroot}${prefix} 29 29 30 variant universal { 31 set archs {} 32 foreach arch ${universal_archs} { 33 set archs "${archs} -arch ${arch}" 34 } 35 build.env-append "CFLAGS_EXTRA=\"${archs}\" LDFLAGS_EXTRA=\"${archs}\"" 36 } 37 30 38 pre-build { 31 39 # config.guess has CRLF line endings, which confuses sh 32 40 reinplace "s|\r||" ${worksrcpath}/config/config.guess 41 # makefile variable names with "." can't be set from the environment 42 reinplace "s|CFLAGS\.EXTRA|CFLAGS_EXTRA|" ${worksrcpath}/Makefile 43 reinplace "s|LDFLAGS\.EXTRA|LDFLAGS_EXTRA|" ${worksrcpath}/Makefile 44 # strip barfs on universal static libs 45 reinplace "s|strip|true|" ${worksrcpath}/Makefile 33 46 } 34 47 35 48 # ugh, why is configure.cc not available in the build phase?