blob: 8a150a927014d05f9cb952c610c81bce67470a31 (
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
|
PORTNAME= foobillard
PORTVERSION= 3.0a
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/FooBillard-Sources/
MAINTAINER= thomas@bsdunix.ch
COMMENT= Free OpenGL billiards game
WWW= http://foobillard.sourceforge.net/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2
USES= gmake localbase:ldflags pkgconfig xorg
USE_XORG= xaw ice
GNU_CONFIGURE= yes
DESKTOP_ENTRIES= "Foobillard" \
"A free OpenGL-billard game" \
"${DATADIR}/foobillard.png" \
"foobillard" \
"Game;Simulation;" \
false
OPTIONS_DEFINE= SDL NVIDIA_BUMPREF
NVIDIA_BUMPREF_DESC= NVidia extensions
SDL_DESC= SDL instead of glut
NVIDIA_BUMPREF_CONFIGURE_OFF= --disable-nvidia
NVIDIA_BUMPREF_CFLAGS_OFF= -DGL_AMD_gpu_shader_int64=1 -DGLuint64EXT=uint64_t -DGLint64EXT=int64_t -UGL_VERTEX_PROGRAM_NV -DGL_NV_vertex_program=1
SDL_USES= sdl
SDL_USE= SDL=sdl
SDL_CONFIGURE_ON= --enable-SDL
SDL_USES_OFF= gl
SDL_USE_OFF= GL=glut
SDL_CONFIGURE_OFF= --enable-glut
FREETYPE_CONFIG?= pkg-config freetype2
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
${WRKSRC}/src/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/foobillard.6 ${STAGEDIR}${PREFIX}/man/man6/foobillard.6
.include <bsd.port.mk>
|