blob: 6dba307c17cace9b314af46d7a260a667f8a5cec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# $NetBSD: Makefile,v 1.28 2021/07/04 08:08:04 nia Exp $
DISTNAME= glew-2.2.0
PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GITHUB:=nigels-com/}
GITHUB_RELEASE= ${DISTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/nigels-com/glew
COMMENT= OpenGL Extension Wrangler Library
LICENSE= modified-bsd AND mit
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
PKGCONFIG_OVERRIDE= glew.pc.in
MAKE_FLAGS+= CC=${CC:Q}
MAKE_FLAGS+= GLEW_DEST=${PREFIX}
MAKE_FLAGS+= GLEW_PREFIX=${PREFIX}
MAKE_FLAGS+= POPT=${CFLAGS:Q}
INSTALL_TARGET= install.all
INSTALLATION_DIRS+= lib/pkgconfig
.include "../../mk/bsd.prefs.mk"
.if !empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang)
MAKE_ENV.SunOS+= SYSTEM=solaris-gcc
.endif
.if ${OPSYS} != "Darwin"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXi/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
MAKE_FLAGS+= LD=${LD:Q}
.else
MAKE_FLAGS+= LD=${CC:Q}
.endif
SUBST_CLASSES+= x11path
SUBST_MESSAGE.x11path= Fix X11 path.
SUBST_FILES.x11path= config/Makefile.*
SUBST_STAGE.x11path= pre-configure
SUBST_SED.x11path= -e 's,/usr/X11R[67],${X11BASE},g'
pre-configure:
${LN} -sf Makefile.netbsd ${WRKSRC}/config/Makefile.dragonfly
${LN} -sf Makefile.netbsd ${WRKSRC}/config/Makefile.netbsdelf
.include "../../mk/bsd.pkg.mk"
|