mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Import from graphics/glfw
- Add PKGNAMESUFFIX=2 - Use GNU_CONFIGURE instead of HAS_CONFIGURE - Disable all warnings with -w - Add DOCSDIR= and EXAMPLESDIR= - Break lines around 80 characters - Add DOCS and EXAMPLES Options GLFW is a free, Open Source, multi-platform library for OpenGL application development that provides a powerful API for handling operating system specific tasks such as opening an OpenGL window, reading keyboard, mouse, joystick and time input, creating threads, and more. WWW: http://www.glfw.org/
This commit is contained in:
parent
49686be75a
commit
40d5080c51
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341655
5 changed files with 132 additions and 0 deletions
|
@ -281,6 +281,7 @@
|
||||||
SUBDIR += glew
|
SUBDIR += glew
|
||||||
SUBDIR += glexcess
|
SUBDIR += glexcess
|
||||||
SUBDIR += glfw
|
SUBDIR += glfw
|
||||||
|
SUBDIR += glfw2
|
||||||
SUBDIR += glide3
|
SUBDIR += glide3
|
||||||
SUBDIR += glitz
|
SUBDIR += glitz
|
||||||
SUBDIR += gliv
|
SUBDIR += gliv
|
||||||
|
|
94
graphics/glfw2/Makefile
Normal file
94
graphics/glfw2/Makefile
Normal file
|
@ -0,0 +1,94 @@
|
||||||
|
# Created by: Igor Pokrovsky <tiamat@comset.net>
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= glfw
|
||||||
|
PORTVERSION= 2.7.9
|
||||||
|
CATEGORIES= graphics
|
||||||
|
MASTER_SITES= SF
|
||||||
|
PKGNAMESUFFIX= 2
|
||||||
|
|
||||||
|
MAINTAINER= nemysis@FreeBSD.org
|
||||||
|
COMMENT= Portable framework for OpenGL development
|
||||||
|
|
||||||
|
LICENSE= ZLIB
|
||||||
|
|
||||||
|
USE_BZIP2= yes
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
CONFIGURE_SCRIPT= compile.sh
|
||||||
|
ALL_TARGET= x11
|
||||||
|
INSTALL_TARGET= x11-install
|
||||||
|
USE_XORG= xi xrandr
|
||||||
|
USE_GL= glu
|
||||||
|
USE_LDCONFIG= yes
|
||||||
|
MAKE_JOBS_UNSAFE= yes
|
||||||
|
CFLAGS+= -w
|
||||||
|
|
||||||
|
PLIST_FILES= include/GL/glfw.h \
|
||||||
|
lib/libglfw.a \
|
||||||
|
lib/libglfw.so \
|
||||||
|
lib/libglfw.so.0 \
|
||||||
|
libdata/pkgconfig/libglfw.pc
|
||||||
|
|
||||||
|
PORTDOCS= *
|
||||||
|
|
||||||
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
||||||
|
|
||||||
|
DOCSRCDIR1= ${WRKSRC}
|
||||||
|
DOC_FILES1= *.html
|
||||||
|
|
||||||
|
DOCSRCDIR2= ${WRKSRC}/docs
|
||||||
|
DOCSDIR2= ${DOCSDIR}/docs
|
||||||
|
DOC_FILES2= *.pdf *.sty *.tex *.txt
|
||||||
|
|
||||||
|
PORTEXAMPLES= *
|
||||||
|
|
||||||
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||||
|
|
||||||
|
# Restrict to stable (even) versions, indicated by the second component.
|
||||||
|
PORTSCOUT= limit:^2\..*
|
||||||
|
|
||||||
|
post-extract:
|
||||||
|
@${CHMOD} ${BINMODE} ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
|
's|/usr/X11R6|${LOCALBASE}| ; \
|
||||||
|
/SOFLAGS/s|-soname |-Wl,-soname,| ; \
|
||||||
|
/CFLAGS_THREAD/s|"-pthread"|"${PTHREAD_CFLAGS}"| ; \
|
||||||
|
/LFLAGS_THREAD/s|"-pthread"|"${PTHREAD_LIBS}"|' \
|
||||||
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
||||||
|
@${REINPLACE_CMD} \
|
||||||
|
-e 's|lib/pkgconfig|libdata/pkgconfig|g' \
|
||||||
|
${WRKSRC}/lib/x11/Makefile.x11.in
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/lib/x11/libglfw.so \
|
||||||
|
${STAGEDIR}${PREFIX}/lib/libglfw.so.0
|
||||||
|
${LN} -sf ${PREFIX}/lib/libglfw.so.0 ${STAGEDIR}${PREFIX}/lib/libglfw.so
|
||||||
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libglfw.so.0
|
||||||
|
|
||||||
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
||||||
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
||||||
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
||||||
|
|
||||||
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR1}/|} \
|
||||||
|
${STAGEDIR}${EXAMPLESDIR}
|
||||||
|
${INSTALL_DATA} ${EXAMPLESSRCDIR1}/*.tga ${STAGEDIR}${EXAMPLESDIR}
|
||||||
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR2}
|
||||||
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR2}/|} \
|
||||||
|
${STAGEDIR}${EXAMPLESDIR2}
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
graphics/glfw2/distinfo
Normal file
2
graphics/glfw2/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (glfw-2.7.9.tar.bz2) = d1f47e99e4962319f27f30d96571abcb04c1022c000de4d01df69ec59aae829d
|
||||||
|
SIZE (glfw-2.7.9.tar.bz2) = 946924
|
29
graphics/glfw2/files/patch-lib__x11__Makefile.x11.in
Normal file
29
graphics/glfw2/files/patch-lib__x11__Makefile.x11.in
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- ./lib/x11/Makefile.x11.in.orig 2013-05-30 16:07:32.000000000 +0200
|
||||||
|
+++ ./lib/x11/Makefile.x11.in 2013-09-30 12:46:48.994429398 +0200
|
||||||
|
@@ -26,19 +26,19 @@
|
||||||
|
# Install GLFW static library
|
||||||
|
##########################################################################
|
||||||
|
install: libglfw.a libglfw.pc
|
||||||
|
- $(INSTALL) -d $(PREFIX)/lib
|
||||||
|
- $(INSTALL) -c -m 644 libglfw.a $(PREFIX)/lib/libglfw.a
|
||||||
|
- $(INSTALL) -d $(PREFIX)/include/GL
|
||||||
|
- $(INSTALL) -c -m 644 ../../include/GL/glfw.h $(PREFIX)/include/GL/glfw.h
|
||||||
|
- $(INSTALL) -d $(PREFIX)/lib/pkgconfig
|
||||||
|
- $(INSTALL) -c -m 644 libglfw.pc $(PREFIX)/lib/pkgconfig/libglfw.pc
|
||||||
|
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib
|
||||||
|
+ $(INSTALL) -c -m 644 libglfw.a $(DESTDIR)$(PREFIX)/lib/libglfw.a
|
||||||
|
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/include/GL
|
||||||
|
+ $(INSTALL) -c -m 644 ../../include/GL/glfw.h $(DESTDIR)$(PREFIX)/include/GL/glfw.h
|
||||||
|
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/lib/pkgconfig
|
||||||
|
+ $(INSTALL) -c -m 644 libglfw.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/libglfw.pc
|
||||||
|
|
||||||
|
|
||||||
|
##########################################################################
|
||||||
|
# Install GLFW static and shared libraries
|
||||||
|
##########################################################################
|
||||||
|
dist-install: libglfw.so install
|
||||||
|
- $(INSTALL) -c -m 644 libglfw.so $(PREFIX)/lib/libglfw.so
|
||||||
|
+ $(INSTALL) -c -m 644 libglfw.so $(DESTDIR)$(PREFIX)/lib/libglfw.so
|
||||||
|
|
||||||
|
|
||||||
|
##########################################################################
|
6
graphics/glfw2/pkg-descr
Normal file
6
graphics/glfw2/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
GLFW is a free, Open Source, multi-platform library for OpenGL application
|
||||||
|
development that provides a powerful API for handling operating system specific
|
||||||
|
tasks such as opening an OpenGL window, reading keyboard, mouse, joystick and
|
||||||
|
time input, creating threads, and more.
|
||||||
|
|
||||||
|
WWW: http://www.glfw.org/
|
Loading…
Add table
Reference in a new issue