1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Bump PORTREVISION

- Change master sites, add icon
- Add license (BSD3CLAUSE)
- USES gmake instead of USE_GMAKE
- Change PLIST_FILES
- Support STAGEDIR
- Add DOCS and Option
- Add files/galaxis.desktop
- Add patch, fix bad C++ code

Approved by:	pawel / wg (mentors, implicit)
This commit is contained in:
Rusmir Dusko 2013-12-22 13:50:38 +00:00
parent 140ec0e71f
commit 8ac11b29f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337189
4 changed files with 57 additions and 7 deletions

View File

@ -3,22 +3,40 @@
PORTNAME= galaxis
PORTVERSION= 1.8
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.catb.org/~esr/galaxis/
MASTER_SITES= http://www.catb.org/~esr/galaxis/ \
SF/nemysisfreebsdp/games/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Clone of the nifty little Macintosh game
LICENSE= BSD3CLAUSE
USES= gmake
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DNDEBUG"
ALL_TARGET= ${PORTNAME}
USE_GMAKE= yes
MAN6= ${PORTNAME}.6
PLIST_FILES= bin/${PORTNAME}
PLIST_FILES= bin/${PORTNAME} \
man/man6/${PORTNAME}.6.gz \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png
PORTDOCS= README
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6/
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

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

View File

@ -0,0 +1,10 @@
[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

@ -0,0 +1,20 @@
--- ./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[];
{