svn commit: r332117 - head/graphics/py-pyglet

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Oct 30 14:30:30 UTC 2013


Author: amdmi3
Date: Wed Oct 30 14:30:29 2013
New Revision: 332117
URL: http://svnweb.freebsd.org/changeset/ports/332117

Log:
  - Support staging
  - Use new LIB_DEPENDS syntax

Modified:
  head/graphics/py-pyglet/Makefile

Modified: head/graphics/py-pyglet/Makefile
==============================================================================
--- head/graphics/py-pyglet/Makefile	Wed Oct 30 14:24:19 2013	(r332116)
+++ head/graphics/py-pyglet/Makefile	Wed Oct 30 14:30:29 2013	(r332117)
@@ -10,18 +10,20 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	amdmi3 at FreeBSD.org
 COMMENT=	Cross-platform windowing and multimedia library for Python
 
-LIB_DEPENDS=	freetype:${PORTSDIR}/print/freetype2 \
-		fontconfig:${PORTSDIR}/x11-fonts/fontconfig
+LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
+		libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
 
 USE_PYTHON=	yes
-USE_PYDISTUTILS=	yes
+USE_PYDISTUTILS=yes
 USE_GL=		gl glu
 USE_OPENAL=	al
 
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_DEFAULT=DOCS EXAMPLES
+
 .include <bsd.port.options.mk>
 
 .if ${ARCH} != "i386"
@@ -29,13 +31,7 @@ IGNORE=		crashes or doesn't work on !i38
 .endif
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
-	${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
-.endif
+	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/
+	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}/
 
 .include <bsd.port.mk>


More information about the svn-ports-head mailing list