aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-07-05 18:25:49 +0000
committerJohn Marino <marino@FreeBSD.org>2014-07-05 18:25:49 +0000
commitec79062e0273c74c642b6c3b366cf7c6e4d03dec (patch)
tree08fdb344ccd96ce402c10d85516d5c9520607bd5
parent1a651092680cbb8bc2f4f97eb233634439e2b804 (diff)
downloadports-ec79062e0273c74c642b6c3b366cf7c6e4d03dec.tar.gz
ports-ec79062e0273c74c642b6c3b366cf7c6e4d03dec.zip
Notes
-rw-r--r--games/pongix/Makefile27
-rw-r--r--games/pongix/files/patch-src_paleta.c20
-rw-r--r--games/pongix/pkg-descr5
-rw-r--r--games/pongix/pkg-plist4
4 files changed, 34 insertions, 22 deletions
diff --git a/games/pongix/Makefile b/games/pongix/Makefile
index ccf2fc94e6a6..8a1f5b6657a7 100644
--- a/games/pongix/Makefile
+++ b/games/pongix/Makefile
@@ -16,23 +16,18 @@ USES= gmake
USE_SDL= sdl image net
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD}
+LDFLAGS+= -lm -L${LOCALBASE}/lib ${PTHREAD}
+PORTDOCS= AUTHORS ChangeLog README
-NO_STAGE= yes
do-install:
- ${MKDIR} ${DATADIR}
- @cd ${WRKSRC}/src && \
- ${INSTALL_PROGRAM} pongix ${PREFIX}/bin
- @cd ${WRKSRC}/data && \
- ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
- ${FIND} -E * -type f -iregex ".*\.(jpg|bmp)" \
- -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-
-post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC} && \
- ${INSTALL_DATA} AUTHORS ChangeLog README ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/src && \
+ ${INSTALL_PROGRAM} pongix ${STAGEDIR}${PREFIX}/bin
+ cd ${WRKSRC}/data && ${FIND} * -type d \
+ -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
+ ${FIND} -E * -type f -iregex ".*\.(jpg|bmp)" \
+ -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
+ cd ${WRKSRC} && ${INSTALL_DATA} \
+ AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/pongix/files/patch-src_paleta.c b/games/pongix/files/patch-src_paleta.c
new file mode 100644
index 000000000000..a6ba8e5ab109
--- /dev/null
+++ b/games/pongix/files/patch-src_paleta.c
@@ -0,0 +1,20 @@
+--- src/paleta.c.orig 2005-12-27 05:37:27.000000000 +0000
++++ src/paleta.c
+@@ -89,7 +89,7 @@ void paleta_manejar_con_teclado (Paleta
+ {
+ }
+
+-int paleta_recibir_pos (Paleta * data, TCPsocket origen)
++void paleta_recibir_pos (Paleta * data, TCPsocket origen)
+ {
+ char buffer [5];
+
+@@ -104,7 +104,7 @@ int paleta_recibir_pos (Paleta * data, T
+ data->y = atoi (buffer);
+ }
+
+-int paleta_enviar_pos (Paleta * data, TCPsocket destino)
++void paleta_enviar_pos (Paleta * data, TCPsocket destino)
+ {
+ char buffer [5];
+
diff --git a/games/pongix/pkg-descr b/games/pongix/pkg-descr
index 72df3a7179bb..4f20ea223544 100644
--- a/games/pongix/pkg-descr
+++ b/games/pongix/pkg-descr
@@ -1,3 +1,4 @@
-Pongix is a free game based on classical pong game with support for net game.
+Pongix is a free game based on the classical pong game with support for
+net game.
-WWW: http://www.losersjuegos.com.ar
+WWW: http://www.losersjuegos.com.ar
diff --git a/games/pongix/pkg-plist b/games/pongix/pkg-plist
index 2f0535be84a2..39a8efc902e6 100644
--- a/games/pongix/pkg-plist
+++ b/games/pongix/pkg-plist
@@ -1,10 +1,6 @@
bin/pongix
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/fondo_juego.jpg
%%DATADIR%%/fuente.bmp
%%DATADIR%%/paleta.bmp
%%DATADIR%%/pelota.bmp
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%