freebsd-ports/emulators/joytran/Makefile
Alexey Dokuchaev 944ed628f6 - 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
2020-09-02 02:36:31 +00:00

30 lines
696 B
Makefile

# Created by: Timothy Beyer <beyert@cs.ucr.edu>
# $FreeBSD$
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 <bsd.port.mk>