Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2017 07:18:57 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437340 - in head/x11: . controllermap
Message-ID:  <201703310718.v2V7Iv1C016522@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Mar 31 07:18:57 2017
New Revision: 437340
URL: https://svnweb.freebsd.org/changeset/ports/437340

Log:
  x11/controllermap: add new port
  
  controllermap helps to map buttons on Xbox 360 style gamepad for use
  with SDL_GameController API. The output can be appended into an
  existing gamecontrollerdb.txt file or to SDL_GAMECONTROLLERCONFIG.
  
  Based on:	AUR package

Added:
  head/x11/controllermap/
  head/x11/controllermap/Makefile   (contents, props changed)
  head/x11/controllermap/distinfo   (contents, props changed)
  head/x11/controllermap/pkg-descr   (contents, props changed)
Modified:
  head/x11/Makefile   (contents, props changed)

Modified: head/x11/Makefile
==============================================================================
--- head/x11/Makefile	Fri Mar 31 06:20:45 2017	(r437339)
+++ head/x11/Makefile	Fri Mar 31 07:18:57 2017	(r437340)
@@ -33,6 +33,7 @@
     SUBDIR += cinnamon-session
     SUBDIR += cl-clx
     SUBDIR += compositeproto
+    SUBDIR += controllermap
     SUBDIR += cool-retro-term
     SUBDIR += damageproto
     SUBDIR += decurs

Added: head/x11/controllermap/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/controllermap/Makefile	Fri Mar 31 07:18:57 2017	(r437340)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	controllermap
+PORTVERSION=	2.0.5
+CATEGORIES=	x11
+MASTER_SITES=	http://www.libsdl.org/release/
+DISTNAME=	SDL2-${DISTVERSION}
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	Game controller mapping generator
+
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USE_SDL=	sdl2
+WRKSRC_SUBDIR=	test
+CFLAGS+=	`sdl2-config --cflags`
+LIBS+=		`sdl2-config --libs`
+MAKEFILE=	/dev/null
+MAKE_ENV=	LDLIBS="${LIBS}"
+ALL_TARGET=	${PORTNAME} testgamecontroller testjoystick
+PLIST_FILES=	${ALL_TARGET:S,^,bin/,}
+PORTDATA=	${PORTNAME}.bmp axis.bmp button.bmp
+
+post-patch:
+	@${REINPLACE_CMD} '/bmp/s,","${DATADIR}/,' \
+		${ALL_TARGET:S,^,${WRKSRC}/,:S,$,.c,}
+
+do-install:
+	${INSTALL_PROGRAM} ${ALL_TARGET:S,^,${WRKSRC}/,} \
+		${STAGEDIR}${PREFIX}/bin
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" \
+		${STAGEDIR}${DATADIR})
+
+.include <bsd.port.mk>

Added: head/x11/controllermap/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/controllermap/distinfo	Fri Mar 31 07:18:57 2017	(r437340)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1476935787
+SHA256 (SDL2-2.0.5.tar.gz) = 442038cf55965969f2ff06d976031813de643af9c9edc9e331bd761c242e8785
+SIZE (SDL2-2.0.5.tar.gz) = 4209352

Added: head/x11/controllermap/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/controllermap/pkg-descr	Fri Mar 31 07:18:57 2017	(r437340)
@@ -0,0 +1,3 @@
+controllermap helps to map buttons on Xbox 360 style gamepad for use
+with SDL_GameController API. The output can be appended into an
+existing gamecontrollerdb.txt file or to SDL_GAMECONTROLLERCONFIG.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703310718.v2V7Iv1C016522>