5815152193
license cleanup). enable distfiles/packages for ftp; some parts are noncommercial only so not for cdrom.
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
$OpenBSD: patch-Jamrules,v 1.3 2009/08/28 01:02:21 sthen Exp $
|
|
--- Jamrules.orig Sat Jun 6 08:17:22 2009
|
|
+++ Jamrules Fri Jun 19 12:35:31 2009
|
|
@@ -7,8 +7,8 @@ BUILD ?= RELEASE ;
|
|
USESDL = yes ;
|
|
# USEFMOD = yes ;
|
|
|
|
-CC = gcc ;
|
|
-C++ = g++ ;
|
|
+CC ?= gcc ;
|
|
+C++ ?= g++ ;
|
|
|
|
if $(CROSS)
|
|
{
|
|
@@ -72,6 +72,23 @@ switch $(OS)
|
|
SHRLINKLIBS += -lSDL_mixer -lSDL -lsmpeg -lvorbisfile ;
|
|
}
|
|
|
|
+ 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 ;
|
|
+ LINKLIBS += -pthread ;
|
|
+ SHRLINKLIBS += -pthread -lSDL_mixer -lSDL_sound -lSDL -lsmpeg -lvorbisfile ;
|
|
+ }
|
|
+
|
|
case MACOSX :
|
|
Echo "OS is MACOSX (gtk+)" ;
|
|
SUFDLL = .dylib ;
|
|
@@ -98,7 +115,7 @@ switch $(BUILD)
|
|
|
|
case RELEASE :
|
|
Echo "BUILD is RELEASE" ;
|
|
- OPTIM = -O2 ;
|
|
+ OPTIM = $(CFLAGS) ;
|
|
|
|
case TURBO :
|
|
Echo "BUILD is TURBO" ;
|