- 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
This commit is contained in:
parent
0adf8b91b1
commit
944ed628f6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547311
@ -13,13 +13,17 @@ COMMENT= Joystick to keyboard/mouse events translator written in C
|
||||
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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user