summaryrefslogtreecommitdiff
path: root/games/chromium-bsu/Makefile
blob: 1b0dda417322192932ed8508d6a19b7667ded7bc (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
# New ports collection makefile for:	chromium
# Date created:				17 Dec, 2003
# Whom:					Eric Anholt <anholt@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	chromium
PORTVERSION=	0.9.12
PORTREVISION=	6
CATEGORIES=	games
MASTER_SITES=	http://www.reptilelabour.com/software/files/chromium/ \
		http://www.amdmi3.ru/distfiles/
DISTFILES=	${PORTNAME}-src-${PORTVERSION}.tar.gz \
		${PORTNAME}-data-${PORTVERSION}.tar.gz

MAINTAINER=	amdmi3@amdmi3.ru
COMMENT=	An arcade-style, top-scrolling space shooter

LIB_DEPENDS=	vorbis.4:${PORTSDIR}/audio/libvorbis \
		smpeg.1:${PORTSDIR}/multimedia/smpeg \
		openal.0:${PORTSDIR}/audio/openal \
		alut.1:${PORTSDIR}/audio/freealut

USE_GL=		glu
USE_GMAKE=	yes
WRKSRC=		${WRKDIR}/Chromium-0.9

post-patch:
	@${REINPLACE_CMD} -e 's|-lopenal|& -lalut|g' \
			  -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src/Makefile
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src-setup/Makefile
	@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/support/glpng/src/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/chromium ${PREFIX}/bin
	${MKDIR} ${DATADIR}/data
	(cd ${WRKSRC}/data && \
		${TAR} -c -f - --exclude "*CVS*" --exclude "*xvpics*" png fonts wav) | \
		(cd ${DATADIR}/data && ${TAR} -x -f - )
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/data/doc && ${TAR} -c -f - --exclude "*CVS*" *) | \
		(cd ${DOCSDIR} && ${TAR} -x -f - )
.endif

.include <bsd.port.mk>