aboutsummaryrefslogtreecommitdiff
path: root/emulators/linux-xjoypad/Makefile
blob: dca78bd60f3841af5d13ad79770e0349b3197357 (plain) (blame)
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
37
38
39
40
41
42
# New ports collection makefile for:	linux-xjoypad
# Date created:			17 Apr 2006
# Whom:				Timothy Beyer <beyert@cs.ucr.edu>
#
# $FreeBSD$
#

PORTNAME=	xjoypad
PORTVERSION=	1
PORTREVISION=	2
CATEGORIES=	emulators
MASTER_SITES=	http://members.chello.at/erich.kitzmueller/ammoq/down/
PKGNAMEPREFIX=	linux-
DISTNAME=	xjoypad

MAINTAINER=	beyert@cs.ucr.edu
COMMENT=	Joy-Device to X mapping (lets you play Linux games with a joypad)

RUN_DEPENDS=	/boot/modules/linux_js.ko:${PORTSDIR}/devel/linux-js

USE_XORG=	x11 xau xdmcp
WRKSRC=		${WRKDIR}/xjoypad/
USE_ZIP=	yes

FILES=		xjoypad.c sendevent.c
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -lcompat -lX11 -lXau -lXdmcp

do-build:
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} ${LDFLAGS} )

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xjoypad ${PREFIX}/bin

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
.endif

	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>