Re: [Fink-devel] Dependencies For New Package

2013-05-22 Thread Hanspeter Niederstrasser
On 5/22/2013 1:47 AM, Alexander Hansen wrote:
 On 5/21/13 8:44 PM, David Lowe wrote:
 On May 15, 2013, at 2:45 PM, Alexander Hansen wrote:

 1) OpenGL typically comes either via the OpenGL framework, or via X11. In 
 the former case, no dependency needs to be declared, because that comes 
 with the OS and we don't have a virtual package for it.  For the latter, 
 even though it ships with the OS on current versions, it's good to specify 
 Depends: x11-shlibs and BuildDepends: x11-dev, plus RuntimeDepends: x11 if 
 it displays in X11. (mesa is also a possibility, but I'd recommend not 
 going with that if you don't have to)

  As usual, thanks for the quick response.  Actually the project is 
 looking somewhat iffy, or maybe i'm just in over my head [also as usual].  
 SDL-Ball has a very rudimentary build system with no configure script.  The 
 author claims that on linux and Windows systems 'make' is all that's needed. 
  On OSX, however, the make immediately bombs out:

 Darlene-Lowes-Mac-mini:sdl-ball (300) $ make
 g++ -DDATADIR=\themes/\  main.o -lGL -lGLU `sdl-config --libs` 
 -lSDL_image -lSDL_ttf -lSDL_mixer -o sdl-ball
 ld: library not found for -lGL
 collect2: ld returned 1 exit status

  This is the entirety of the makefile:

 DATADIR?=themes/

 #append -DWITH_WIIUSE to compile with WIIUSE support!
 #append -DNOSOUND to compile WITHOUT sound support
 CC=g++ -DDATADIR=\$(DATADIR)\

 CFLAGS+=-c -Wall `sdl-config --cflags`

 #append -lwiiuse to compile with WIIUSE support
 #remove -lSDL_mixer if compiling with -DNOSOUND
 LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer

 SOURCES=main.cpp
 OBJECTS=$(SOURCES:.cpp=.o)

 EXECUTABLE=sdl-ball

 all: $(SOURCES) $(EXECUTABLE)
 
 $(EXECUTABLE): $(OBJECTS)
 $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@

 .cpp.o:
 $(CC) $(CFLAGS) $ -o $@

 clean:
 rm -f *.o sdl-ball

 remove:
 rm -R ~/.config/sdl-ball

  So i assume to make this work at all we'd have to hand-feed it the 
 appropriate flags, which i don't think i could manage without help.  I 
 looked at the diff from MacPorts, and the only relevant part seems to be: 
 export LDFLAGS=-Wl,-z,defs -Wl,--as-needed

 Sent from Darlene-Lowes-Mac-mini

 Zoe: First rule of battle, little one ... don't ever let them know where 
 you are.

 Mal: WHOO-HOO! I'M RIGHT HERE! I'M RIGHT HERE! YOU WANT SOME O' ME?! YEAH 
 YOU DO! COME ON! COME ON! AH! Whoo-hoo!

 Zoe: 'Course, there're other schools of thought.

 HmmMaybe Macports sets the X11 flags implicitly.

 I see a couple options to try here:

 1)  Try adding

   SetLDFLAGS: /usr/X11/lib

That should be -L/usr/X11/lib  (note -L )

 (and you might also include the stuff from Macports in that).

 2)  Patch Makefile to replace '-lGL -lGLU' with '-Wl,-framework,OpenGL'


Hanspeter


--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependencies For New Package

