summaryrefslogtreecommitdiffstats
path: root/games/foobillard/Makefile
blob: 70176f4b5d198786b0a204cf306f61947c778769 (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
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:	foobillard
# Date created:				26 October 2002
# Whom:					Thomas Vogt <thomas.vogt@bsdunix.ch>
#
# $FreeBSD$
#

PORTNAME=	foobillard
PORTVERSION=	3.0a
PORTREVISION=	5
CATEGORIES=	games
MASTER_SITES=	http://foobillard.sunsite.dk/dnl/

MAINTAINER=	thomas@bsdunix.ch
COMMENT=	Free OpenGL billiards game

LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
		freetype.9:${PORTSDIR}/print/freetype2

OPTIONS=	SDL	"Use SDL instead of glut"	off \
		NVIDIA_BUMPREF	"Enable NVidia extensions"	off

.include <bsd.port.pre.mk>

FREETYPE_CONFIG?=	${LOCALBASE}/bin/freetype-config

USE_GMAKE=	yes
GNU_CONFIGURE=	yes
USE_XORG=	xaw ice

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

DESKTOP_ENTRIES=	"Foobillard" \
			"A free OpenGL-billard game" \
			"${DATADIR}/foobillard.png" \
			"foobillard" \
			"Game;Simulation;" \
			false

.if defined(WITH_SDL)
USE_SDL=	yes
CONFIGURE_ARGS+=	--enable-SDL
.else
USE_GL=		glut
CONFIGURE_ARGS+=	--enable-glut
.endif

.if !defined(WITH_NVIDIA_BUMPREF)
CONFIGURE_ARGS+=	--disable-nvidia
.endif

MAN6=		foobillard.6

post-patch:
	@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
		${WRKSRC}/src/Makefile.in

post-install:
	@${INSTALL_MAN} ${WRKSRC}/foobillard.6 ${PREFIX}/man/man6/foobillard.6

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