svn commit: r336362 - head/astro/planets

Danilo Egea Gondolfo danilo at FreeBSD.org
Fri Dec 13 17:08:16 UTC 2013


Author: danilo
Date: Fri Dec 13 17:08:15 2013
New Revision: 336362
URL: http://svnweb.freebsd.org/changeset/ports/336362

Log:
  - Add stage support
  - Add DOCS option
  - Use USE_XORG instead of defined(WITHOUT_X11) + BROKEN

Modified:
  head/astro/planets/Makefile

Modified: head/astro/planets/Makefile
==============================================================================
--- head/astro/planets/Makefile	Fri Dec 13 16:08:34 2013	(r336361)
+++ head/astro/planets/Makefile	Fri Dec 13 17:08:15 2013	(r336362)
@@ -15,26 +15,21 @@ LICENSE=	GPLv2
 
 BUILD_DEPENDS=	ocaml:${PORTSDIR}/lang/ocaml
 
-NO_STAGE=	yes
 USES=		gmake
+USE_XORG=	x11
 ALL_TARGET=	${PORTNAME}
 
-MAN1=		planets.1
-PORTDOCS=	KEYBINDINGS.txt getting_started.html
-PLIST_FILES=	bin/planets
+OPTIONS_DEFINE=	DOCS
 
-.if defined(WITHOUT_X11)
-BROKEN=		Does not build without X11 support
-.endif
+PORTDOCS=	KEYBINDINGS.txt getting_started.html
+PLIST_FILES=	bin/planets man/man1/planets.1.gz
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/planets.1 ${MANPREFIX}/man/man1
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/planets.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list