Hi ports --

Here's the fix for games/f1spirit. While here, remove libidn from LIB_DEPENDS (make port-lib-depends-check says not needed) and remove a hardcoded -O3.

OK?

~Brian

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/f1spirit/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile	2 Nov 2017 15:04:18 -0000	1.13
+++ Makefile	15 Apr 2018 20:54:11 -0000
@@ -4,7 +4,7 @@ COMMENT=	remake of Konami's F1-Spirit
 
 DISTNAME=	f1spirit.src_0.rc9-1615
 PKGNAME=	${DISTNAME:S/.src_0.rc9-/-0./}
-REVISION =	3
+REVISION =	4
 WRKDIST=	${WRKDIR}/${DISTNAME:S/.src_0.rc9-/-0.rc9./}
 
 EXTRACT_SUFX=	.tgz
@@ -28,7 +28,6 @@ RUN_DEPENDS=	devel/desktop-file-utils
 LIB_DEPENDS=	devel/sdl-image \
 		devel/sdl-net \
 		devel/sdl-mixer \
-		net/curl \
-		devel/libidn
+		net/curl
 
 .include <bsd.port.mk>
Index: patches/patch-build_linux_Makefile
===================================================================
RCS file: /cvs/ports/games/f1spirit/patches/patch-build_linux_Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-build_linux_Makefile
--- patches/patch-build_linux_Makefile	27 Apr 2014 09:18:01 -0000	1.2
+++ patches/patch-build_linux_Makefile	15 Apr 2018 20:54:11 -0000
@@ -1,6 +1,7 @@
 $OpenBSD: patch-build_linux_Makefile,v 1.2 2014/04/27 09:18:01 landry Exp $
---- build/linux/Makefile.orig	Fri Feb  6 11:12:51 2009
-+++ build/linux/Makefile	Sun Apr 27 11:05:01 2014
+Index: build/linux/Makefile
+--- build/linux/Makefile.orig
++++ build/linux/Makefile
 @@ -1,11 +1,11 @@
  EXE = f1spirit
  SRC = sources
@@ -25,7 +26,7 @@ $OpenBSD: patch-build_linux_Makefile,v 1
  #CFLAGS = -g3 -O3 -Wall `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
 -CFLAGS = -g3 -O3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
 -LDFLAGS = `sdl-config --libs` `curl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU
-+CFLAGS += -g3 -O3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
++CFLAGS += -g3 -Wno-write-strings `sdl-config --cflags` `curl-config --cflags` -I/usr/X11R6/include
 +LDFLAGS += `sdl-config --libs` `curl-config --libs` -L/usr/X11R6/lib/ -lSDL_image -lSDL_mixer -lSDL_net -lGL -lGLU
  RM = rm -f
  CP = cp -r
Index: patches/patch-sources_auxiliar_cpp
===================================================================
RCS file: patches/patch-sources_auxiliar_cpp
diff -N patches/patch-sources_auxiliar_cpp
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-sources_auxiliar_cpp	15 Apr 2018 20:54:11 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+clang6 fix
+
+Index: sources/auxiliar.cpp
+--- sources/auxiliar.cpp.orig
++++ sources/auxiliar.cpp
+@@ -93,7 +93,7 @@ SDL_Surface *load_maskedimage(char *imagefile, char *m
+ 
+ 	if (tmp == 0 ||
+ 	        mask == 0)
+-		return false;
++		return 0;
+ 
+ 	res = SDL_DisplayFormatAlpha(tmp);
+ 

Reply via email to