svn commit: r332069 - head/games/biorythm

Danilo Egea Gondolfo danilo at FreeBSD.org
Wed Oct 30 05:37:57 UTC 2013


Author: danilo
Date: Wed Oct 30 05:37:56 2013
New Revision: 332069
URL: http://svnweb.freebsd.org/changeset/ports/332069

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

Modified:
  head/games/biorythm/Makefile

Modified: head/games/biorythm/Makefile
==============================================================================
--- head/games/biorythm/Makefile	Wed Oct 30 05:34:40 2013	(r332068)
+++ head/games/biorythm/Makefile	Wed Oct 30 05:37:56 2013	(r332069)
@@ -9,14 +9,14 @@ MASTER_SITES=	http://shh.thathost.com/pu
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Simple biorhythm calculation program
 
-LIB_DEPENDS=	shhmsg.1:${PORTSDIR}/devel/libshhmsg \
-		shhopt.1:${PORTSDIR}/devel/libshhopt
+LIB_DEPENDS=	libshhmsg.so:${PORTSDIR}/devel/libshhmsg \
+		libshhopt.so:${PORTSDIR}/devel/libshhopt
 
-MAN6=		${PORTNAME}.6
 PORTDOCS=	ChangeLog README
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} man/man6/${PORTNAME}.6.gz
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e '/VERSION/s|[[:space:]]"$$|\\n"| ; \
 		/COMPILED_DATE/d' ${WRKSRC}/biorythm.c
@@ -27,13 +27,11 @@ do-build:
 		-o ${PORTNAME} -L${LOCALBASE}/lib -lshhmsg -lshhopt -lm
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for file in ChangeLog README
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list