2004-01-25 10:39:43 +00:00
|
|
|
# New ports collection makefile for: glfw
|
|
|
|
# Date created: 24 Jan 2004
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= glfw
|
2008-06-15 20:17:03 +00:00
|
|
|
PORTVERSION= 2.6
|
2004-01-25 10:39:43 +00:00
|
|
|
CATEGORIES= graphics
|
2008-03-20 20:08:37 +00:00
|
|
|
MASTER_SITES= SF
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2006-07-22 04:28:27 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-01-25 10:39:43 +00:00
|
|
|
COMMENT= A portable framework for OpenGL development
|
|
|
|
|
2005-05-06 12:00:01 +00:00
|
|
|
USE_BZIP2= yes
|
2008-06-15 20:17:03 +00:00
|
|
|
USE_XORG= x11 xxf86vm xext xrandr
|
2004-01-25 10:39:43 +00:00
|
|
|
USE_GL= yes
|
2008-06-15 20:17:03 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-01-25 10:39:43 +00:00
|
|
|
ALL_TARGET= x11
|
2008-06-15 20:17:03 +00:00
|
|
|
INSTALL_TARGET= x11-install
|
2009-07-10 00:48:58 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2008-06-15 20:17:03 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|' ${WRKSRC}/compile.sh
|
2004-01-25 10:39:43 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
${SETENV} CC="${CC}" \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
2008-06-15 20:17:03 +00:00
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" ${SH} compile.sh)
|
2004-01-25 10:39:43 +00:00
|
|
|
|
2008-06-15 20:17:03 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/x11/libglfw.so ${PREFIX}/lib/libglfw.so.0
|
|
|
|
${LN} -sf ${PREFIX}/lib/libglfw.so.0 ${PREFIX}/lib/libglfw.so
|
|
|
|
.ifndef (NOPORTEXAMPLES)
|
2004-01-25 10:39:43 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Makefile.x11 ${EXAMPLESDIR}/makefile
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.tga ${EXAMPLESDIR}
|
2008-06-15 20:17:03 +00:00
|
|
|
.endif
|
2004-01-25 10:39:43 +00:00
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.pdf ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
2004-03-01 19:13:37 +00:00
|
|
|
.include <bsd.port.mk>
|