Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2013 19:56:12 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r333721 - head/games/xmastermind
Message-ID:  <201311131956.rADJuCeG071374@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Wed Nov 13 19:56:11 2013
New Revision: 333721
URL: http://svnweb.freebsd.org/changeset/ports/333721

Log:
  - Convert LIB_DEPENDS to new syntax
  - Add DOCS option
  - Add stage support

Modified:
  head/games/xmastermind/Makefile

Modified: head/games/xmastermind/Makefile
==============================================================================
--- head/games/xmastermind/Makefile	Wed Nov 13 19:45:57 2013	(r333720)
+++ head/games/xmastermind/Makefile	Wed Nov 13 19:56:11 2013	(r333721)
@@ -12,7 +12,7 @@ COMMENT=	Mastermind game for X Window Sy
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	forms:${PORTSDIR}/x11-toolkits/xforms
+LIB_DEPENDS=	libforms.so:${PORTSDIR}/x11-toolkits/xforms
 
 USE_XORG=	x11 xpm
 MAKE_ENV=	GRAPHLIBS="${LDFLAGS}"
@@ -23,7 +23,8 @@ LDFLAGS+=	-L${LOCALBASE}/lib -lforms -lX
 PORTDOCS=	BUGS README.for.developers README.for.users
 PLIST_FILES=	bin/${PORTNAME}
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		'/^CC/s| =| ?=| ; \
@@ -32,15 +33,11 @@ post-patch:
 	@${REINPLACE_CMD} -e \
 		's|malloc.h|stdlib.h|' ${WRKSRC}/list.h
 
-.include <bsd.port.options.mk>
-
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${PORTDOCS}
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
 .endfor
-.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311131956.rADJuCeG071374>