aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authortobik <tobik@FreeBSD.org>2018-03-29 02:55:34 +0800
committertobik <tobik@FreeBSD.org>2018-03-29 02:55:34 +0800
commit11341cd539a1023e3ad5eee2817dcd0634aa9d33 (patch)
tree3a8a004aa64c88f181fb3251522bf16ce9b2bcdc /graphics
parent53078bcefa96ef0e0aaa794df35be3aac1baae6f (diff)
downloadfreebsd-ports-gnome-11341cd539a1023e3ad5eee2817dcd0634aa9d33.tar.gz
freebsd-ports-gnome-11341cd539a1023e3ad5eee2817dcd0634aa9d33.tar.zst
freebsd-ports-gnome-11341cd539a1023e3ad5eee2817dcd0634aa9d33.zip
Cleanup graphics/glfw
- Simplify DOCS and EXAMPLES installation - Use CMAKE_ON - Add LICENSE_FILE - Let the framework handle the move of *.pc files to libdata/pkgconfig
Diffstat (limited to 'graphics')
-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>