aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-06 23:06:42 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-06 23:06:42 +0800
commit3cffd811713ca2f175b49163eddfd772118da368 (patch)
tree23b7139cfdb72d4a7c7addb2ae42b58cf93ce98f /devel
parenta58dbe0e317a6a1e45e41d6ea8b46f13a8dafafa (diff)
downloadfreebsd-ports-gnome-3cffd811713ca2f175b49163eddfd772118da368.tar.gz
freebsd-ports-gnome-3cffd811713ca2f175b49163eddfd772118da368.tar.zst
freebsd-ports-gnome-3cffd811713ca2f175b49163eddfd772118da368.zip
- Support staging
- Define DOCS option - USES -> gmake
Diffstat (limited to 'devel')
-rw-r--r--devel/glui/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/devel/glui/Makefile b/devel/glui/Makefile
index 630e6064859e..8c1020efb242 100644
--- a/devel/glui/Makefile
+++ b/devel/glui/Makefile
@@ -11,10 +11,11 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= GLUT-based C++ user interface library
+USES= gmake
USE_GL= glut
-USE_GMAKE= yes
USE_XORG= xmu xext x11 xi
USE_LDCONFIG= yes
+
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -22,15 +23,15 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src
PLIST_FILES= include/glui.h lib/libglui.a lib/libglui.so lib/libglui.so.0
PORTDOCS= *
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
do-install:
- ${INSTALL_DATA} ${WRKSRC}/include/GL/glui.h ${PREFIX}/include/
- ${INSTALL_DATA} ${WRKSRC}/lib/libglui.a ${PREFIX}/lib/
- ${INSTALL_DATA} ${WRKSRC}/lib/libglui.so ${PREFIX}/lib/libglui.so.0
- ${LN} -s libglui.so.0 ${PREFIX}/lib/libglui.so
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/glui_manual.pdf ${DOCSDIR}/
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/include/GL/glui.h ${STAGEDIR}${PREFIX}/include
+ ${INSTALL_LIB} ${WRKSRC}/lib/libglui.a ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} ${WRKSRC}/lib/libglui.so \
+ ${STAGEDIR}${PREFIX}/lib/libglui.so.0
+ ${LN} -s libglui.so.0 ${STAGEDIR}${PREFIX}/lib/libglui.so
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/glui_manual.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>