summaryrefslogtreecommitdiff
path: root/games/armagetronad/Makefile
blob: 5f8700c1badf1ffde2d03fcd54969980f87fb61a (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
39
40
41
42
43
44
45

PORTNAME=	armagetronad
DISTVERSION=	0.2.8.3.5
DISTVERSIONSUFFIX=	.src
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/stable/${DISTVERSION}/

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Tron clone in 3D

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	bash:shells/bash
LIB_DEPENDS=	libpng.so:graphics/png

USES=		autoreconf desktop-file-utils gl gmake gnome jpeg sdl
GNU_CONFIGURE=	yes
USE_SDL=	image mixer sdl
USE_GL=		gl glu
USE_GNOME=	libxml2

WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}

CONFIGURE_ARGS=	--disable-etc --disable-games --enable-music

INSTALLS_ICONS=	yes

BINARY_ALIAS=	sdl11-config=sdl-config

OPTIONS_DEFINE=	DOCS

PORTDOCS=	*

post-install:
	@${MV} ${STAGEDIR}${DATADIR}/desktop/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop
.for SZ in 16 32 48
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps
.endfor
	@${MV} ${STAGEDIR}${DATADIR}/desktop/icons/small/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/${PORTNAME}.png
	@${MV} ${STAGEDIR}${DATADIR}/desktop/icons/medium/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/${PORTNAME}.png
	@${MV} ${STAGEDIR}${DATADIR}/desktop/icons/large/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png
	@${RM} -r ${STAGEDIR}${DATADIR}/desktop

.include <bsd.port.mk>