aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2001-12-27 02:36:58 +0800
committerpat <pat@FreeBSD.org>2001-12-27 02:36:58 +0800
commit5a21d5f8cccc723f520240ceff58e5ba24781e04 (patch)
treef14f4e7544abc51ba99b7425e68366f7c8e4d087 /games
parent34d2efa5a7866de0d0e00ee019751a47a038c283 (diff)
downloadfreebsd-ports-gnome-5a21d5f8cccc723f520240ceff58e5ba24781e04.tar.gz
freebsd-ports-gnome-5a21d5f8cccc723f520240ceff58e5ba24781e04.tar.zst
freebsd-ports-gnome-5a21d5f8cccc723f520240ceff58e5ba24781e04.zip
Update to 0.4.2
Diffstat (limited to 'games')
-rw-r--r--games/glchess/Makefile22
-rw-r--r--games/glchess/distinfo2
-rw-r--r--games/glchess/files/Makefile.bsd24
-rw-r--r--games/glchess/files/patch-Makefile15
-rw-r--r--games/glchess/files/patch-src::Makefile13
5 files changed, 38 insertions, 38 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
index b87aa512e959..781ff48075a1 100644
--- a/games/glchess/Makefile
+++ b/games/glchess/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= glchess
-PORTVERSION= 0.4.1
+PORTVERSION= 0.4.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -17,37 +17,41 @@ RUN_DEPENDS= crafty:${PORTSDIR}/games/crafty \
gnuchess:${PORTSDIR}/games/gnuchess
LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USE_X_PREFIX= yes
-USE_GMAKE= yes
USE_GTK= yes
USE_MESA= yes
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
MAN6= ${PORTNAME}.6
-MANCOMPRESSED= yes
pre-patch:
@${PERL} -pi.orig -e 's!/usr/local/share/games/glchess!${DATADIR}!' \
- ${WRKSRC}/glchessrc
+ ${WRKSRC}/../glchessrc
@${PERL} -pi.orig -e 's!/etc!${PREFIX}/etc!' \
- ${WRKSRC}/src/config.c
+ ${WRKSRC}/config.c
+ @${PERL} -pi.orig -e 's|VERSION|\"${PORTVERSION}\"|' \
+ ${WRKSRC}/dialog.c ${WRKSRC}/interface.c
+ @${PERL} -pi.orig -e 's|VERSION|${PORTVERSION}|; \
+ s|\"DATE\"||' ${WRKSRC}/../man/${PORTNAME}.6
+ @${CP} ${FILESDIR}/Makefile.bsd ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/textures
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/glchessrc \
+ @${INSTALL_DATA} ${WRKSRC}/../glchessrc \
${PREFIX}/etc
- @${INSTALL_MAN} ${WRKSRC}/man/glchess.6.gz \
+ @${INSTALL_MAN} ${WRKSRC}/../man/${PORTNAME}.6 \
${PREFIX}/man/man6
- @${INSTALL_DATA} ${WRKSRC}/textures/* \
+ @${INSTALL_DATA} ${WRKSRC}/../textures/*.rgb \
${DATADIR}/textures
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/../${file} ${DOCSDIR}
.endfor
.endif #NOPORTDOCS
diff --git a/games/glchess/distinfo b/games/glchess/distinfo
index 07b0bd646232..4195fea5cd5a 100644
--- a/games/glchess/distinfo
+++ b/games/glchess/distinfo
@@ -1 +1 @@
-MD5 (glchess-0.4.1.tar.gz) = b3dc50f4da81e6dc666bd2e09bde63c6
+MD5 (glchess-0.4.2.tar.gz) = 36e037279d233ba18ae00b9966dc054b
diff --git a/games/glchess/files/Makefile.bsd b/games/glchess/files/Makefile.bsd
new file mode 100644
index 000000000000..bebdc6bb70d3
--- /dev/null
+++ b/games/glchess/files/Makefile.bsd
@@ -0,0 +1,24 @@
+CFLAGS += `${GTK_CONFIG} --cflags` $(INCLDIR) ${PTHREAD_CFLAGS}
+LIBS = `${GTK_CONFIG} --libs` -lgtkgl -lGL -lGLU -lm -lXi -lXmu ${PTHREAD_LIBS}
+
+OBJS = main.o \
+ anim.o \
+ config.o \
+ draw.o \
+ dialog.o \
+ engine.o \
+ game.o \
+ global.o \
+ image.o \
+ interface.o \
+ menu.o \
+ models.o \
+ move.o \
+ player.o \
+ prefs.o \
+ san.o \
+ splash.o \
+ texture.o \
+
+all: $(OBJS)
+ $(CC) $(CFLAGS) $(OBJS) -o glchess $(LIBS)
diff --git a/games/glchess/files/patch-Makefile b/games/glchess/files/patch-Makefile
deleted file mode 100644
index 873998240957..000000000000
--- a/games/glchess/files/patch-Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
---- Makefile.orig Sat Dec 8 19:18:34 2001
-+++ Makefile Sat Dec 8 19:19:24 2001
-@@ -1,4 +1,3 @@
--PREFIX = /usr/local
-
- INSTALLDIR = $(PREFIX)/bin
- MANDIR = $(PREFIX)/man/man6
-@@ -8,7 +7,6 @@
- DATE = `date "+%Y-%m-%d"`
-
- all:
-- @clear
- @echo "Building glChess..."
- @cd src && make
- @mv src/glchess .
diff --git a/games/glchess/files/patch-src::Makefile b/games/glchess/files/patch-src::Makefile
deleted file mode 100644
index 3404fb9e977e..000000000000
--- a/games/glchess/files/patch-src::Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/Makefile.orig Tue Jul 17 16:05:53 2001
-+++ src/Makefile Sun Jul 29 20:17:58 2001
-@@ -1,7 +1,6 @@
--CC = gcc
--CFLAGS = -g -Wall `gtk-config --cflags`
--
--LIBS = `gtk-config --libs` -lgtkgl -lGL -lGLU -lm -L/usr/X11R6/lib -lXi -lXmu
-+CFLAGS += `${GTK_CONFIG} --cflags` $(INCLDIR) ${PTHREAD_CFLAGS}
-+INCLDIR = -I${X11BASE}/include -I${LOCALBASE}/include
-+LIBS = `${GTK_CONFIG} --libs` -L${X11BASE}/lib -lgtkgl -lGL -lGLU -lm -lXi -lXmu ${PTHREAD_LIBS}
-
- OBJS = main.o \
- animation.o \