2002-11-01 21:41:26 +01:00
|
|
|
# New ports collection makefile for: foobillard
|
|
|
|
# Date created: 26 October 2002
|
|
|
|
# Whom: Thomas Vogt <thomas.vogt@bsdunix.ch>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= foobillard
|
2008-06-03 10:20:59 +02:00
|
|
|
PORTVERSION= 3.0a
|
2010-06-19 23:44:16 +02:00
|
|
|
PORTREVISION= 3
|
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
|
2003-02-27 11:37:45 +01:00
|
|
|
COMMENT= A free OpenGL-billard game
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
2003-07-14 04:36:32 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2002-11-01 21:41:26 +01:00
|
|
|
|
2007-03-19 17:02:17 +01:00
|
|
|
OPTIONS= SDL "Use SDL instead of glut" off \
|
|
|
|
NVIDIA_BUMPREF "Enable NVidia extensions" off
|
|
|
|
|
2005-06-10 15:31:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -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
|
|
|
|
|
2003-11-16 19:56:32 +01:00
|
|
|
.if defined(WITH_SDL)
|
|
|
|
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
|
|
|
|
2003-02-19 18:12:33 +01:00
|
|
|
.if !defined(WITH_NVIDIA_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:
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/foobillard.6 ${PREFIX}/man/man6/foobillard.6
|
|
|
|
|
2005-06-10 15:31:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|