Ticket #50: gfx2_freebsd.patch
File gfx2_freebsd.patch, 3.1 KB (added by , 6 years ago) |
---|
-
src/Makefile
360 360 361 361 # Compiles a regular linux executable for the native platform 362 362 BIN = ../bin/grafx2 363 COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) $(shell pkg-config --cflags libpng) -D_XOPEN_SOURCE=700 364 LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT) $(shell pkg-config --libs libpng) $(LUALOPT) -lm 363 COPT = -W -Wall -Wdeclaration-after-statement -std=c99 -c -g $(shell sdl-config --cflags) $(TTFCOPT) $(LUACOPT) $(JOYCOPT) -O$(OPTIM) 364 COPT += $(shell pkg-config --cflags libpng) 365 ifneq ($(PLATFORM), FreeBSD) 366 COPT += -D_XOPEN_SOURCE=700 367 endif 368 LOPT = $(shell sdl-config --libs) -lSDL_image $(TTFLOPT) 369 LOPT += $(shell pkg-config --libs libpng) 370 LOPT += $(LUALOPT) -lm 371 LOPT += -liconv 365 372 CC = gcc 366 373 OBJDIR = ../obj/unix 367 374 FCLOPT = -lfontconfig -
src/main.c
80 80 #import <corefoundation/corefoundation.h> 81 81 #import <sys/param.h> 82 82 #elif defined(__FreeBSD__) 83 #i mport<sys/param.h>83 #include <sys/param.h> 84 84 #endif 85 85 86 86 -
src/misc.c
727 727 #if defined(__OpenBSD__) 728 728 #include <sys/param.h> 729 729 #endif 730 #include <sys/types.h> 730 731 #include <sys/sysctl.h> 731 732 #elif defined(__BEOS__) || defined(__HAIKU__) 732 733 #include <kernel/OS.h> -
src/mountlist.c
25 25 // We don't use autoconf and all that in grafx2, so let's do the config here ... 26 26 #if defined(__macosx__) || defined(__FreeBSD__) || defined(__OpenBSD__) // MacOS X is POSIX compliant 27 27 #define MOUNTED_GETMNTINFO 28 #if defined(__macosx__) 28 #if defined(__macosx__) || defined(__FreeBSD__) 29 29 #include <sys/types.h> 30 30 #endif 31 31 #if defined(__OpenBSD__) … … 462 462 me = malloc (sizeof *me); 463 463 me->me_devname = strdup (fsp->f_mntfromname); 464 464 me->me_mountdir = strdup (fsp->f_mntonname); 465 #if defined(__macosx__) || defined(__OpenBSD__) 465 #if defined(__macosx__) || defined(__OpenBSD__) || defined(__FreeBSD__) 466 466 me->me_type = fsp->f_fstypename; 467 467 #else 468 468 me->me_type = fsp->fs_typename; -
src/setup.c
36 36 #import <corefoundation/corefoundation.h> 37 37 #import <sys/param.h> 38 38 #elif defined(__FreeBSD__) 39 #i mport<sys/param.h>39 #include <sys/param.h> 40 40 #elif defined(__MINT__) 41 41 #include <mint/osbind.h> 42 42 #include <mint/sysbind.h>