mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Update to 2.4
Install manpage Add gnugetopt as dependency (noticed by bento). PR: 48331 Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
This commit is contained in:
parent
1ef4f8a6ed
commit
78472fd2bd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75896
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= foobillard
|
||||
PORTVERSION= 1.8
|
||||
PORTVERSION= 2.4
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://foobillard.sunsite.dk/dnl/
|
||||
|
||||
@ -14,23 +14,33 @@ MAINTAINER= thomas.vogt@bsdunix.ch
|
||||
|
||||
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
freetype.9:${PORTSDIR}/print/freetype2
|
||||
freetype.9:${PORTSDIR}/print/freetype2 \
|
||||
gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
|
||||
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
|
||||
USE_MESA= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
|
||||
USE_REINPLACE= yes
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ARGS= --enable-SDL --prefix=${PREFIX} \
|
||||
--includedir="${X11BASE}/include"
|
||||
|
||||
.if !defined(WITH_NVIDIA_BUMPREF)
|
||||
CONFIGURE_ARGS+= --disable-bumpref
|
||||
.endif
|
||||
|
||||
MAN6= foobillard.6
|
||||
MANCOMPRESSED= no
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
|
||||
post-install:
|
||||
@${INSTALL_MAN} ${WRKSRC}/foobillard.6 ${PREFIX}/man/man6/foobillard.6
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (foobillard-1.8.tar.gz) = 14038a77187316f378e95ab6ef9ce6fc
|
||||
MD5 (foobillard-2.4.tar.gz) = 9f1adabaf9b62ed1ab7e050d43519f73
|
||||
|
@ -1,16 +1,9 @@
|
||||
--- src/Makefile.in.orig Sat Oct 26 22:01:08 2002
|
||||
+++ src/Makefile.in Sat Oct 26 22:01:40 2002
|
||||
@@ -1,4 +1,4 @@
|
||||
-# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
--- src/Makefile.in.orig Sun Feb 16 13:48:17 2003
|
||||
+++ src/Makefile.in Sun Feb 16 13:52:33 2003
|
||||
@@ -69,16 +69,16 @@
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
@@ -72,14 +72,14 @@
|
||||
#INCDIR = /usr/X11R6/include
|
||||
|
||||
-CC = gcc
|
||||
+CC ?= gcc
|
||||
INCLUDES = -DNDEBUG -DDATA_DIRECTORY='"${pkgdatadir}/"'
|
||||
-@USE_SDL_TRUE@SDL_CFLAGS = `sdl-config --cflags` -DUSE_SDL
|
||||
+@USE_SDL_TRUE@SDL_CFLAGS = `$(SDL_CONFIG) --cflags` -DUSE_SDL
|
||||
@USE_SDL_FALSE@SDL_CFLAGS =
|
||||
@ -19,9 +12,11 @@
|
||||
@USE_SDL_FALSE@SDL_LIBS =
|
||||
@USE_SDL_TRUE@GLUT_LIBS =
|
||||
@USE_SDL_FALSE@GLUT_LIBS = -lglut
|
||||
@USE_BUMPREF_TRUE@BUMPREF_CFLAGS =
|
||||
@USE_BUMPREF_FALSE@BUMPREF_CFLAGS = -DNO_NV_BUMPREF
|
||||
|
||||
-CFLAGS = -Wall -O3 `freetype-config --cflags` ${SDL_CFLAGS}
|
||||
+CFLAGS += -Wall `freetype-config --cflags` ${SDL_CFLAGS} -I%%X11BASE%%/include -I%%LOCALBASE%%/include -I%%LOCALBASE%%/include/SDL11
|
||||
-CFLAGS = -Wall -O3 `freetype-config --cflags` ${SDL_CFLAGS} ${BUMPREF_CFLAGS}
|
||||
+CFLAGS += -Wall `freetype-config --cflags` ${SDL_CFLAGS} ${BUMPREF_CFLAGS} -I%%X11BASE%%/include
|
||||
|
||||
#LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz
|
||||
#LIBS = -L$(LIBDIR) -lglut -lGLU -lGL -lXext -lXaw -lm -lXi -lpng -lz
|
||||
|
20
games/foobillard/files/patch-billard3d.c
Normal file
20
games/foobillard/files/patch-billard3d.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/billard3d.c.orig Sat Jan 11 02:04:01 2003
|
||||
+++ src/billard3d.c Sun Feb 16 16:39:59 2003
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <unistd.h>
|
||||
-#include <endian.h>
|
||||
+#include <machine/endian.h>
|
||||
|
||||
#ifndef USE_SDL
|
||||
#include <GL/glut.h>
|
||||
@@ -4094,7 +4094,7 @@
|
||||
fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
|
||||
fclose(f);
|
||||
|
||||
-#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
+#if _BYTE_ORDER == _BIG_ENDIAN
|
||||
{
|
||||
char *snd=ball_ball_snd.data;
|
||||
for(i=0;i<ball_ball_snd.len;i+=2)
|
@ -1,6 +1,8 @@
|
||||
bin/foobillard
|
||||
share/foobillard/ball_ball.raw
|
||||
share/foobillard/blende.png
|
||||
share/foobillard/bluebold.ttf
|
||||
share/foobillard/bumpref.png
|
||||
share/foobillard/cue_shadow.png
|
||||
share/foobillard/foobillard.gif
|
||||
share/foobillard/foobillard.png
|
||||
@ -9,7 +11,13 @@ share/foobillard/fullhalf_symbol.png
|
||||
share/foobillard/half_symbol.png
|
||||
share/foobillard/iomanoid.ttf
|
||||
share/foobillard/lightflare.png
|
||||
share/foobillard/negx.png
|
||||
share/foobillard/negy.png
|
||||
share/foobillard/negz.png
|
||||
share/foobillard/place_cue_ball.png
|
||||
share/foobillard/posx.png
|
||||
share/foobillard/posy.png
|
||||
share/foobillard/posz.png
|
||||
share/foobillard/queue.png
|
||||
share/foobillard/queue_shadow.png
|
||||
share/foobillard/shadow2.png
|
||||
|
Loading…
Reference in New Issue
Block a user