summaryrefslogtreecommitdiffstats
path: root/games/xscavenger/Makefile
blob: fdd39227269966df40f2e40a1185d7c915730491 (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
37
38
# Created by: eivind
# $FreeBSD$

PORTNAME=	xscavenger
PORTVERSION=	1.4.5
CATEGORIES=	games
MASTER_SITES=	http://www.linuxmotors.com/scavenger/downloads/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Lode Runner clone for X11

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/../copyright

WRKSRC_SUBDIR=	src

USES=		imake tar:tgz
USE_XORG=	x11 xext

CFLAGS+=	-Wno-return-type -Wno-pointer-sign

DESKTOP_ENTRIES="XScavenger" "" "" "scavenger" "" ""

OPTIONS_DEFINE=		ALSA
OPTIONS_DEFAULT=	ALSA

ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
ALSA_CFLAGS_OFF=	-DNO_ALSA

post-patch-ALSA-off:
	@${REINPLACE_CMD} -e \
		's|-lasound||' ${WRKSRC}/Imakefile

pre-configure:
	@${LN} -sf scavenger.6 ${WRKSRC}/scavenger.man
	@${ECHO_CMD} "MANSUFFIX=6" >> ${WRKSRC}/Imakefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud