Update to 0.53

PR:		16694
Submitted by:	Will Andrews <andrews@technologist.com>
This commit is contained in:
Chris Piazza 2000-02-17 01:04:30 +00:00
parent 21099473fc
commit 6145c395a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25902
4 changed files with 68 additions and 7 deletions

View file

@ -1,13 +1,12 @@
# New ports collection makefile for: gltron
# Version required: 0.46
# Version required: 0.53
# Date created: 24 July 1999
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
DISTNAME= glTron-0.46
PKGNAME= gltron-0.46
DISTNAME= gltron-0.53
CATEGORIES= games
MASTER_SITES= http://www.ards.net/Andreas/gltron/
@ -18,15 +17,21 @@ LIB_DEPENDS= MesaGL.14:${PORTSDIR}/graphics/Mesa3 \
glut.3:${PORTSDIR}/graphics/Mesa3
USE_X_PREFIX= yes
USE_GMAKE= yes
MAKE_ENV+= OPT="${CFLAGS}"
do-install:
@ ${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/gltron/
.for FILE in *.sgi *.txt t-u-low.obj tron.mtl xenotron.ftx
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/share/gltron/
.endfor
@${INSTALL_PROGRAM} ${WRKSRC}/gltron ${PREFIX}/bin
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${PREFIX}/share/doc/gltron
@${MKDIR} ${PREFIX}/share/doc/gltron
.for file in CHANGELOG CREDITS README
@ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gltron
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/gltron
.endfor
.endif

View file

@ -1 +1 @@
MD5 (glTron-0.46.tar.gz) = faeaddeba285a46c8773a8307f60392a
MD5 (gltron-0.53.tar.gz) = 596aaa813c2c11411939e89a6d40d059

View file

@ -0,0 +1,44 @@
--- file.c Mon Jan 3 19:05:10 2000
+++ file.c.new Sun Feb 13 02:22:14 2000
@@ -1,13 +1,16 @@
#include "gltron.h"
+#ifndef SHARE1
+#define SHARE1 "\"/usr/local/share/gltron\""
+#endif
+#ifndef SHARE2
+#define SHARE2 "\"/usr/X11R6/share/gltron\""
+#endif
char* getFullPath(char *filename) {
char *path;
FILE *fp = NULL;
char *base;
- char *share1 = "/usr/share/games/gltron";
- char *share2 = "/usr/local/share/games/gltron";
-
/* check a few directories for the files and */
/* return the full path. */
@@ -43,8 +46,8 @@
printf("unsuccessful\n");
}
- path = malloc(strlen(share1) + 1 + strlen(filename) + 1);
- sprintf(path, "%s%c%s", share1, SEPERATOR, filename);
+ path = malloc(strlen(SHARE1) + 1 + strlen(filename) + 1);
+ sprintf(path, "%s%c%s", SHARE1, SEPERATOR, filename);
printf("checking '%s'", path);
fp = fopen(path, "r");
@@ -56,8 +59,8 @@
free(path);
printf("unsuccessful\n");
- path = malloc(strlen(share2) + 1 + strlen(filename) + 1);
- sprintf(path, "%s%c%s", share2, SEPERATOR, filename);
+ path = malloc(strlen(SHARE2) + 1 + strlen(filename) + 1);
+ sprintf(path, "%s%c%s", SHARE2, SEPERATOR, filename);
printf("checking '%s'", path);
fp = fopen(path, "r");

View file

@ -2,4 +2,16 @@ bin/gltron
share/doc/gltron/CHANGELOG
share/doc/gltron/CREDITS
share/doc/gltron/README
share/gltron/gltron.sgi
share/gltron/gltron_crash.sgi
share/gltron/gltron_floor.sgi
share/gltron/gltron_wall.sgi
share/gltron/menu.txt
share/gltron/settings.txt
share/gltron/t-u-low.obj
share/gltron/tron.mtl
share/gltron/xenotron.0.sgi
share/gltron/xenotron.1.sgi
share/gltron/xenotron.ftx
@dirrm share/doc/gltron
@dirrm share/gltron