View | Details | Raw Unified | Return to bug 214467
Collapse All | Expand All

(-)graphics/glew/Makefile (-20 / +11 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	glew
4
PORTNAME=	glew
5
PORTVERSION=	1.13.0
5
PORTVERSION=	2.0.0
6
CATEGORIES=	graphics
6
CATEGORIES=	graphics
7
MASTER_SITES=	SF
7
MASTER_SITES=	SF
8
8
Lines 14-23 Link Here
14
14
15
USES=		gmake tar:tgz
15
USES=		gmake tar:tgz
16
USE_XORG=	x11 xext xi xmu
16
USE_XORG=	x11 xext xi xmu
17
USE_GL=		yes
17
USE_GL=		gl glu
18
USE_LDCONFIG=	yes
18
USE_LDCONFIG=	yes
19
19
20
MAKE_ENV+=	GLEW_DEST=${PREFIX}
20
INSTALL_TARGET=	install.all
21
MAKE_ENV+=	GLEW_PREFIX=${PREFIX}\
22
		GLEW_DEST=${PREFIX} \
23
		LOCALLIBDIR=${PREFIX}/lib \
24
		PKGDIR=${PREFIX}/libdata/pkgconfig
21
25
22
OPTIONS_DEFINE=	DOCS
26
OPTIONS_DEFINE=	DOCS
23
27
Lines 24-47 Link Here
24
.include <bsd.port.options.mk>
28
.include <bsd.port.options.mk>
25
29
26
post-patch:
30
post-patch:
27
	@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile
31
	@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \
32
		-e 's|LIBDIR|LOCALLIBDIR|' ${WRKSRC}/Makefile
28
33
29
do-install:
34
post-install:
30
	${INSTALL_PROGRAM} ${WRKSRC}/bin/glewinfo ${STAGEDIR}${PREFIX}/bin
35
	@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/libGLEW.so.${PORTVERSION}
31
	${INSTALL_PROGRAM} ${WRKSRC}/bin/visualinfo ${STAGEDIR}${PREFIX}/bin
32
33
	${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEW.so.${PORTVERSION} \
34
		${STAGEDIR}${PREFIX}/lib/libGLEW.so.1
35
	${INSTALL_PROGRAM} ${WRKSRC}/lib/libGLEWmx.so.${PORTVERSION} \
36
		${STAGEDIR}${PREFIX}/lib/libGLEWmx.so.1
37
	${LN} -sf ${PREFIX}/lib/libGLEW.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEW.so
38
	${LN} -sf ${PREFIX}/lib/libGLEWmx.so.1 ${STAGEDIR}${PREFIX}/lib/libGLEWmx.so
39
	${INSTALL_DATA} ${WRKSRC}/lib/libGLEW.a ${STAGEDIR}${PREFIX}/lib
40
	${INSTALL_DATA} ${WRKSRC}/lib/libGLEWmx.a ${STAGEDIR}${PREFIX}/lib
41
	${MKDIR} ${STAGEDIR}${PREFIX}/include/GL
42
	${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${STAGEDIR}${PREFIX}/include/GL
43
	${INSTALL_DATA} ${WRKSRC}/glew.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
44
	${INSTALL_DATA} ${WRKSRC}/glewmx.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
45
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
46
.for i in css html jpg png
37
.for i in css html jpg png
47
	${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR}
38
	${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR}
(-)graphics/glew/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (glew-1.13.0.tgz) = aa25dc48ed84b0b64b8d41cdd42c8f40f149c37fa2ffa39cd97f42c78d128bc7
1
TIMESTAMP = 1477129435
2
SIZE (glew-1.13.0.tgz) = 616070
2
SHA256 (glew-2.0.0.tgz) = c572c30a4e64689c342ba1624130ac98936d7af90c3103f9ce12b8a0c5736764
3
SIZE (glew-2.0.0.tgz) = 667340
(-)graphics/glew/files/patch-config__Makefile.freebsd (-18 / +3 lines)
Lines 1-6 Link Here
1
--- config/Makefile.freebsd.orig	2015-02-08 09:24:57 UTC
1
--- config/Makefile.freebsd.orig	2016-10-22 09:45:53 UTC
2
+++ config/Makefile.freebsd
2
+++ config/Makefile.freebsd
3
@@ -1,22 +1,22 @@
3
@@ -1,11 +1,11 @@
4
 NAME = $(GLEW_NAME)
4
 NAME = $(GLEW_NAME)
5
-CC = cc
5
-CC = cc
6
-LD = ld
6
-LD = ld
Lines 7-13 Link Here
7
-LDFLAGS.EXTRA = -L/usr/X11R6/lib
7
-LDFLAGS.EXTRA = -L/usr/X11R6/lib
8
+CC ?= cc
8
+CC ?= cc
9
+LD ?= ld
9
+LD ?= ld
10
+LDFLAGS.EXTRA ?= -L${LOCALBASE}/lib
10
+LDFLAGS.EXTRA = -L${LOCALBASE}/lib
11
 LDFLAGS.GL = -lGL -lX11
11
 LDFLAGS.GL = -lGL -lX11
12
 LDFLAGS.STATIC = -Wl,-Bstatic
12
 LDFLAGS.STATIC = -Wl,-Bstatic
13
 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
13
 LDFLAGS.DYNAMIC = -Wl,-Bdynamic
Lines 16-33 Link Here
16
 NAME = GLEW
16
 NAME = GLEW
17
 WARN = -Wall -W
17
 WARN = -Wall -W
18
 POPT = -O2
18
 POPT = -O2
19
 BIN.SUFFIX =
20
-LIB.SONAME    = lib$(NAME).so.$(SO_MAJOR)
21
+LIB.SONAME    = lib$(NAME).so.$(GLEW_MAJOR)
22
 LIB.DEVLNK    = lib$(NAME).so
23
-LIB.SHARED    = lib$(NAME).so.$(SO_VERSION)
24
+LIB.SHARED    = lib$(NAME).so.$(GLEW_VERSION)
25
 LIB.STATIC    = lib$(NAME).a
26
 LDFLAGS.SO    = -shared -soname $(LIB.SONAME)
27
-LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR)
28
+LIB.SONAME.MX = lib$(NAME)mx.so.$(GLEW_MAJOR)
29
 LIB.DEVLNK.MX = lib$(NAME)mx.so
30
-LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION)
31
+LIB.SHARED.MX = lib$(NAME)mx.so.$(GLEW_VERSION)
32
 LIB.STATIC.MX = lib$(NAME)mx.a
33
 LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX)
