svn commit: r465839 - head/graphics/glfw
Tobias Kortkamp
tobik at FreeBSD.org
Wed Mar 28 18:55:35 UTC 2018
Author: tobik
Date: Wed Mar 28 18:55:34 2018
New Revision: 465839
URL: https://svnweb.freebsd.org/changeset/ports/465839
Log:
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
Modified:
head/graphics/glfw/Makefile
Modified: head/graphics/glfw/Makefile
==============================================================================
--- head/graphics/glfw/Makefile Wed Mar 28 18:49:23 2018 (r465838)
+++ head/graphics/glfw/Makefile Wed Mar 28 18:55:34 2018 (r465839)
@@ -11,36 +11,16 @@ MAINTAINER= ports at 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>
More information about the svn-ports-all
mailing list