Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jan 2014 21:30:37 +0000 (UTC)
From:      Marcus von Appen <mva@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340112 - head/graphics/glew
Message-ID:  <201401172130.s0HLUb75091644@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mva
Date: Fri Jan 17 21:30:37 2014
New Revision: 340112
URL: http://svnweb.freebsd.org/changeset/ports/340112
QAT: https://qat.redports.org/buildarchive/r340112/

Log:
  - Enable stagedir support
  - Add LICENSE

Modified:
  head/graphics/glew/Makefile

Modified: head/graphics/glew/Makefile
==============================================================================
--- head/graphics/glew/Makefile	Fri Jan 17 21:29:00 2014	(r340111)
+++ head/graphics/glew/Makefile	Fri Jan 17 21:30:37 2014	(r340112)
@@ -11,6 +11,9 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	mva@FreeBSD.org
 COMMENT=	The OpenGL Extension Wrangler Library
 
+LICENSE=	MIT BSD3CLAUSE
+LICENSE_COMB=	dual
+
 USES=		gmake
 USE_XORG=	x11 xext xi xmu
 USE_GL=		yes
@@ -18,30 +21,27 @@ USE_LDCONFIG=	yes
 
 OPTIONS=	DOCS
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${STAGEDIR}${PREFIX}/bin
 
 	${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
-		${PREFIX}/lib/libGLEW.so.1
+		${STAGEDIR}${PREFIX}/lib/libGLEW.so.1
 	${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEWmx.so.${PORTVERSION} \
-		${PREFIX}/lib/libGLEWmx.so.1
-	${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${PREFIX}/lib/libGLEW.so
-	${LN} -sf ${PREFIX}/lib/libGLEWmx.so.1 ${PREFIX}/lib/libGLEWmx.so
-	${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${PREFIX}/lib
-	${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL
-	${INSTALL_DATA} ${WRKSRC}/glew.pc ${PREFIX}/libdata/pkgconfig
-	${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${PREFIX}/libdata/pkgconfig
-
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+		${STAGEDIR}${PREFIX}/lib/libGLEWmx.so.1
+	${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEW.so
+	${LN} -sf ${PREFIX}/lib/libGLEWmx.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so
+	${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${STAGEDIR}${PREFIX}/lib
+	${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
+	${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${STAGEDIR}${PREFIX}/include/GL
+	${INSTALL_DATA} ${WRKSRC}/glew.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
+	${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in css html jpg png
-	${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/*.${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?201401172130.s0HLUb75091644>