2013-05-22 Thread Alexander Hansen
On 5/22/13 3:09 AM, Hanspeter Niederstrasser wrote:
 On 5/22/2013 1:47 AM, Alexander Hansen wrote:
 On 5/21/13 8:44 PM, David Lowe wrote:
 On May 15, 2013, at 2:45 PM, Alexander Hansen wrote:

 1) OpenGL typically comes either via the OpenGL framework, or via X11. In 
 the former case, no dependency needs to be declared, because that comes 
 with the OS and we don't have a virtual package for it.  For the latter, 
 even though it ships with the OS on current versions, it's good to specify 
 Depends: x11-shlibs and BuildDepends: x11-dev, plus RuntimeDepends: x11 if 
 it displays in X11. (mesa is also a possibility, but I'd recommend not 
 going with that if you don't have to)

 As usual, thanks for the quick response.  Actually the project is 
 looking somewhat iffy, or maybe i'm just in over my head [also as usual].  
 SDL-Ball has a very rudimentary build system with no configure script.  The 
 author claims that on linux and Windows systems 'make' is all that's 
 needed.  On OSX, however, the make immediately bombs out:

 Darlene-Lowes-Mac-mini:sdl-ball (300) $ make
 g++ -DDATADIR=\themes/\  main.o -lGL -lGLU `sdl-config --libs` 
 -lSDL_image -lSDL_ttf -lSDL_mixer -o sdl-ball
 ld: library not found for -lGL
 collect2: ld returned 1 exit status

 This is the entirety of the makefile:

 DATADIR?=themes/

 #append -DWITH_WIIUSE to compile with WIIUSE support!
 #append -DNOSOUND to compile WITHOUT sound support
 CC=g++ -DDATADIR=\$(DATADIR)\

 CFLAGS+=-c -Wall `sdl-config --cflags`

 #append -lwiiuse to compile with WIIUSE support
 #remove -lSDL_mixer if compiling with -DNOSOUND
 LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer

 SOURCES=main.cpp
 OBJECTS=$(SOURCES:.cpp=.o)

 EXECUTABLE=sdl-ball

 all: $(SOURCES) $(EXECUTABLE)

 $(EXECUTABLE): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@

 .cpp.o:
$(CC) $(CFLAGS) $ -o $@

 clean:
rm -f *.o sdl-ball

 remove:
rm -R ~/.config/sdl-ball

 So i assume to make this work at all we'd have to hand-feed it the 
 appropriate flags, which i don't think i could manage without help.  I 
 looked at the diff from MacPorts, and the only relevant part seems to be: 
 export LDFLAGS=-Wl,-z,defs -Wl,--as-needed

 Sent from Darlene-Lowes-Mac-mini

 Zoe: First rule of battle, little one ... don't ever let them know where 
 you are.

 Mal: WHOO-HOO! I'M RIGHT HERE! I'M RIGHT HERE! YOU WANT SOME O' ME?! YEAH 
 YOU DO! COME ON! COME ON! AH! Whoo-hoo!

 Zoe: 'Course, there're other schools of thought.

 HmmMaybe Macports sets the X11 flags implicitly.

 I see a couple options to try here:

 1)  Try adding

  SetLDFLAGS: /usr/X11/lib

 That should be -L/usr/X11/lib  (note -L )

 (and you might also include the stuff from Macports in that).

 2)  Patch Makefile to replace '-lGL -lGLU' with '-Wl,-framework,OpenGL'


 Hanspeter



Oops, yeah, shouldn't try to set flags late at night. :-)


-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependencies For New Package

