Re: Hacking libsdl

2007-03-16 Thread Nathan Brazil

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




___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Hacking libsdl

2007-03-16 Thread David MacMahon

On Mar 16, 2007, at 7:22 , Nathan Brazil wrote:
checking for C compiler default output file name... configure:  
error: C compiler cannot create executables

See `config.log' for more details.


Does config.log provide any clues?  My guess would be a filesystem  
issue (insufficient permissions or no free space).


Dave

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Hacking libsdl

2007-03-08 Thread Nathan Brazil
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?

Thanks!

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Hacking libsdl

2007-03-08 Thread macports-users-owner

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



___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users