diff options
-rw-r--r-- | games/glchess/Makefile | 22 | ||||
-rw-r--r-- | games/glchess/distinfo | 2 | ||||
-rw-r--r-- | games/glchess/files/Makefile.bsd | 24 | ||||
-rw-r--r-- | games/glchess/files/patch-Makefile | 15 | ||||
-rw-r--r-- | games/glchess/files/patch-src::Makefile | 13 |
5 files changed, 38 insertions, 38 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile index b87aa51..781ff48 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 07b0bd6..4195fea 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 0000000..bebdc6b --- /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 8739982..0000000 --- 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 3404fb9..0000000 --- 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 \ |