Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 14:10:23 +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: r332377 - head/games/freedoko
Message-ID:  <201311011410.rA1EAOHB010959@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Fri Nov  1 14:10:23 2013
New Revision: 332377
URL: http://svnweb.freebsd.org/changeset/ports/332377

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

Modified:
  head/games/freedoko/Makefile

Modified: head/games/freedoko/Makefile
==============================================================================
--- head/games/freedoko/Makefile	Fri Nov  1 13:53:59 2013	(r332376)
+++ head/games/freedoko/Makefile	Fri Nov  1 14:10:23 2013	(r332377)
@@ -14,8 +14,8 @@ COMMENT=	Play the card game Doppelkopf
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/../COPYING
 
-LIB_DEPENDS=	gnet-2.0.0:${PORTSDIR}/net/gnet2 \
-		gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
+LIB_DEPENDS=	libgnet-2.0.so:${PORTSDIR}/net/gnet2 \
+		libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
 
 WRKSRC=		${WRKDIR}/${DISTNAME:C/\.src$//}/src
 
@@ -23,7 +23,8 @@ USE_ZIP=	yes
 USES=		gmake pkgconfig
 MAKE_ENV=	OS="${OPSYS}" DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}"
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 post-patch:
 	@${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
 		's|\.\./data|$$(DATADIR)|g ; \
@@ -35,20 +36,18 @@ post-patch:
 		 s|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/misc/setting.cpp
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${PREFIX}/bin
-	${LN} -sf FreeDoko ${PREFIX}/bin/freedoko
-	@${MKDIR} ${DATADIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/FreeDoko ${STAGEDIR}${PREFIX}/bin
+	${LN} -sf FreeDoko ${STAGEDIR}${PREFIX}/bin/freedoko
+	@${MKDIR} ${STAGEDIR}${DATADIR}
 .for file in icon.png logo.png
-	${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DATADIR}
 .endfor
 .for dir in backgrounds cardsets rules translations
-	@cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \
-		${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
+	cd ${WRKSRC}/../data && ${FIND} ${dir} ! -name "*Makefile*" | \
+		${CPIO} --quiet -pdum ${STAGEDIR}${DATADIR}
 .endfor
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/../doc/manual && ${FIND} . | \
-		${CPIO} --quiet -pdum -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/../doc/manual && ${FIND} . | \
+		${CPIO} --quiet -pdum ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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