d58090ce1a
- use new style DEPENDS ok sthen@ (MAINTAINER)
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Jamrules,v 1.5 2010/10/23 09:15:16 jasper Exp $
|
|
--- Jamrules.orig Mon Sep 27 15:05:16 2010
|
|
+++ Jamrules Thu Oct 21 23:12:05 2010
|
|
@@ -6,8 +6,8 @@ BUILD ?= RELEASE ;
|
|
USESDL = yes ;
|
|
BUNDLEFONTS = yes ;
|
|
|
|
-CC = gcc ;
|
|
-C++ = g++ ;
|
|
+CC ?= gcc ;
|
|
+C++ ?= g++ ;
|
|
|
|
if $(CROSS)
|
|
{
|
|
@@ -89,6 +89,23 @@ switch $(OS)
|
|
else { SHRLINKLIBS += $(GARGLKLIBS) ; }
|
|
|
|
|
|
+ case OPENBSD :
|
|
+ Echo "OS is OpenBSD (gtk+)" ;
|
|
+ SUFDLL = .so.$(LIBgarglk_VERSION) ;
|
|
+ PKGCONFIG = "pkg-config freetype2 gtk+-2.0 gdk-x11-2.0 gobject-2.0" ;
|
|
+ #PKGCONFIG = "pkg-config freetype2 gtk+" ;
|
|
+ SHELLHEADER = "#!/bin/sh" ;
|
|
+ GARGLKCCFLAGS = "`$(PKGCONFIG) --cflags`" -fPIC ;
|
|
+ SHRLINKLIBS = "`$(PKGCONFIG) --libs`" -ljpeg -lpng -lz ;
|
|
+ LINKLIBS = -L$(PREFIX)/lib -L$(X11BASE)/lib -lz ;
|
|
+
|
|
+ if $(USESDL)
|
|
+ {
|
|
+ GARGLKCCFLAGS += -I$(PREFIX)/include/SDL -I$(PREFIX)/include/ ;
|
|
+ LINKLIBS += -pthread ;
|
|
+ SHRLINKLIBS += -pthread -lSDL_mixer -lSDL_sound -lSDL -lsmpeg -lvorbisfile ;
|
|
+ }
|
|
+
|
|
case MACOSX :
|
|
Echo "OS is MACOSX (cocoa)" ;
|
|
SUFDLL = .dylib ;
|
|
@@ -121,7 +138,7 @@ switch $(BUILD)
|
|
|
|
case RELEASE :
|
|
Echo "BUILD is RELEASE" ;
|
|
- OPTIM = -O2 ;
|
|
+ OPTIM = $(CFLAGS) ;
|
|
|
|
case TURBO :
|
|
Echo "BUILD is TURBO" ;
|