summaryrefslogtreecommitdiff
path: root/games/blobby/Makefile
blob: aff1496f2f6e84504a33ffe26ab97a7fe4eb7859 (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
46
47
48
49
50
51
52
# Created by: Ganael Laplanche <ganael.laplanche@martymac.org>
# $FreeBSD$

PORTNAME=	blobby
PORTVERSION=	1.0
PORTREVISION=	11
PORTEPOCH=	1
CATEGORIES=	games
MASTER_SITES=	SF/${PORTNAME}/Blobby%20Volley%202%20%28Linux%29/${PORTVERSION}
DISTNAME=	blobby2-linux-${PORTVERSION}

MAINTAINER=	martymac@FreeBSD.org
COMMENT=	Official continuation of the famous Blobby Volley 1.x game

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

NOT_FOR_ARCHS=		aarch64
NOT_FOR_ARCHS_REASON=	fails to compile: I can't tell what endian-ness to use for your architecture

LIB_DEPENDS=	libphysfs.so:devel/physfs
BUILD_DEPENDS=	zip:archivers/zip \
		${LOCALBASE}/include/boost/crc.hpp:devel/boost-libs

USES=		cmake compiler:c++11-lang dos2unix gl localbase:ldflags \
		pkgconfig sdl
USE_SDL=	sdl2
USE_GL=		gl

DOS2UNIX_REGEX=	.*\.(c|h|cpp)
CMAKE_ARGS=	-DDATADIR:PATH="${DATADIR}"
WRKSRC=		${WRKDIR}/blobby-${PORTVERSION}

PORTDOCS=	AUTHORS ChangeLog README TODO

DESKTOP_ENTRIES="Blobby Volley" \
		"" \
		"${DATADIR}/Icon.bmp" \
		"${PORTNAME}" \
		"Game;ArcadeGame;" \
		""

OPTIONS_DEFINE=	DOCS

post-install:
	${INSTALL_DATA} ${WRKSRC}/data/Icon.bmp ${STAGEDIR}${DATADIR}/

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>