aboutsummaryrefslogtreecommitdiff
path: root/games/opensonic/Makefile
blob: d44167c81e5de93095dcbd4418d1cc53bb1fa14c (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
43
44
45
46
47
48
# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$

PORTNAME=	opensonic
PORTVERSION=	0.1.4
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	SF/opensnc/Open%20Sonic/${PORTVERSION}
DISTNAME=	opensnc-src-${PORTVERSION}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	devel@stasyan.com
COMMENT=	Game based on the "Sonic the Hedgehog" universe

BUILD_DEPENDS=	alpng>=1.3:graphics/alpng
LIB_DEPENDS=	liballeg.so:devel/allegro \
		libogg.so:audio/libogg \
		libpng.so:graphics/png \
		libvorbis.so:audio/libvorbis

DESKTOP_ENTRIES="${PORTNAME}" \
		"Sonic the Hedgehog" \
		"${PREFIX}/share/pixmaps/opensonic.png" \
		"${PORTNAME}" \
		"Game;ArcadeGame;" \
		false

USES=		cmake
USE_GITHUB=	nodefault
GH_TUPLE=	t6:loggcompat:4.4.2:loggcompat

CONFIGURE_ENV=	_ALLEGRO_LIBS="`allegro-config --libs`" \
		_ALLEGRO_VERSION="`allegro-config --version`"

CFLAGS+=	-I${LOCALBASE}/include -I${WRKSRC_loggcompat}

SUB_FILES=	opensonic

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/bin,${PREFIX}/bin,g' \
		-e 's,/usr/share,${PREFIX}/share,g' \
		${PATCH_WRKSRC}/src/core/global.h

post-install:
	${INSTALL_DATA}	${WRKSRC}/icon.png ${STAGEDIR}${PREFIX}/share/pixmaps/opensonic.png
	${INSTALL_SCRIPT} ${WRKDIR}/opensonic ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>