2013-05-31 16:40:56 +02:00
|
|
|
# Created by: Thomas Vogt <thomas.vogt@bsdunix.ch>
|
2002-11-01 21:41:26 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= foobillard
|
2008-06-03 10:20:59 +02:00
|
|
|
PORTVERSION= 3.0a
|
2013-01-23 16:00:18 +01:00
|
|
|
PORTREVISION= 7
|
2002-11-01 21:41:26 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://foobillard.sunsite.dk/dnl/
|
|
|
|
|
2007-01-25 23:58:47 +01:00
|
|
|
MAINTAINER= thomas@bsdunix.ch
|
2012-07-28 17:57:55 +02:00
|
|
|
COMMENT= Free OpenGL billiards game
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
|
2003-07-14 04:36:32 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
OPTIONS_DEFINE= SDL NVIDIA_BUMPREF
|
|
|
|
SDL_DESC= SDL instead of glut
|
|
|
|
NVIDIA_BUMPREF_DESC= NVidia extensions
|
2007-03-19 17:02:17 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-06-10 15:31:30 +02:00
|
|
|
|
2003-11-16 19:56:32 +01:00
|
|
|
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
|
|
|
|
|
2002-11-01 21:41:26 +01:00
|
|
|
USE_GMAKE= yes
|
2003-02-19 18:12:33 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-03-27 10:30:49 +01:00
|
|
|
USE_XORG= xaw ice
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-11-16 19:56:32 +01:00
|
|
|
|
2010-06-19 23:42:45 +02:00
|
|
|
DESKTOP_ENTRIES= "Foobillard" \
|
|
|
|
"A free OpenGL-billard game" \
|
|
|
|
"${DATADIR}/foobillard.png" \
|
|
|
|
"foobillard" \
|
|
|
|
"Game;Simulation;" \
|
|
|
|
false
|
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2003-11-16 19:56:32 +01:00
|
|
|
USE_SDL= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-SDL
|
|
|
|
.else
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= glut
|
2003-11-16 19:56:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-glut
|
|
|
|
.endif
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MNVIDIA_BUMPREF}
|
2003-11-16 19:56:32 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-nvidia
|
2003-02-19 18:12:33 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN6= foobillard.6
|
2003-11-16 19:56:32 +01:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
2003-02-19 18:12:33 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-05-31 16:40:56 +02:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/foobillard.6 ${MAN6PREFIX}/man/man6/foobillard.6
|
2003-02-19 18:12:33 +01:00
|
|
|
|
2013-05-31 16:40:56 +02:00
|
|
|
.include <bsd.port.mk>
|