- Update to 1.3.1

PR:		ports/78423
Submitted by:	Igor Pokrovsky <ip@doom.homeunix.org> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-03-06 22:42:41 +00:00
parent 1fee08298b
commit 612595b0dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=130487
5 changed files with 47 additions and 38 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= glew
PORTVERSION= 1.2.5
PORTVERSION= 1.3.1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -20,25 +20,22 @@ USE_X_PREFIX= yes
USE_GL= yes
INSTALLS_SHLIB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
${PREFIX}/lib/libGLEW.so.1
@${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${PREFIX}/lib/libGLEW.so
${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${PREFIX}/include/GL
.for i in glew glxew
${INSTALL_DATA} ${WRKSRC}/include/GL/${i}.h ${PREFIX}/include/GL
.endfor
.if !defined(NOPORTDOCS)
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/glew.css ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/glew.png ${DOCSDIR}
.for i in css html jpg png
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
MD5 (glew-1.2.5-src.tgz) = fcbefbe1ce0c6b0c9f6bd56aafe23927
SIZE (glew-1.2.5-src.tgz) = 286866
MD5 (glew-1.3.1-src.tgz) = ff65976bd9345624c612b4d1c31fdcec
SIZE (glew-1.3.1-src.tgz) = 330648

View file

@ -3,29 +3,7 @@ $FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -121,17 +121,17 @@
# ----------------------------------------------------------------------------
ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
NAME = GLEW
-CC = cc
-LD = ld
+CC ?= cc
+LD ?= ld
ifneq (undefined, $(origin GLEW_MX))
CFLAGS.EXTRA = -DGLEW_MX
endif
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
-LDFLAGS.EXTRA = -L/usr/X11R6/lib
+LDFLAGS.EXTRA = -L${X11BASE}/lib
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
LDFLAGS.STATIC = -Wl,-Bstatic
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
-CFLAGS.EXTRA += -I/usr/X11R6/include
+CFLAGS.EXTRA += -I${X11BASE}/include -fPIC
NAME = GLEW
WARN = -Wall -W
POPT = -O2
@@ -245,7 +245,7 @@
@@ -61,7 +61,7 @@
STRIP = -s
endif
INCLUDE = -Iinclude

View file

@ -0,0 +1,25 @@
$FreeBSD$
--- config/Makefile.freebsd.orig
+++ config/Makefile.freebsd
@@ -1,15 +1,15 @@
NAME = $(GLEW_NAME)
-CC = cc
-LD = ld
+CC ?= cc
+LD ?= ld
ifneq (undefined, $(origin GLEW_MX))
CFLAGS.EXTRA = -DGLEW_MX
endif
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
-LDFLAGS.EXTRA = -L/usr/X11R6/lib
+LDFLAGS.EXTRA = -L${X11BASE}/lib
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
LDFLAGS.STATIC = -Wl,-Bstatic
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
-CFLAGS.EXTRA += -I/usr/X11R6/include
+CFLAGS.EXTRA += -I${X11BASE}/include -fPIC
NAME = GLEW
WARN = -Wall -W
POPT = -O2

View file

@ -1,13 +1,22 @@
bin/glewinfo
bin/visualinfo
include/GL/glew.h
include/GL/glxew.h
include/GL/wglew.h
lib/libGLEW.a
lib/libGLEW.so
lib/libGLEW.so.1
%%PORTDOCS%%%%DOCSDIR%%/advanced.html
%%PORTDOCS%%%%DOCSDIR%%/basic.html
%%PORTDOCS%%%%DOCSDIR%%/credits.html
%%PORTDOCS%%%%DOCSDIR%%/glew.css
%%PORTDOCS%%%%DOCSDIR%%/README.html
%%PORTDOCS%%%%DOCSDIR%%/glew.html
%%PORTDOCS%%%%DOCSDIR%%/glxew.html
%%PORTDOCS%%%%DOCSDIR%%/wglew.html
%%PORTDOCS%%%%DOCSDIR%%/glew.png
%%PORTDOCS%%%%DOCSDIR%%/glxew.html
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%%%DOCSDIR%%/install.html
%%PORTDOCS%%%%DOCSDIR%%/log.html
%%PORTDOCS%%%%DOCSDIR%%/new.png
%%PORTDOCS%%%%DOCSDIR%%/ogl_sm.jpg
%%PORTDOCS%%%%DOCSDIR%%/wglew.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%