Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2017 20:03:56 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438478 - in head/games: . billardgl billardgl/files
Message-ID:  <201704132003.v3DK3ukg013615@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Apr 13 20:03:56 2017
New Revision: 438478
URL: https://svnweb.freebsd.org/changeset/ports/438478

Log:
  - Add games/billardgl
  
  BillardGL is an OpenGL pool billiard simulation, which was developed
  within the scope of our course "Computergraphics" at the University
  of Freiburg (Germany). BillardGL is puplished under the GPL and is
  available for download for Windows and Linux.
  
  WWW: http://www.billardgl.de/index-en.html

Added:
  head/games/billardgl/
  head/games/billardgl/Makefile   (contents, props changed)
  head/games/billardgl/distinfo   (contents, props changed)
  head/games/billardgl/files/
  head/games/billardgl/files/patch-Makefile   (contents, props changed)
  head/games/billardgl/files/patch-bmp.cpp   (contents, props changed)
  head/games/billardgl/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Thu Apr 13 19:48:09 2017	(r438477)
+++ head/games/Makefile	Thu Apr 13 20:03:56 2017	(r438478)
@@ -78,6 +78,7 @@
     SUBDIR += battalion
     SUBDIR += battletanks
     SUBDIR += belooted
+    SUBDIR += billardgl
     SUBDIR += biloba
     SUBDIR += biniax2
     SUBDIR += biorythm

Added: head/games/billardgl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/billardgl/Makefile	Thu Apr 13 20:03:56 2017	(r438478)
@@ -0,0 +1,49 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	billardgl
+PORTVERSION=	1.75
+CATEGORIES=	games
+MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/BillardGL%20${PORTVERSION}
+DISTNAME=	BillardGL-${PORTVERSION}
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	OpenGL pool billiard simulation
+
+LICENSE=	GPLv2 # from website
+
+WRKSRC_SUBDIR=	src
+
+USES=		dos2unix
+DOS2UNIX_FILES=	Makefile bmp.cpp
+USE_GL=		gl glu glut
+USE_XORG=	x11 xext xmu xi
+
+PORTDOCS=	README
+PORTDATA=	*
+PLIST_FILES=	bin/billardgl \
+		share/pixmaps/billardgl.bmp
+
+DESKTOP_ENTRIES="${PORTNAME}" \
+		"" \
+		"${PREFIX}/share/pixmaps/${PORTNAME}.bmp" \
+		"${PORTNAME}" \
+		"Game;Simulation;" \
+		""
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/share/BillardGL/|${DATADIR}/|' ${WRKSRC}/Namen.h
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/BillardGL ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} "Texturen lang" ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/Texturen/1/dreizehn.bmp ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.bmp
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/games/billardgl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/billardgl/distinfo	Thu Apr 13 20:03:56 2017	(r438478)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1492081157
+SHA256 (BillardGL-1.75.tar.gz) = 9b865b1254aa30125480ec7ea2ce00d91524db066a524b78492545782856df96
+SIZE (BillardGL-1.75.tar.gz) = 736295
+SHA256 (billardgl.png) = a79b27cffca343ddb8f57cd6880acc6c60daf82959919868932a296f57be286e
+SIZE (billardgl.png) = 3212

Added: head/games/billardgl/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/billardgl/files/patch-Makefile	Thu Apr 13 20:03:56 2017	(r438478)
@@ -0,0 +1,25 @@
+--- Makefile.orig	2002-04-29 11:26:46 UTC
++++ Makefile
+@@ -5,14 +5,14 @@
+ 
+ ####### Compiler, tools and options
+ 
+-CC	=	gcc
+-CXX	=	g++
+-CFLAGS	=	-pipe -Wall -W -DNO_DEBUG -g
+-CXXFLAGS=	-pipe -Wall -W -DNO_DEBUG -g 
+-INCPATH	=	-I/usr/X11R6/include 
+-LINK	=	g++
+-LFLAGS	=	
+-LIBS	=	-L/usr/X11R6/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi
++CC	?=	gcc
++CXX	?=	g++
++CFLAGS	+=	-Wall -W -DNO_DEBUG
++CXXFLAGS+=	-Wall -W -DNO_DEBUG
++INCPATH	=	-I${LOCALBASE}/include
++LINK	?=	${CXX}
++LFLAGS	+=	${LDFLAGS}
++LIBS	+=	-L${LOCALBASE}/lib -lGL -lGLU -lglut -lXmu -lXext -lX11 -lm -lXi
+ 
+ ## -lqgl -lGLU
+ 

Added: head/games/billardgl/files/patch-bmp.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/billardgl/files/patch-bmp.cpp	Thu Apr 13 20:03:56 2017	(r438478)
@@ -0,0 +1,21 @@
+--- bmp.cpp.orig	2002-04-22 10:31:24 UTC
++++ bmp.cpp
+@@ -4,14 +4,16 @@
+ // Modified by Volker Blanz, 25.4.2001
+ //
+ 
+-#include <iostream.h>
+-#include <fstream.h>
++#include <iostream>
++#include <fstream>
+ #include <stdio.h>
+ #include <string.h>
+ #include "LA.h"
+ #include "Namen.h"
+ #include "bmp.h"
+ 
++using namespace std;
++
+ // from ioutil:
+ 
+ WORDX readWord(FILE *f) {

Added: head/games/billardgl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/billardgl/pkg-descr	Thu Apr 13 20:03:56 2017	(r438478)
@@ -0,0 +1,6 @@
+BillardGL is an OpenGL pool billiard simulation, which was developed
+within the scope of our course "Computergraphics" at the University
+of Freiburg (Germany). BillardGL is puplished under the GPL and is
+available for download for Windows and Linux.
+
+WWW: http://www.billardgl.de/index-en.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704132003.v3DK3ukg013615>