diff options
author | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-24 08:20:21 +0000 |
---|---|---|
committer | Rusmir Dusko <nemysis@FreeBSD.org> | 2013-12-24 08:20:21 +0000 |
commit | 7073c9751cebca76fdda41dc891ba1e05f61604d (patch) | |
tree | 45b19b2a73385e51019907604bf2190ff916cc2b /games/icbm3d | |
parent | 8238bf7aa31057461d7fca3dfba05c6bd436d002 (diff) |
Notes
Diffstat (limited to 'games/icbm3d')
-rw-r--r-- | games/icbm3d/Makefile | 31 | ||||
-rw-r--r-- | games/icbm3d/distinfo | 4 | ||||
-rw-r--r-- | games/icbm3d/files/patch-makefile | 10 | ||||
-rw-r--r-- | games/icbm3d/files/patch-randnum.c | 10 | ||||
-rw-r--r-- | games/icbm3d/files/patch-text.c | 10 |
5 files changed, 41 insertions, 24 deletions
diff --git a/games/icbm3d/Makefile b/games/icbm3d/Makefile index 9759b99d1377..e58773b68e09 100644 --- a/games/icbm3d/Makefile +++ b/games/icbm3d/Makefile @@ -3,43 +3,40 @@ PORTNAME= icbm3d PORTVERSION= 0.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/icbm3d/ \ ftp://ftp.billsgames.com/unix/x/icbm3d/ \ - http://www.newbreedsoftware.com/images/prodicons/:icons + SF/nemysisfreebsdp/games/${PORTNAME}/:icons DISTFILES= ${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX} \ - ${PORTNAME}.gif:icons + ${PORTNAME}.png:icons EXTRACT_ONLY= ${PORTNAME}.${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= nemysis@FreeBSD.org COMMENT= Inter-Continental Ballistic Missiles, 3D -WRKSRC= ${WRKDIR}/icbm3d +WRKSRC= ${WRKDIR}/${PORTNAME} USE_XORG= x11 MAKEFILE= makefile ALL_TARGET= ${PORTNAME} PLIST_FILES= bin/${PORTNAME} \ - share/pixmaps/${PORTNAME}.gif + share/pixmaps/${PORTNAME}.png PORTDOCS= README.txt -NO_STAGE= yes -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS -do-install: -# Executable - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin +DESKTOP_ENTRIES="ICBM3D" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" "" -# Pixmaps - ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.gif ${PREFIX}/share/pixmaps/ +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ -# Documentation -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/games/icbm3d/distinfo b/games/icbm3d/distinfo index 87980476153c..66701fee3407 100644 --- a/games/icbm3d/distinfo +++ b/games/icbm3d/distinfo @@ -1,4 +1,4 @@ SHA256 (icbm3d.0.4.tar.gz) = 9ad41c154ef47695771a26875d5415bcedcb139352b1e2175f386d206b0038fd SIZE (icbm3d.0.4.tar.gz) = 31187 -SHA256 (icbm3d.gif) = e5d6d45ee11ff669414ac2e22943a0786b62b72035884a06abd5f12dcd0d5f15 -SIZE (icbm3d.gif) = 1024 +SHA256 (icbm3d.png) = 993ef04425b4211a699437076386f27368abf5a3d660194c1d800e20fcd1517c +SIZE (icbm3d.png) = 877 diff --git a/games/icbm3d/files/patch-makefile b/games/icbm3d/files/patch-makefile index 09919c80adb8..9c6128719880 100644 --- a/games/icbm3d/files/patch-makefile +++ b/games/icbm3d/files/patch-makefile @@ -1,13 +1,13 @@ ---- makefile.orig 1998-07-31 06:41:20.000000000 +0200 -+++ makefile 2012-09-02 23:21:36.000000000 +0200 +--- ./makefile.orig 1998-07-31 06:41:20.000000000 +0200 ++++ ./makefile 2013-12-24 08:28:45.000000000 +0100 @@ -9,14 +9,16 @@ # Makefile user-definable variables------------------------------------------ -CC=gcc -+CC?=g++ -+PREFIX?=/usr/local -+LOCALBASE?=/usr/local ++CC?=${CC} ++PREFIX?=${PREFIX} ++LOCALBASE?=${PREFIX} MATHLIB=-lm INSTALLROOT=$(PREFIX) diff --git a/games/icbm3d/files/patch-randnum.c b/games/icbm3d/files/patch-randnum.c new file mode 100644 index 000000000000..005d03d5060f --- /dev/null +++ b/games/icbm3d/files/patch-randnum.c @@ -0,0 +1,10 @@ +--- ./randnum.c.orig 1998-07-29 23:25:59.000000000 +0200 ++++ ./randnum.c 2013-12-24 08:33:46.000000000 +0100 +@@ -11,6 +11,7 @@ + #include <stdio.h> + #include <sys/time.h> + #include "randnum.h" ++#include <stdlib.h> + + void randinit() + { diff --git a/games/icbm3d/files/patch-text.c b/games/icbm3d/files/patch-text.c new file mode 100644 index 000000000000..732faa6764ef --- /dev/null +++ b/games/icbm3d/files/patch-text.c @@ -0,0 +1,10 @@ +--- ./text.c.orig 1998-07-29 23:25:59.000000000 +0200 ++++ ./text.c 2013-12-24 08:28:45.000000000 +0100 +@@ -7,6 +7,7 @@ + + #include <X11/Xlib.h> + #include "text.h" ++#include <string.h> + + int FontHeight(XFontStruct *font_struct) + { |