aboutsummaryrefslogtreecommitdiff
path: root/graphics/glfw
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-03-28 18:55:34 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-03-28 18:55:34 +0000
commitc8f21d543e9eb7793e786ccb0934fc7cc19f5674 (patch)
tree3a8a004aa64c88f181fb3251522bf16ce9b2bcdc /graphics/glfw
parent6e78da6c80b0bc552850fb6773b5888fbe91c9fb (diff)
downloadports-c8f21d543e9eb7793e786ccb0934fc7cc19f5674.tar.gz
ports-c8f21d543e9eb7793e786ccb0934fc7cc19f5674.zip
Notes
Diffstat (limited to 'graphics/glfw')
-rw-r--r--graphics/glfw/Makefile52
1 files changed, 16 insertions, 36 deletions
diff --git a/graphics/glfw/Makefile b/graphics/glfw/Makefile
index f94d0f53e2af..6aadcc52e985 100644
--- a/graphics/glfw/Makefile
+++ b/graphics/glfw/Makefile
@@ -11,36 +11,16 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Portable framework for OpenGL development
LICENSE= ZLIB
+LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= cmake localbase zip
USE_GL= glu
USE_LDCONFIG= yes
-CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON
+CMAKE_ON= BUILD_SHARED_LIBS
PORTDOCS= *
-
-DOCSRCDIR1= ${WRKSRC}
-DOC_FILES1= README.md
-
-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
-
PORTEXAMPLES= *
-EXAMPLESSRCDIR1= ${WRKSRC}/examples
-EXAMPLES_FILES1= boing gears heightmap particles simple splitview wave
-
-EXAMPLESSRCDIR2= ${WRKSRC}/tests
-EXAMPLESDIR2= ${EXAMPLESDIR}/tests
-EXAMPLES_FILES2= clipboard cursor empty events gamma glfwinfo iconify \
- joysticks monitors msaa reopen sharing tearing threads \
- title windows
-
OPTIONS_DEFINE= DOCS EXAMPLES WAYLAND
OPTIONS_EXCLUDE_FreeBSD_10= WAYLAND # needs dev/evdev/input.h
@@ -53,23 +33,23 @@ WAYLAND_USES= kde:5 pkgconfig
WAYLAND_USE= KDE=ecm
WAYLAND_USE_OFF= XORG=x11,xcursor,xinerama,xrandr,xxf86vm
-post-patch:
- @${REINPLACE_CMD} -e 's|lib$${LIB_SUFFIX}/pkgconfig|libdata/pkgconfig|' \
- ${WRKSRC}/CMakeLists.txt
-
do-install-DOCS-on:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/docs/html/search
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/html/search/* \
+ ${STAGEDIR}${DOCSDIR}/docs/html/search
+ cd ${WRKSRC}/docs/html && ${INSTALL_DATA} *.html *.png *.css *.js \
+ ${STAGEDIR}${DOCSDIR}/docs/html
do-install-EXAMPLES-on:
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} \
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/tests
+ cd ${WRKSRC}/examples && ${INSTALL_PROGRAM} \
+ boing gears heightmap particles simple splitview wave \
${STAGEDIR}${EXAMPLESDIR}
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR2}
- ${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} \
- ${STAGEDIR}${EXAMPLESDIR2}
+ cd ${WRKSRC}/tests && ${INSTALL_PROGRAM} \
+ clipboard cursor empty events gamma glfwinfo iconify \
+ joysticks monitors msaa reopen sharing tearing \
+ threads title windows \
+ ${STAGEDIR}${EXAMPLESDIR}/tests
.include <bsd.port.mk>