aboutsummaryrefslogblamecommitdiff
path: root/graphics/glew/Makefile
blob: 01288b3586869a14fa5ed38436ed7340ab0540bd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                    
                     
                 
                        
                  
 




                                                                                    
                               
                                                 
                                             
 


                              
                                     
                   
                      
                   
 
                                                         
                           
 
                    
 
           



                                                      

                   
                                       
                          
                                                                  
       

                      
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>