Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2018 22:52:50 +0000 (UTC)
From:      Adriaan de Groot <adridg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r465137 - in head/emulators/hatari: . files
Message-ID:  <201803202252.w2KMqopu014554@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adridg
Date: Tue Mar 20 22:52:50 2018
New Revision: 465137
URL: https://svnweb.freebsd.org/changeset/ports/465137

Log:
  Fix emulators/hatari pre-emptively for CMake 3.11. Build error is
  
  CMake Error at /usr/local/share/cmake/Modules/CheckIncludeFiles.cmake:63 (message):
    Unknown arguments:
  
      HAVE_SDL_CONFIG_H
  
  which comes because SDL_INCLUDE_DIR can contain more than one element,
  in which case the code falls over. Further explanation is in the patch.
  
  Approved by:	tcberner (mentor, implicit)

Added:
  head/emulators/hatari/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/emulators/hatari/Makefile

Modified: head/emulators/hatari/Makefile
==============================================================================
--- head/emulators/hatari/Makefile	Tue Mar 20 22:52:32 2018	(r465136)
+++ head/emulators/hatari/Makefile	Tue Mar 20 22:52:50 2018	(r465137)
@@ -3,7 +3,7 @@
 
 PORTNAME=	hatari
 PORTVERSION=	2.0.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	emulators
 MASTER_SITES=	http://download.tuxfamily.org/hatari/${PORTVERSION}/
 

Added: head/emulators/hatari/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/hatari/files/patch-CMakeLists.txt	Tue Mar 20 22:52:50 2018	(r465137)
@@ -0,0 +1,20 @@
+${SDL_INCLUDE_DIR} can contain more than one directory,
+so using it here as if it is a single directory can confuse
+check_include_files. Instead, iterate over it.
+
+--- CMakeLists.txt.orig	2018-03-20 22:30:14.014771000 +0000
++++ CMakeLists.txt	2018-03-20 22:31:23.332802000 +0000
+@@ -187,7 +187,12 @@
+ check_include_files(termios.h HAVE_TERMIOS_H)
+ check_include_files(strings.h HAVE_STRINGS_H)
+ check_include_files(malloc.h HAVE_MALLOC_H)
+-check_include_files(${SDL_INCLUDE_DIR}/SDL_config.h HAVE_SDL_CONFIG_H)
++foreach(_sid ${SDL_INCLUDE_DIR})
++  check_include_files(${_sid}/SDL_config.h HAVE_SDL_CONFIG_H)
++  if(HAVE_SDL_CONFIG_H)
++    break()
++  endif()
++endforeach()
+ check_include_files(sys/time.h HAVE_SYS_TIME_H)
+ check_include_files(sys/times.h HAVE_SYS_TIMES_H)
+ check_include_files(utime.h HAVE_UTIME_H)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803202252.w2KMqopu014554>