aboutsummaryrefslogtreecommitdiff
path: root/games/glchess/Makefile
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:34:37 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-04-20 05:34:37 +0000
commit9867ff0ad20ad960c8bd21aeada589172708f43f (patch)
treeed9c39ce6578a6529ecd228438220fc69f873bb9 /games/glchess/Makefile
parent4b0775b6c11344f47f4827359e49d61f0e2daa27 (diff)
- Update to 0.9.0
PR: ports/96004 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=159983
Diffstat (limited to 'games/glchess/Makefile')
-rw-r--r--games/glchess/Makefile56
1 files changed, 21 insertions, 35 deletions
diff --git a/games/glchess/Makefile b/games/glchess/Makefile
index afa7eff7e6d1..3eb1cf8bccb5 100644
--- a/games/glchess/Makefile
+++ b/games/glchess/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= glchess
-PORTVERSION= 0.4.7
-PORTREVISION= 2
+PORTVERSION= 0.9.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,48 +14,35 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= A 3D OpenGL based chess game
-LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:${PORTSDIR}/x11-toolkits/py-gtkglext
USE_X_PREFIX= yes
-USE_GNOME= gtk12
-USE_GMAKE= yes
-USE_GL= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
-USE_AUTOTOOLS= automake:14 autoconf:213
-USE_REINPLACE= yes
+USE_PYTHON= yes
+NO_BUILD= yes
-MAN6= ${PORTNAME}.6
+PORTDOCS= ChangeLog README TODO
-pre-patch:
- @${REINPLACE_CMD} -e 's!/usr/local/share/games/glchess!${DATADIR}!' \
- ${WRKSRC}/glchessrc
- @${REINPLACE_CMD} -e 's!/etc!${PREFIX}/etc!' \
- ${WRKSRC}/src/config.c
- @${REINPLACE_CMD} -e 's|^aclocal|${ACLOCAL}|; \
- s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \
- ${WRKSRC}/autogen.sh
- @${REINPLACE_CMD} -e 's|"gnuchessx"|"gnuchess"|' ${WRKSRC}/src/main.c
-
-pre-configure:
- cd ${WRKSRC}; ${SH} autogen.sh
+post-patch:
+.for file in glchess ui/gtkui/gtkui.py
+ @${REINPLACE_CMD} -e \
+ 's|^python |${PYTHON_CMD} |g ; \
+ s|/usr/share/games/glchess|${DATADIR}|g' ${WRKSRC}/${file}
+.endfor
do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/glchess ${PREFIX}/bin
@${MKDIR} ${DATADIR}
- @${MKDIR} ${DATADIR}/textures
- @${INSTALL_PROGRAM} ${WRKSRC}/src/glchess \
- ${PREFIX}/bin
- @${INSTALL_DATA} ${WRKSRC}/glchessrc \
- ${PREFIX}/etc
- @${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 \
- ${PREFIX}/man/man6
- @${INSTALL_DATA} ${WRKSRC}/textures/*.rgb \
- ${DATADIR}/textures
-.ifndef(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR}
+ @${MKDIR} ${DATADIR}/gui
+ ${INSTALL_DATA} ${WRKSRC}/ui/gtkui/*.glade ${DATADIR}/gui
+ @${MKDIR} ${DATADIR}/ui
+ ${INSTALL_DATA} ${WRKSRC}/ui/*.py ${DATADIR}/ui
+ @${MKDIR} ${DATADIR}/ui/gtkui
+ ${INSTALL_DATA} ${WRKSRC}/ui/gtkui/*.py ${DATADIR}/ui/gtkui
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ChangeLog README TODO
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif #NOPORTDOCS
@${CAT} ${PKGMESSAGE}