aboutsummaryrefslogtreecommitdiff
path: root/games/hex
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
commit89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df (patch)
treedab293772a4c12d5e7f6c0f30c1e8ae09e1cfe4d /games/hex
parent65b63032bfb3a3f1c8ac4ee660ac83927b43c92a (diff)
downloadports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.tar.gz
ports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.zip
Notes
Diffstat (limited to 'games/hex')
-rw-r--r--games/hex/Makefile31
-rw-r--r--games/hex/files/patch-ac4
-rw-r--r--games/hex/pkg-plist9
3 files changed, 23 insertions, 21 deletions
diff --git a/games/hex/Makefile b/games/hex/Makefile
index f8f0884bf473..6ab48d968bc3 100644
--- a/games/hex/Makefile
+++ b/games/hex/Makefile
@@ -13,29 +13,30 @@ MASTER_SITES= http://www.nott.ac.uk/~psystrj/ \
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= Imlib.5:${PORTSDIR}/graphics/imlib \
- gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+LIB_DEPENDS= Imlib.5:${PORTSDIR}/graphics/imlib
-USE_X_PREFIX= YES
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-USE_GMAKE= YES
WRKSRC= ${WRKDIR}/${DISTNAME}
-
-pre-install:
- @${MKDIR} ${PREFIX}/share/hex
- @${MKDIR} ${PREFIX}/share/hex/levels
- @${MKDIR} ${PREFIX}/share/hex/graphics
+USE_X_PREFIX= YES
+USE_GMAKE= YES
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/hex ${PREFIX}/bin/hex
- @${INSTALL_DATA} ${WRKSRC}/HISTORY ${PREFIX}/share/hex/HISTORY
- @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/hex/README
- @${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/hex/TODO
+ ${INSTALL_PROGRAM} ${WRKSRC}/hex ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/share/hex/graphics
.for i in 0 1 2 3 4 5 6 7 8
- @${INSTALL_DATA} ${WRKSRC}/graphics/ball${i}.png \
+ ${INSTALL_DATA} ${WRKSRC}/graphics/ball${i}.png \
${PREFIX}/share/hex/graphics/ball${i}.png
.endfor
- @${INSTALL_DATA} ${WRKSRC}/levels/Level1 \
+ @${MKDIR} ${PREFIX}/share/hex/levels
+ ${INSTALL_DATA} ${WRKSRC}/levels/Level1 \
${PREFIX}/share/hex/levels/Level1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/hex
+.for file in HISTORY README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/hex
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/games/hex/files/patch-ac b/games/hex/files/patch-ac
index ef00d2dd9927..379521b6dbb7 100644
--- a/games/hex/files/patch-ac
+++ b/games/hex/files/patch-ac
@@ -11,11 +11,11 @@
.c.o:
- $(CC) `gtk-config --cflags` -c $*.c -o $*.o
-+ $(CC) $(CFLAGS) `gtk12-config --cflags` -c $*.c -o $*.o
++ $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -c $*.c -o $*.o
hex: $(OBJS)
- $(CC) $(LIBS) `gtk-config --libs` $(OBJS) -o $@
-+ $(CC) $(LIBS) `gtk12-config --libs` $(OBJS) -o $@
++ $(CC) $(LIBS) `$(GTK_CONFIG) --libs` $(OBJS) -o $@
clean:
rm -f *~ *.o hex
diff --git a/games/hex/pkg-plist b/games/hex/pkg-plist
index 58d0f267b5f2..86bb3435740b 100644
--- a/games/hex/pkg-plist
+++ b/games/hex/pkg-plist
@@ -1,5 +1,7 @@
bin/hex
-share/hex/levels/Level1
+share/doc/hex/HISTORY
+share/doc/hex/README
+share/doc/hex/TODO
share/hex/graphics/ball0.png
share/hex/graphics/ball1.png
share/hex/graphics/ball2.png
@@ -9,9 +11,8 @@ share/hex/graphics/ball5.png
share/hex/graphics/ball6.png
share/hex/graphics/ball7.png
share/hex/graphics/ball8.png
-share/hex/README
-share/hex/TODO
-share/hex/HISTORY
+share/hex/levels/Level1
@dirrm share/hex/levels
@dirrm share/hex/graphics
@dirrm share/hex
+@dirrm share/doc/hex