1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/graphics/glew/Makefile
Rodrigo Osorio 06df180a9e */*: Update WWW to use HTTPS for sourceforge.net projects
Homepage link is permanent redirected to its HTTPS counterpart
Issue reported by repology : https://repology.org/repository/freebsd/problems

Approved by:	portmgr (blanket)
PR:		274888
2023-11-06 11:03:47 +01:00

42 lines
1.0 KiB
Makefile

PORTNAME= glew
PORTVERSION= 2.2.0
PORTREVISION?= 3
CATEGORIES= graphics
MASTER_SITES= SF
# Keep glew-wayland patches here to avoid version desync in distinfo
PATCH_SITES= https://github.com/nigels-com/${PORTNAME}/commit/
PATCHFILES+= 8e2e31e69bb6.patch:-p1 # https://github.com/nigels-com/glew/pull/329
PATCHFILES+= 062067f2bad8.patch:-p1 # https://github.com/nigels-com/glew/pull/330
MAINTAINER?= x11@FreeBSD.org
COMMENT= OpenGL Extension Wrangler Library
WWW= https://glew.sourceforge.net/
LICENSE= MIT BSD3CLAUSE
LICENSE_COMB= dual
USES= gmake gl tar:tgz xorg
USE_XORG?= x11
USE_GL?= gl glu
USE_LDCONFIG= yes
MAKE_ENV= GLEW_DEST=${PREFIX} GLEW_PREFIX=${PREFIX}
INSTALL_TARGET?=install.all
OPTIONS_DEFINE?=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' \
-e 's|^LIBDIR|GLEW_LIBDIR|' \
-e 's|$$(LIBDIR)|$$(GLEW_LIBDIR)|' \
${WRKSRC}/Makefile
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in css html jpg png
${INSTALL_DATA} ${WRKSRC}/doc/*.${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>