svn commit: r547311 - head/emulators/joytran

Alexey Dokuchaev danfe at FreeBSD.org
Wed Sep 2 02:36:32 UTC 2020


Author: danfe
Date: Wed Sep  2 02:36:31 2020
New Revision: 547311
URL: https://svnweb.freebsd.org/changeset/ports/547311

Log:
  - Add -fcommon to CFLAGS to unbreak the build against modern compilers,
    e.g. Clang 11 or GCC 10
  - While here, fix CMAKE_ARGS to avoid multi-page complaints from CMake
    and replace USE* knobs in somewhat more logical order
  
  Reported by:	pkg-fallout

Modified:
  head/emulators/joytran/Makefile

Modified: head/emulators/joytran/Makefile
==============================================================================
--- head/emulators/joytran/Makefile	Wed Sep  2 02:10:03 2020	(r547310)
+++ head/emulators/joytran/Makefile	Wed Sep  2 02:36:31 2020	(r547311)
@@ -13,12 +13,16 @@ COMMENT=	Joystick to keyboard/mouse events translator 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-USE_SDL=	sdl2
 USES=		cmake:insource pkgconfig sdl tar:bzip2 xorg
-CMAKE_ARGS=	-DLOCALBASE="${LOCALBASE}" -DPREFIX="${PREFIX}"
+USE_SDL=	sdl2
 USE_XORG=	x11 xtst
+CMAKE_ARGS=	-DLOCALBASE:PATH="${LOCALBASE}"
 
 OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e '/WARNING_FLAGS/s,-pedantic,& -fcommon,' \
+		${WRKSRC}/CMakeLists.txt
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}


More information about the svn-ports-head mailing list