1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/graphics/glfw/Makefile
2004-02-25 10:37:58 +00:00

48 lines
1.1 KiB
Makefile

# New ports collection makefile for: glfw
# Date created: 24 Jan 2004
# Whom: Igor Pokrovsky <tiamat@comset.net>
#
# $FreeBSD$
#
PORTNAME= glfw
PORTVERSION= 2.4
CATEGORIES= graphics
MASTER_SITES= http://hem.passagen.se/opengl/glfw/files/
MAINTAINER= tiamat@comset.net
COMMENT= A portable framework for OpenGL development
USE_X_PREFIX= yes
USE_GL= yes
ALL_TARGET= x11
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha" && ${OSVERSION} >= 502102
BROKEN= "Does not compile on alpha 5.x"
.endif
do-configure:
@(cd ${WRKSRC} && \
${SETENV} CC="${CC}" \
CFLAGS="${CFLAGS}" \
X11BASE="${X11BASE}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" ./compile.sh)
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/x11/libglfw.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/GL/glfw.h ${PREFIX}/include/GL
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/Makefile.x11 ${EXAMPLESDIR}/makefile
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.tga ${EXAMPLESDIR}
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${DOCSDIR}
.endif
.include <bsd.port.post.mk>