(-)graphics/glew/pkg-plist (-5 / +3 lines)
Lines 4-16 Link Here
4
include/GL/glxew.h
4
include/GL/glxew.h
5
include/GL/wglew.h
5
include/GL/wglew.h
6
lib/libGLEW.a
6
lib/libGLEW.a
7
lib/libGLEWmx.a
8
lib/libGLEWmx.so
9
lib/libGLEW.so
7
lib/libGLEW.so
10
lib/libGLEWmx.so.1
8
lib/libGLEW.so.2.0
11
lib/libGLEW.so.1
9
lib/libGLEW.so.2.0.0
12
libdata/pkgconfig/glew.pc
10
libdata/pkgconfig/glew.pc
13
libdata/pkgconfig/glewmx.pc
14
%%PORTDOCS%%%%DOCSDIR%%/advanced.html
11
%%PORTDOCS%%%%DOCSDIR%%/advanced.html
15
%%PORTDOCS%%%%DOCSDIR%%/basic.html
12
%%PORTDOCS%%%%DOCSDIR%%/basic.html
16
%%PORTDOCS%%%%DOCSDIR%%/build.html
13
%%PORTDOCS%%%%DOCSDIR%%/build.html
Lines 25-28 Link Here
25
%%PORTDOCS%%%%DOCSDIR%%/log.html
22
%%PORTDOCS%%%%DOCSDIR%%/log.html
26
%%PORTDOCS%%%%DOCSDIR%%/new.png
23
%%PORTDOCS%%%%DOCSDIR%%/new.png
27
%%PORTDOCS%%%%DOCSDIR%%/ogl_sm.jpg
24
%%PORTDOCS%%%%DOCSDIR%%/ogl_sm.jpg
25
%%PORTDOCS%%%%DOCSDIR%%/travis.png
28
%%PORTDOCS%%%%DOCSDIR%%/wglew.html
26
%%PORTDOCS%%%%DOCSDIR%%/wglew.html

Return to bug 214467