2003-05-06 00:16:26 +02:00
|
|
|
# New ports collection makefile for: freeglut
|
|
|
|
# Date created: Wed Apr 23 2003
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-10-04 11:46:21 +02:00
|
|
|
PORTNAME= freeglut
|
2005-06-11 21:57:46 +02:00
|
|
|
PORTVERSION= 2.4.0
|
2008-03-24 00:00:25 +01:00
|
|
|
PORTREVISION= 4
|
2006-01-16 01:07:03 +01:00
|
|
|
CATEGORIES= graphics
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF
|
2003-05-06 00:16:26 +02:00
|
|
|
|
2005-06-11 21:57:46 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= An alternative to the OpenGL Utility Toolkit (GLUT) library
|
2003-05-06 00:16:26 +02:00
|
|
|
|
2008-03-24 00:00:25 +01:00
|
|
|
CONFLICTS= libglut-[0-9]*
|
|
|
|
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2008-03-24 00:00:25 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_XORG= ice
|
|
|
|
USE_GL= glu
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --disable-warnings
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-lusbhid"
|
2003-05-06 00:16:26 +02:00
|
|
|
|
2005-06-11 21:57:46 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
2003-05-06 00:16:26 +02:00
|
|
|
|
2003-10-04 11:46:21 +02:00
|
|
|
DOCS= download.html freeglut.html freeglut_logo.png \
|
|
|
|
freeglut_user_interface.html index.html ogl_sm.png \
|
|
|
|
progress.html structure.html
|
2003-12-14 14:03:37 +01:00
|
|
|
BINS= CallbackMaker Fractals Fractals_random Lorenz One shapes
|
2003-05-06 00:16:26 +02:00
|
|
|
|
2005-06-11 21:57:46 +02:00
|
|
|
pre-configure:
|
2003-10-04 11:46:21 +02:00
|
|
|
.for fract in /fractals.c _random/fractals_random.c
|
2003-12-14 14:03:37 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
|
2003-10-04 11:46:21 +02:00
|
|
|
${WRKSRC}/progs/demos/Fractals${fract}
|
2003-05-06 00:16:26 +02:00
|
|
|
.endfor
|
|
|
|
|
2003-12-14 14:03:37 +01:00
|
|
|
post-build:
|
|
|
|
@${MV} ${WRKSRC}/progs/demos/CallbackMaker/.libs/CallbackMaker \
|
|
|
|
${WRKSRC}/progs/demos/CallbackMaker/.libs/callbackmaker
|
|
|
|
|
2003-05-06 00:16:26 +02:00
|
|
|
post-install:
|
2003-10-04 11:46:21 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/progs/demos/Fractals/fractals.dat \
|
|
|
|
${EXAMPLESDIR}
|
2003-12-14 14:03:37 +01:00
|
|
|
.for prog in ${BINS}
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/progs/demos/${prog}/.libs/${prog:L} \
|
2003-11-10 01:25:04 +01:00
|
|
|
${EXAMPLESDIR}
|
2003-10-04 11:46:21 +02:00
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
|
|
.endif
|
2003-05-06 00:16:26 +02:00
|
|
|
@${ECHO_MSG}
|
2008-03-24 00:00:25 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-05-06 00:16:26 +02:00
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2009-05-22 11:27:14 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 800064
|
|
|
|
BROKEN= does not build
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|