From a7de2748597fc5b7c48a8cddc12f9efbefd56e2e Mon Sep 17 00:00:00 2001 From: Jason Helfman Date: Mon, 19 Aug 2013 05:45:23 +0000 Subject: - shift master_sites around, and use project as primary - drop default defined docsdir - adopt new options format for docs, and define --- games/gnake/Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'games') diff --git a/games/gnake/Makefile b/games/gnake/Makefile index 24b4718de952..930ebc99b3ce 100644 --- a/games/gnake/Makefile +++ b/games/gnake/Makefile @@ -4,19 +4,21 @@ PORTNAME= gnake PORTVERSION= 0.94b CATEGORIES= games -MASTER_SITES= LOCAL/chinsan \ - http://lightless.org/files/ +MASTER_SITES= http://lightless.org/files/ \ + LOCAL/jgh/games/${PORTNAME}/ DISTNAME= Gnake.${PORTVERSION} MAINTAINER= jgh@FreeBSD.org COMMENT= Nibbles clone for GNU/Linux and *BSD LICENSE= GPLv2 + +OPTIONS_DEFINE= DOCS + LDFLAGS+= -L${LOCALBASE}/lib -lncurses CFLAGS+= -Wall WRKSRC= ${WRKDIR}/${PORTNAME} -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME} PORTDOCS= README PLIST_FILES= bin/${PORTNAME} @@ -24,11 +26,13 @@ do-build: ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PORTNAME} \ ${WRKSRC}/gnake.c +.include + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin -.if !defined(NOPORTDOCS) - @${INSTALL} -d ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif .include -- cgit v1.2.3