2013-05-21 Thread David Lowe
On May 15, 2013, at 2:45 PM, Alexander Hansen wrote:

 1) OpenGL typically comes either via the OpenGL framework, or via X11. In the 
 former case, no dependency needs to be declared, because that comes with the 
 OS and we don't have a virtual package for it.  For the latter, even though 
 it ships with the OS on current versions, it's good to specify Depends: 
 x11-shlibs and BuildDepends: x11-dev, plus RuntimeDepends: x11 if it displays 
 in X11. (mesa is also a possibility, but I'd recommend not going with that if 
 you don't have to)

As usual, thanks for the quick response.  Actually the project is 
looking somewhat iffy, or maybe i'm just in over my head [also as usual].  
SDL-Ball has a very rudimentary build system with no configure script.  The 
author claims that on linux and Windows systems 'make' is all that's needed.  
On OSX, however, the make immediately bombs out:

 Darlene-Lowes-Mac-mini:sdl-ball (300) $ make
 g++ -DDATADIR=\themes/\  main.o -lGL -lGLU `sdl-config --libs` 
 -lSDL_image -lSDL_ttf -lSDL_mixer -o sdl-ball
 ld: library not found for -lGL
 collect2: ld returned 1 exit status

This is the entirety of the makefile:

 DATADIR?=themes/
 
 #append -DWITH_WIIUSE to compile with WIIUSE support!
 #append -DNOSOUND to compile WITHOUT sound support
 CC=g++ -DDATADIR=\$(DATADIR)\
 
 CFLAGS+=-c -Wall `sdl-config --cflags`
 
 #append -lwiiuse to compile with WIIUSE support
 #remove -lSDL_mixer if compiling with -DNOSOUND
 LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
 
 SOURCES=main.cpp 
 OBJECTS=$(SOURCES:.cpp=.o)
 
 EXECUTABLE=sdl-ball
 
 all: $(SOURCES) $(EXECUTABLE)
   
 $(EXECUTABLE): $(OBJECTS)
   $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
 
 .cpp.o:
   $(CC) $(CFLAGS) $ -o $@
 
 clean:
   rm -f *.o sdl-ball
 
 remove:
   rm -R ~/.config/sdl-ball
 
So i assume to make this work at all we'd have to hand-feed it the 
appropriate flags, which i don't think i could manage without help.  I looked 
at the diff from MacPorts, and the only relevant part seems to be: export 
LDFLAGS=-Wl,-z,defs -Wl,--as-needed

Sent from Darlene-Lowes-Mac-mini

Zoe: First rule of battle, little one ... don't ever let them know where you 
are.

Mal: WHOO-HOO! I'M RIGHT HERE! I'M RIGHT HERE! YOU WANT SOME O' ME?! YEAH YOU 
DO! COME ON! COME ON! AH! Whoo-hoo!

Zoe: 'Course, there're other schools of thought.
--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependencies For New Package

2013-05-21 Thread Alexander Hansen
On 5/21/13 8:44 PM, David Lowe wrote:
 On May 15, 2013, at 2:45 PM, Alexander Hansen wrote:

 1) OpenGL typically comes either via the OpenGL framework, or via X11. In 
 the former case, no dependency needs to be declared, because that comes with 
 the OS and we don't have a virtual package for it.  For the latter, even 
 though it ships with the OS on current versions, it's good to specify 
 Depends: x11-shlibs and BuildDepends: x11-dev, plus RuntimeDepends: x11 if 
 it displays in X11. (mesa is also a possibility, but I'd recommend not going 
 with that if you don't have to)

   As usual, thanks for the quick response.  Actually the project is 
 looking somewhat iffy, or maybe i'm just in over my head [also as usual].  
 SDL-Ball has a very rudimentary build system with no configure script.  The 
 author claims that on linux and Windows systems 'make' is all that's needed.  
 On OSX, however, the make immediately bombs out:

 Darlene-Lowes-Mac-mini:sdl-ball (300) $ make
 g++ -DDATADIR=\themes/\  main.o -lGL -lGLU `sdl-config --libs` 
 -lSDL_image -lSDL_ttf -lSDL_mixer -o sdl-ball
 ld: library not found for -lGL
 collect2: ld returned 1 exit status

   This is the entirety of the makefile:

 DATADIR?=themes/

 #append -DWITH_WIIUSE to compile with WIIUSE support!
 #append -DNOSOUND to compile WITHOUT sound support
 CC=g++ -DDATADIR=\$(DATADIR)\

 CFLAGS+=-c -Wall `sdl-config --cflags`

 #append -lwiiuse to compile with WIIUSE support
 #remove -lSDL_mixer if compiling with -DNOSOUND
 LIBS+=-lGL -lGLU `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer

 SOURCES=main.cpp
 OBJECTS=$(SOURCES:.cpp=.o)

 EXECUTABLE=sdl-ball

 all: $(SOURCES) $(EXECUTABLE)
  
 $(EXECUTABLE): $(OBJECTS)
  $(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@

 .cpp.o:
  $(CC) $(CFLAGS) $ -o $@

 clean:
  rm -f *.o sdl-ball

 remove:
  rm -R ~/.config/sdl-ball

   So i assume to make this work at all we'd have to hand-feed it the 
 appropriate flags, which i don't think i could manage without help.  I looked 
 at the diff from MacPorts, and the only relevant part seems to be: export 
 LDFLAGS=-Wl,-z,defs -Wl,--as-needed

 Sent from Darlene-Lowes-Mac-mini

 Zoe: First rule of battle, little one ... don't ever let them know where you 
 are.

 Mal: WHOO-HOO! I'M RIGHT HERE! I'M RIGHT HERE! YOU WANT SOME O' ME?! YEAH 
 YOU DO! COME ON! COME ON! AH! Whoo-hoo!

 Zoe: 'Course, there're other schools of thought.

HmmMaybe Macports sets the X11 flags implicitly.

I see a couple options to try here:

1)  Try adding

SetLDFLAGS: /usr/X11/lib

(and you might also include the stuff from Macports in that).

2)  Patch Makefile to replace '-lGL -lGLU' with '-Wl,-framework,OpenGL'

Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


[Fink-devel] Dependencies For New Package

2013-05-15 Thread David Lowe
Alright i'm gonna make an attempt to create a .info file from scratch.  
I have verified that my candidate [SDL-Ball] is not currently in the database.  
There is a similar game [lbreakout], but this one is prettier and works 
correctly with a mouse.  Now i need some advice on dependencies.  The manual 
has this to say:

 2.0 Compiling
 The basic requirements for compiling sdl-ball is the following libs AND THEIR 
 DEVELOPMENT FILES:
 OpenGL
 LibGLU
 SDL1.2
 SDL-image1.2
 SDL-ttf1.2
 SDL-mixer1.2
 Make, a working C++ compiler and stdlibc++6

1) for 'OpenGL', do i depend upon openglut-shlibs?
2) What provides libGLU?
3) Can i assume that stdlibc++6 is provided through our usual compiler 
toolchain?

Sent from Darlene-Lowes-Mac-mini

Mal: Jayne, your mouth is talking. You might wanna look to that.
--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel


Re: [Fink-devel] Dependencies For New Package

2013-05-15 Thread Alexander Hansen
On 5/15/13 12:58 PM, David Lowe wrote:
   Alright i'm gonna make an attempt to create a .info file from scratch.  
 I have verified that my candidate [SDL-Ball] is not currently in the 
 database.  There is a similar game [lbreakout], but this one is prettier and 
 works correctly with a mouse.  Now i need some advice on dependencies.  The 
 manual has this to say:

 2.0 Compiling
 The basic requirements for compiling sdl-ball is the following libs AND 
 THEIR DEVELOPMENT FILES:
 OpenGL
 LibGLU
 SDL1.2
 SDL-image1.2
 SDL-ttf1.2
 SDL-mixer1.2
 Make, a working C++ compiler and stdlibc++6

 1) for 'OpenGL', do i depend upon openglut-shlibs?
 2) What provides libGLU?
 3) Can i assume that stdlibc++6 is provided through our usual compiler 
 toolchain?

 Sent from Darlene-Lowes-Mac-mini

 Mal: Jayne, your mouth is talking. You might wanna look to that.

1) OpenGL typically comes either via the OpenGL framework, or via X11. 
In the former case, no dependency needs to be declared, because that 
comes with the OS and we don't have a virtual package for it.  For the 
latter, even though it ships with the OS on current versions, it's good 
to specify Depends: x11-shlibs and BuildDepends: x11-dev, plus 
RuntimeDepends: x11 if it displays in X11. (mesa is also a possibility, 
but I'd recommend not going with that if you don't have to)

2) libGLU is part of OpenGL here:

$ locate libGLU
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libGLU.1.3.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libGLU.1.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib/libGLU.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
/opt/X11/lib/libGLU.1.dylib
/opt/X11/lib/libGLU.dylib
/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib

3) You may indeed assume that stdlibc++6 comes in the standard toolchain.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

--
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel