aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/freeglut
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2003-11-10 00:25:04 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2003-11-10 00:25:04 +0000
commit041cda2f0fc06316935e636f3f62fe3b6eb4bcb8 (patch)
tree4d21f78fd3a0059c9f06248de35b5b0fe7bcec0e /x11-toolkits/freeglut
parent6fd561a24f8d9eacead38fc9d3f357c0ca92d1be (diff)
downloadports-041cda2f0fc06316935e636f3f62fe3b6eb4bcb8.tar.gz
ports-041cda2f0fc06316935e636f3f62fe3b6eb4bcb8.zip
Notes
Diffstat (limited to 'x11-toolkits/freeglut')
-rw-r--r--x11-toolkits/freeglut/Makefile13
-rw-r--r--x11-toolkits/freeglut/distinfo2
-rw-r--r--x11-toolkits/freeglut/files/patch-src::freeglut_joystick.c14
3 files changed, 20 insertions, 9 deletions
diff --git a/x11-toolkits/freeglut/Makefile b/x11-toolkits/freeglut/Makefile
index a6a9f94accbb..6a4cc7190019 100644
--- a/x11-toolkits/freeglut/Makefile
+++ b/x11-toolkits/freeglut/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= freeglut
-PORTVERSION= 2.0.0
+PORTVERSION= 2.0.1
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -33,14 +33,14 @@ REINPLACE_ARGS= -i ""
DOCS= download.html freeglut.html freeglut_logo.png \
freeglut_user_interface.html index.html ogl_sm.png \
progress.html structure.html
-BINS= fractals fractals_random lorenz one
+BINS= Fractals Fractals_random Lorenz One
post-patch:
@${REINPLACE_CMD} -e "s|/usr/X11R6|${X11BASE}|g" \
-e "s|/usr/local|${LOCALBASE}|g" \
${WRKSRC}/aclocal.m4
.for fract in /fractals.c _random/fractals_random.c
- ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
+ @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" \
${WRKSRC}/progs/demos/Fractals${fract}
.endfor
@@ -55,13 +55,10 @@ post-install:
@${INSTALL_DATA} ${WRKSRC}/progs/demos/Fractals/fractals.dat \
${EXAMPLESDIR}
.for FILE in ${BINS}
- @${MV} ${PREFIX}/bin/${FILE} ${EXAMPLESDIR}
+ @${INSTALL_PROGRAM} ${WRKSRC}/progs/demos/${FILE}/.libs/${FILE:L} \
+ ${EXAMPLESDIR}
.endfor
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
-.else
-.for FILE in ${BINS}
- @${RM} ${PREFIX}/bin/${FILE}
-.endfor
.endif
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE} | \
diff --git a/x11-toolkits/freeglut/distinfo b/x11-toolkits/freeglut/distinfo
index 08804cae1c2b..8b5cd3a60f6d 100644
--- a/x11-toolkits/freeglut/distinfo
+++ b/x11-toolkits/freeglut/distinfo
@@ -1 +1 @@
-MD5 (freeglut-2.0.0.tar.gz) = 06ab94ab2fbbce61644780e1d746bf34
+MD5 (freeglut-2.0.1.tar.gz) = da82607f76eb218539ee2265080b10ec
diff --git a/x11-toolkits/freeglut/files/patch-src::freeglut_joystick.c b/x11-toolkits/freeglut/files/patch-src::freeglut_joystick.c
new file mode 100644
index 000000000000..839f07f5e0c5
--- /dev/null
+++ b/x11-toolkits/freeglut/files/patch-src::freeglut_joystick.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/freeglut_joystick.c.orig Mon Nov 10 01:09:42 2003
++++ src/freeglut_joystick.c Mon Nov 10 01:10:52 2003
+@@ -57,7 +57,7 @@
+ # include <unistd.h>
+ # include <fcntl.h>
+ # if defined(__FreeBSD__) || defined(__NetBSD__)
+-# if __FreeBSD_version >= 500000
++# if defined(__FreeBSD__)
+ # include <sys/joystick.h>
+ # else
+ # include <machine/joystick.h>