1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

- Update to 2.7.8

- Fix docs
- Fix examples, use executable

PR:		178846
Submitted by:	maintainer
This commit is contained in:
Martin Wilke 2013-06-08 02:27:06 +00:00
parent 36db7bcea0
commit 051b651b3a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320230
2 changed files with 32 additions and 12 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= glfw
PORTVERSION= 2.7.7
PORTVERSION= 2.7.8
CATEGORIES= graphics
MASTER_SITES= SF
@ -30,8 +30,25 @@ PLIST_FILES= include/GL/glfw.h \
lib/libglfw.so.0 \
libdata/pkgconfig/libglfw.pc
PORTDOCS= *.pdf
PORTEXAMPLES= Makefile.x11.in *.c *.tga
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= *.html
DOCSRCDIR2= ${WRKSRC}/docs
DOCSDIR2= ${DOCSDIR}/docs
DOC_FILES2= *.pdf *.sty *.tex *.txt
PORTEXAMPLES= *
EXAMPLESSRCDIR1= ${WRKSRC}/examples
EXAMPLES_FILES1= boing gears heightmap listmodes mipmaps mtbench mthello \
pong3d splitview triangle wave
EXAMPLESSRCDIR2= ${WRKSRC}/tests
EXAMPLESDIR2= ${EXAMPLESDIR}/tests
EXAMPLES_FILES2= accuracy defaults dynamic events fsaa fsinput iconify \
joysticks peter reopen tearing version
.include <bsd.port.options.mk>
@ -52,15 +69,18 @@ post-install:
${LN} -sf ${PREFIX}/lib/libglfw.so.0 ${PREFIX}/lib/libglfw.so
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
@${MKDIR} ${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}
.for e in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${e} ${EXAMPLESDIR}
.endfor
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} ${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLESSRCDIR1}/*.tga ${EXAMPLESDIR}
@${MKDIR} ${EXAMPLESDIR2}
${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} ${EXAMPLESDIR2}
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (glfw-2.7.7.tar.bz2) = 422e755979524a1da28e4addcae723b7132998ca15e89be41bf34964d9360aa2
SIZE (glfw-2.7.7.tar.bz2) = 927805
SHA256 (glfw-2.7.8.tar.bz2) = 86b570a405353ab17a54461ec8b4871f59df6a49897a09f48acfd4dee9a9848b
SIZE (glfw-2.7.8.tar.bz2) = 946926