Hacking libsdl

Nathan Brazil nb at saltybanana.com
Fri Mar 16 07:22:36 PDT 2007


Yes, Yves.  Bad copy/paste on my part.

So, I made the following change to libsdl's Portfile:

      47 platform darwin 8 {
      48     patchfiles patch-configure
      49     configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0  
CXX=/usr/bin/g++-4.0 -Dmain=SDL_main
      50     build.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/ 
usr/bin/g++-4.0

But when I tried to install libsdl, I got the following error:

# port install libsdl
Portfile changed since last build; discarding previous state.
--->  Fetching libsdl
--->  Verifying checksum(s) for libsdl
--->  Extracting libsdl
--->  Applying patches to libsdl
--->  Configuring libsdl
Error: Target com.apple.configure returned: configure failure: shell  
command "cd "/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_devel_libsdl/work/SDL-1.2.11" && CC=/usr/bin/gcc-4.0 CPP=/usr/ 
bin/cpp-4.0 CXX=/usr/bin/g++-4.0 CFLAGS=-Dmain=SDL_main ./configure -- 
prefix=/opt/local --enable-shared --mandir=/opt/local/share/man"  
returned error 77
Command output: checking build system type... powerpc-apple-darwin8.7.0
checking host system type... powerpc-apple-darwin8.7.0
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... configure: error:  
C compiler cannot create executables
See `config.log' for more details.

What did I do wrong?

--

On Mar 8, 2007, at 2:23 PM, Yves de Champlain wrote:

>
> Le 07-03-08 à 14:01, Nathan Brazil a écrit :
>
>> Hi.  I am trying to hack the Portfile for libsdl so that I can add  
>> the following argument to CC:
>>
>> 	-D-Dmain=SDL_main
>>
>> Can someone please show me how to do this?
>
> This is defined as a CFLAGS in configure.env
>
> However, are you sure it is not -Dmain=SDL_main ?
>
> yves
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070316/b75c10c3/attachment.html


More information about the macports-users mailing list