diff --git a/emulators/joytran/Makefile b/emulators/joytran/Makefile index 1c3ee58e7e45..d28f112c6599 100644 --- a/emulators/joytran/Makefile +++ b/emulators/joytran/Makefile @@ -1,27 +1,23 @@ PORTNAME= joytran PORTVERSION= 0.9.5.2 PORTREVISION= 1 CATEGORIES= emulators MASTER_SITES= http://sourceforge.net/projects/${PORTNAME}/files/ MAINTAINER= beyert@cs.ucr.edu COMMENT= Joystick to keyboard/mouse events translator written in C LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYRIGHT USES= cmake:insource pkgconfig sdl tar:bzip2 xorg 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} .include diff --git a/emulators/joytran/files/patch-CMakeLists.txt b/emulators/joytran/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..e3b8e55447ce --- /dev/null +++ b/emulators/joytran/files/patch-CMakeLists.txt @@ -0,0 +1,14 @@ +--- CMakeLists.txt.orig 2013-05-02 04:53:08 UTC ++++ CMakeLists.txt +@@ -119,9 +119,9 @@ IF( SDL_LIB STREQUAL "SDL2" ) + SET(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} -DWITH_SDL2") + ENDIF() + ## These work in both clang and gcc +-SET(WARNING_FLAGS "-W -Wall -Werror -pedantic") ++SET(WARNING_FLAGS "-W -Wall -pedantic") + SET(CMAKE_C_FLAGS +- "${WARNING_FLAGS} -isystem${CMAKE_INCLUDE_PATH} ${CMAKE_CPP_FLAGS}") ++ "${WARNING_FLAGS} -isystem${CMAKE_INCLUDE_PATH} ${CMAKE_CPP_FLAGS} -fcommon") + SET(CMAKE_LD_FLAGS "-L${CMAKE_LIB_PATH} -lX11 -lXtst -l${SDL_LIB}") + SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${CMAKE_LD_FLAGS}") + SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${CMAKE_LD_FLAGS}")