1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/graphics/glfw2/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

74 lines
2.1 KiB
Makefile

# Created by: Igor Pokrovsky <tiamat@comset.net>
PORTNAME= glfw
PORTVERSION= 2.7.9
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF
PKGNAMESUFFIX= 2
MAINTAINER= ports@FreeBSD.org
COMMENT= Portable framework for OpenGL development
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USES= gl tar:bzip2 xorg
HAS_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= *
PORTEXAMPLES= *
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}${PKGNAMESUFFIX}
OPTIONS_DEFINE= DOCS EXAMPLES
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limit:^2\..*
post-extract:
@${CHMOD} +x ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|; \
/SOFLAGS/s|-soname |-Wl,-soname,|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} \
-e 's|lib/pkgconfig|libdata/pkgconfig|g' \
${WRKSRC}/lib/x11/Makefile.x11.in
post-install:
${INSTALL_LIB} ${WRKSRC}/lib/x11/libglfw.so ${STAGEDIR}${PREFIX}/lib/libglfw.so.0
${LN} -sf libglfw.so.0 ${STAGEDIR}${PREFIX}/lib/libglfw.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} *.html ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} *.pdf *.sty *.tex *.txt ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in boing gears heightmap listmodes mipmaps mtbench mthello pong3d splitview triangle wave
${INSTALL_PROGRAM} ${WRKSRC}/examples/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/examples/*.tga ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/tests
.for f in accuracy defaults dynamic events fsaa fsinput iconify joysticks peter reopen tearing version
${INSTALL_PROGRAM} ${WRKSRC}/tests/${f} ${STAGEDIR}${EXAMPLESDIR}/tests
.endfor
.include <bsd.port.mk>