2014-01-28 20:31:49 +00:00
|
|
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
2004-01-25 10:39:43 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= glfw
|
2014-01-28 20:31:49 +00:00
|
|
|
PORTVERSION= 3.0.4
|
2014-03-10 20:55:20 +00:00
|
|
|
PORTREVISION= 1
|
2004-01-25 10:39:43 +00:00
|
|
|
CATEGORIES= graphics
|
2008-03-20 20:08:37 +00:00
|
|
|
MASTER_SITES= SF
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2013-10-06 23:44:25 +00:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2012-10-18 01:52:49 +00:00
|
|
|
COMMENT= Portable framework for OpenGL development
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2012-12-17 17:35:34 +00:00
|
|
|
LICENSE= ZLIB
|
|
|
|
|
2014-01-28 20:31:49 +00:00
|
|
|
USES= cmake
|
2013-10-06 23:44:25 +00:00
|
|
|
USE_XORG= xi xrandr
|
2012-12-17 17:35:34 +00:00
|
|
|
USE_GL= glu
|
2014-01-28 20:31:49 +00:00
|
|
|
USE_GCC= yes
|
2011-08-31 22:01:23 +00:00
|
|
|
USE_LDCONFIG= yes
|
2008-06-15 20:17:03 +00:00
|
|
|
|
2014-01-28 20:31:49 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-12-17 17:35:34 +00:00
|
|
|
|
2013-06-08 02:27:06 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
2014-01-28 20:31:49 +00:00
|
|
|
DOC_FILES1= README.md
|
2013-06-08 02:27:06 +00:00
|
|
|
|
2014-01-28 20:31:49 +00:00
|
|
|
DOCSRCDIR2= ${WRKSRC}/docs/html/search
|
|
|
|
DOCSDIR2= ${DOCSDIR}/docs/html/search
|
|
|
|
DOC_FILES2= *
|
|
|
|
|
|
|
|
DOCSRCDIR3= ${WRKSRC}/docs/html
|
|
|
|
DOCSDIR3= ${DOCSDIR}/docs/html
|
|
|
|
DOC_FILES3= *.html *.png *.css *.js
|
2013-06-08 02:27:06 +00:00
|
|
|
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
EXAMPLESSRCDIR1= ${WRKSRC}/examples
|
2014-01-28 20:31:49 +00:00
|
|
|
EXAMPLES_FILES1= boing gears heightmap simple splitview wave
|
2013-06-08 02:27:06 +00:00
|
|
|
|
|
|
|
EXAMPLESSRCDIR2= ${WRKSRC}/tests
|
|
|
|
EXAMPLESDIR2= ${EXAMPLESDIR}/tests
|
2014-01-28 20:31:49 +00:00
|
|
|
EXAMPLES_FILES2= accuracy clipboard defaults events fsaa gamma glfwinfo \
|
|
|
|
iconify joysticks modes peter reopen sharing tearing \
|
|
|
|
threads title windows
|
2012-10-18 01:52:49 +00:00
|
|
|
|
2014-01-28 20:31:49 +00:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2011-08-31 22:01:23 +00:00
|
|
|
post-patch:
|
2014-01-28 20:31:49 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2008-06-15 20:17:03 +00:00
|
|
|
post-install:
|
2013-10-06 23:44:25 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
2014-01-28 20:31:49 +00:00
|
|
|
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
|
2013-10-06 23:44:25 +00:00
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2014-01-28 20:31:49 +00:00
|
|
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
2013-10-06 23:44:25 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR2}
|
2014-01-28 20:31:49 +00:00
|
|
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR2}
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2004-03-01 19:13:37 +00:00
|
|
|
.include <bsd.port.mk>
|