- 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>
This commit is contained in:
parent
7bc94d192d
commit
8433d6ae98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340346
2 changed files with 22 additions and 6 deletions
|
@ -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}
|
||||
|
|
11
games/3dpong/files/patch-src__text.c
Normal file
11
games/3dpong/files/patch-src__text.c
Normal file
|
@ -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)
|
||||
{
|
Loading…
Reference in a new issue