1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/games/foobillard/Makefile
Tobias C. Berner 759649a5b0 games/foobillard: prepare for freetype2 update
- freetype2 will no longer ship freetype-config (which was a pkg-config
  wrapper) in the near future -- use pkg-config to gather the required
  flags.

PR:		251512
2021-08-06 16:09:30 +02:00

63 lines
1.4 KiB
Makefile

# Created by: Thomas Vogt <thomas.vogt@bsdunix.ch>
PORTNAME= foobillard
PORTVERSION= 3.0a
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/FooBillard-Sources/
MAINTAINER= thomas@bsdunix.ch
COMMENT= Free OpenGL billiards game
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2
OPTIONS_DEFINE= SDL NVIDIA_BUMPREF
SDL_DESC= SDL instead of glut
NVIDIA_BUMPREF_DESC= NVidia extensions
.include <bsd.port.options.mk>
FREETYPE_CONFIG?= pkg-config freetype2
USES= gmake pkgconfig xorg
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 ${PORT_OPTIONS:MSDL}
USES+= sdl
USE_SDL= sdl
CONFIGURE_ARGS+= --enable-SDL
.else
USES+= gl
USE_GL= glut
CONFIGURE_ARGS+= --enable-glut
.endif
.if ! ${PORT_OPTIONS:MNVIDIA_BUMPREF}
CONFIGURE_ARGS+= --disable-nvidia
CFLAGS += -DGL_AMD_gpu_shader_int64=1 -DGLuint64EXT=uint64_t -DGLint64EXT=int64_t -UGL_VERTEX_PROGRAM_NV -DGL_NV_vertex_program=1
.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>