- Update to 1.9, announce message:

Add a desktop file. Port fix from the BSD maintainer

- Add WRKSRC=${WRKDIR}/${PORTNAME}- is bad packaged
- Remove Desktop entry file, use supplied desktop files
- Remove obsolete patch
This commit is contained in:
Rusmir Dusko 2014-07-28 19:38:04 +00:00
parent ba3ec598fd
commit 0a70e438e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363238
4 changed files with 6 additions and 36 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= galaxis
PORTVERSION= 1.8
PORTREVISION= 1
PORTVERSION= 1.9
CATEGORIES= games
MASTER_SITES= http://www.catb.org/~esr/galaxis/ \
SF/nemysisfreebsdp/games/:icons
@ -16,6 +15,8 @@ COMMENT= Clone of the nifty little Macintosh game
LICENSE= BSD3CLAUSE
WRKSRC= ${WRKDIR}/${PORTNAME}-
USES= gmake
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DNDEBUG"
ALL_TARGET= ${PORTNAME}
@ -26,12 +27,11 @@ PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
PORTDOCS= README
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/

View file

@ -1,4 +1,4 @@
SHA256 (galaxis-1.8.tar.gz) = bc36c7e5b1e1d96e5a8c6cdb117b3891833a99e99df709c5531c7d44009a8adc
SIZE (galaxis-1.8.tar.gz) = 8962
SHA256 (galaxis-1.9.tar.gz) = 14dea62d8148f3eb278e2a504981a5de17e87d4dd39177531a6cb9bccabc5eb7
SIZE (galaxis-1.9.tar.gz) = 11502
SHA256 (galaxis.png) = 628880218f4979e82a673a8843126dea745526e1bdf78bce0cfc05b93101bc07
SIZE (galaxis.png) = 1997

View file

@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=Galaxis
GenericName=Galaxis game
Comment=Clone of the nifty little Macintosh game
Icon=galaxis
Exec=galaxis
Categories=Game;ArcadeGame;
Terminal=true

View file

@ -1,20 +0,0 @@
--- ./galaxis.c.orig 2010-10-13 12:13:31.000000000 +0200
+++ ./galaxis.c 2013-12-22 12:01:31.000000000 +0100
@@ -15,6 +15,8 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h>
+#include <time.h>
+#include <unistd.h>
#ifndef A_UNDERLINE /* BSD curses */
#define beep() write(1,"\007",1);
@@ -644,7 +646,7 @@
}
}
-main(argc, argv)
+int main(argc, argv)
int argc;
char *argv[];
{