| @@ -1,44 +1,49 @@ | | | @@ -1,44 +1,49 @@ |
1 | # $NetBSD: Makefile.lib,v 1.15 2013/05/16 05:04:56 richard Exp $ | | 1 | # $NetBSD: Makefile.lib,v 1.16 2013/12/29 16:28:15 bsiegert Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is included by all packages that build libraries | | 3 | # This Makefile fragment is included by all packages that build libraries |
4 | # from the Mesa sources. | | 4 | # from the Mesa sources. |
5 | # | | 5 | # |
6 | # used by graphics/glu/Makefile | | 6 | # used by graphics/glu/Makefile |
7 | # used by graphics/glut/Makefile | | 7 | # used by graphics/glut/Makefile |
8 | # used by graphics/MesaDemos/Makefile | | 8 | # used by graphics/MesaDemos/Makefile |
9 | # used by graphics/MesaLib/Makefile | | 9 | # used by graphics/MesaLib/Makefile |
10 | | | 10 | |
11 | .include "../../graphics/Mesa/Makefile.common" | | 11 | .include "../../graphics/Mesa/Makefile.common" |
12 | | | 12 | |
13 | DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} | | 13 | DISTFILES+= MesaLib-${MESA_VERSION}${EXTRACT_SUFX} |
14 | DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} | | 14 | DISTFILES+= MesaGLUT-${MESA_VERSION}${EXTRACT_SUFX} |
15 | #DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} | | 15 | #DISTFILES+= MesaDemos-${MESA_VERSION}${EXTRACT_SUFX} |
16 | | | 16 | |
17 | PKG_INSTALLATION_TYPES= overwrite pkgviews | | 17 | PKG_INSTALLATION_TYPES= overwrite pkgviews |
18 | | | 18 | |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | USE_LANGUAGES= c99 c++ | | 20 | USE_LANGUAGES= c99 c++ |
21 | USE_TOOLS+= automake bison flex gmake pkg-config makedepend | | 21 | USE_TOOLS+= automake bison flex gmake pkg-config makedepend |
22 | | | 22 | |
23 | PYTHON_FOR_BUILD_ONLY= yes | | 23 | PYTHON_FOR_BUILD_ONLY= yes |
24 | .include "../../lang/python/tool.mk" | | 24 | .include "../../lang/python/tool.mk" |
25 | BUILDLINK_DEPMETHOD.libxml2?= build | | 25 | BUILDLINK_DEPMETHOD.libxml2?= build |
26 | .include "../../textproc/libxml2/buildlink3.mk" | | 26 | .include "../../textproc/libxml2/buildlink3.mk" |
27 | | | 27 | |
28 | PATCHDIR= ${.CURDIR}/../MesaLib/patches | | 28 | PATCHDIR= ${.CURDIR}/../MesaLib/patches |
29 | DISTINFO_FILE= ${.CURDIR}/../MesaLib/distinfo | | 29 | DISTINFO_FILE= ${.CURDIR}/../MesaLib/distinfo |
30 | | | 30 | |
31 | MAKE_ENV+= MAKE=${GMAKE:Q} | | 31 | MAKE_ENV+= MAKE=${GMAKE:Q} |
32 | | | 32 | |
33 | CONFIGURE_ARGS+= --with-gallium-drivers="" | | 33 | CONFIGURE_ARGS+= --with-gallium-drivers="" |
34 | CONFIGURE_ARGS+= --disable-gallium-llvm | | 34 | CONFIGURE_ARGS+= --disable-gallium-llvm |
35 | CONFIGURE_ARGS+= --disable-egl | | 35 | CONFIGURE_ARGS+= --disable-egl |
36 | | | 36 | |
37 | .include "../../mk/compiler.mk" | | 37 | .include "../../mk/compiler.mk" |
38 | | | 38 | |
39 | .if !empty(PKGSRC_COMPILER:Mccc) | | 39 | .if !empty(PKGSRC_COMPILER:Mccc) |
40 | CFLAGS+= -D__FUNCTION__=__FILE__ | | 40 | CFLAGS+= -D__FUNCTION__=__FILE__ |
41 | .endif | | 41 | .endif |
42 | | | 42 | |
| | | 43 | .include "../../mk/bsd.prefs.mk" |
| | | 44 | .if ${OPSYS} == "MirBSD" |
| | | 45 | BUILDLINK_TRANSFORM+= rm:-fvisibility=hidden |
| | | 46 | .endif |
| | | 47 | |
43 | pre-configure: | | 48 | pre-configure: |
44 | cd ${WRKSRC} && ${MAKE} configure | | 49 | cd ${WRKSRC} && ${MAKE} configure |