aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-01-20 03:59:10 +0800
committernemysis <nemysis@FreeBSD.org>2014-01-20 03:59:10 +0800
commit4fce2892add81ed56829da059bad87f1f56a4a5d (patch)
treef7b18d5ade87916059eafc3ce0039215d154ec2f /games
parent422779fa587b816e73cff5808ab0a8d73ae09c0e (diff)
downloadfreebsd-ports-gnome-4fce2892add81ed56829da059bad87f1f56a4a5d.tar.gz
freebsd-ports-gnome-4fce2892add81ed56829da059bad87f1f56a4a5d.tar.zst
freebsd-ports-gnome-4fce2892add81ed56829da059bad87f1f56a4a5d.zip
- Change Makefile header
- Add USE_CSTD=gnu89 - Change Desktop entry file - Break lines around 80 characters - Add patch, fix bad C++ code PR: ports/185756 Submitted by: Hardy Schumacher <hardy.schumacher@gmx.de>
Diffstat (limited to 'games')
-rw-r--r--games/3dpong/Makefile17
-rw-r--r--games/3dpong/files/patch-src__text.c11
2 files changed, 22 insertions, 6 deletions
diff --git a/games/3dpong/Makefile b/games/3dpong/Makefile
index 31d6762b4a1d..3c62609f42f6 100644
--- a/games/3dpong/Makefile
+++ b/games/3dpong/Makefile
@@ -1,3 +1,4 @@
+# Created by: Andrey Zakhvatov <andy@icc.surw.chel.su>
# $FreeBSD$
PORTNAME= 3dpong
@@ -21,25 +22,29 @@ USES= gmake
USE_XORG= x11
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
XLIB="-L${LOCALBASE}/lib -lX11"
+USE_CSTD= gnu89
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
PORTEXAMPLES= *
-DESKTOP_ENTRIES="3D Pong" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" false
-
OPTIONS_DEFINE= DOCS EXAMPLES
+DESKTOP_ENTRIES="3D Pong" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
+
post-patch:
- @${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
+ @${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' \
+ ${WRKSRC}/src/3dpong.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${STAGEDIR}${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.6 \
+ ${STAGEDIR}${MAN6PREFIX}/man/man6/
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
diff --git a/games/3dpong/files/patch-src__text.c b/games/3dpong/files/patch-src__text.c
new file mode 100644
index 000000000000..86d61096009d
--- /dev/null
+++ b/games/3dpong/files/patch-src__text.c
@@ -0,0 +1,11 @@
+--- ./src/text.c.orig 1997-12-11 00:27:49.000000000 +0100
++++ ./src/text.c 2014-01-19 19:19:52.000000000 +0100
+@@ -7,6 +7,8 @@
+
+ #include <X11/Xlib.h>
+ #include "text.h"
++#include <stdio.h>
++#include <string.h>
+
+ int FontHeight(XFontStruct *font_struct)
+ {