blob: 5788ec9a2bdc6856fd875767eaa61040f3ee4980 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: foobillard
# Date created: 26 October 2002
# Whom: Thomas Vogt <thomas.vogt@bsdunix.ch>
#
# $FreeBSD$
#
PORTNAME= foobillard
PORTVERSION= 2.9
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://foobillard.sunsite.dk/dnl/
MAINTAINER= thomas.vogt@bsdunix.ch
COMMENT= A free OpenGL-billard game
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
freetype.9:${PORTSDIR}/print/freetype2
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
USE_GETOPT_LONG=yes
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CPPFLAGS= -I${X11BASE}/include
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
.if defined(WITH_SDL)
USE_SDL= yes
CONFIGURE_ARGS+= --enable-SDL
.else
LIB_DEPENDS+= glut.3:${PORTSDIR}/graphics/libglut
CONFIGURE_ARGS+= --enable-glut
.endif
.if !defined(WITH_NVIDIA_BUMPREF)
CONFIGURE_ARGS+= --disable-nvidia
.endif
MAN6= foobillard.6
pre-everything::
.if !defined(WITH_SDL) || !defined(WITH_NVIDIA_BUMPREF)
@${ECHO_MSG} "You may specify the following on the command line:"
@${ECHO_MSG} ""
.endif
.if !defined(WITH_SDL)
@${ECHO_MSG} "WITH_SDL=yes to use SDL-lib instead of glut"
.endif
.if !defined(WITH_NVIDIA_BUMPREF)
@${ECHO_MSG} "WITH_NVIDIA_BUMPREF=yes to enable NV-extensions"
.endif
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.mk>
|