1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/foobillard/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

68 lines
1.5 KiB
Makefile

# 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= 3
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
.include <bsd.port.pre.mk>
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
USE_GETOPT_LONG=yes
USE_GMAKE= 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.4:${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.post.mk>