diff options
author | pawel <pawel@FreeBSD.org> | 2012-11-01 04:14:52 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2012-11-01 04:14:52 +0800 |
commit | 9f93b85cb4459b040ace187c8260cf73a35f385d (patch) | |
tree | 85ef042708d58e41df0c5b368934badc105a5aea /games/nsnake/Makefile | |
parent | 7848dc3f0fe66b682b2d9711a85593402c0e1934 (diff) | |
download | freebsd-ports-gnome-9f93b85cb4459b040ace187c8260cf73a35f385d.tar.gz freebsd-ports-gnome-9f93b85cb4459b040ace187c8260cf73a35f385d.tar.zst freebsd-ports-gnome-9f93b85cb4459b040ace187c8260cf73a35f385d.zip |
Update to version 1.4
PR: ports/172237
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Feature safe: yes
Diffstat (limited to 'games/nsnake/Makefile')
-rw-r--r-- | games/nsnake/Makefile | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/games/nsnake/Makefile b/games/nsnake/Makefile index 24739fc7df7a..ca05bec2eccc 100644 --- a/games/nsnake/Makefile +++ b/games/nsnake/Makefile @@ -2,24 +2,34 @@ # $FreeBSD$ PORTNAME= nsnake -PORTVERSION= 1.2.1 +PORTVERSION= 1.4 CATEGORIES= games MASTER_SITES= http://softs.malikania.fr/releases/ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org -COMMENT= A snake game written in C and ncurses +COMMENT= Snake game written in C and ncurses -MAN6= nsnake.6 -PLIST_FILES= bin/nsnake -PORTDOCS= LICENSE CHANGELOG -USE_NCURSES= yes +LICENSE= MIT -post-install: -.if !defined(NOPORTDOCS) +OPTIONS_DEFINE= DOCS + +MAN6= ${PORTNAME}.6 +PORTDOCS= CHANGELOG +PLIST_FILES= bin/${PORTNAME} + +.include <bsd.port.options.mk> + +do-build: + (cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c -lcurses) + +do-install: + (cd ${WRKSRC} \ + && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin \ + && ${INSTALL_MAN} ${PORTNAME}.6 ${MANPREFIX}/man/man6) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR} - @${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} CHANGELOG ${DOCSDIR}) .endif .include <bsd.port.mk> |