summaryrefslogtreecommitdiff
path: root/sysutils/jstest-gtk/Makefile
blob: da18b0e57b98c2b78859a229d7ac708e4d0b108e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $FreeBSD$

PORTNAME=	jstest-gtk
PORTVERSION=	20180710
CATEGORIES=	sysutils

MAINTAINER=	rozhuk.im@gmail.com
COMMENT=	Simple joystick tester based on Gtk+

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		cmake compiler:c++11-lang gnome libtool localbase:ldflags \
		pkgconfig
USE_GNOME=	gtkmm30 libsigc++20

INSTALLS_ICONS=	yes

# gitlab variables
USE_GITLAB=	yes
GL_ACCOUNT=	jstest-gtk
GL_COMMIT=	62f6e2d7d44620e503149510c428df9e004c9f3b

post-extract:
	@${MKDIR} ${WRKSRC}/src/linux/
	@${CP} -f ${FILESDIR}/input.h ${WRKSRC}/src/linux/
	@${CP} -f ${FILESDIR}/input-event-codes.h ${WRKSRC}/src/linux/
	@${CP} -f ${FILESDIR}/joystick.h ${WRKSRC}/src/linux/
	@${CP} -f ${FILESDIR}/types.h ${WRKSRC}/src/linux/

post-patch:
	@${REINPLACE_CMD} -e \
	    's|include_directories(SYSTEM|include_directories("$${CMAKE_CURRENT_SOURCE_DIR}/src" SYSTEM|g' \
		${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>