blob: ccaf94ea873a2efa7b6f9bbf8f78613cf40d91a9 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.8 2000/04/11 22:36:04 tron Exp $
DISTNAME= glx-20000407
PKGNAME= Mesa-${DISTNAME}
CATEGORIES= graphics
MASTER_SITES= http://snow.ashlu.bc.ca/glx/snapshots/
EXTRACT_SUFX= .tar.bz2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
MesaLib-${MESA_VERSION}${EXTRACT_SUFX} \
MesaDemos-${MESA_VERSION}${EXTRACT_SUFX}
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://utah-glx.sourceforge.net/
BUILD_DEPENDS+= ${PERL}:../../lang/perl5
BUILD_DEPENDS+= ${AUTOCONF}:../../devel/autoconf
BUILD_DEPENDS+= ${TCLSH}:../../lang/tcl80
CONFLICTS+= Mesa-*
ONLY_FOR_PLATFORM= NetBSD-*-i386
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
USE_X11BASE= yes
CONFIGURE_ARGS+= --enable-static --with-mesa=${MESA_WRKSRC}
CONFIGURE_ENV+= TCLSH=${TCLSH}
AUTOCONF= ${LOCALBASE}/bin/autoconf
WRKSRCDIRS= ${MESA_WRKSRC} ${WRKSRC} ${WRKSRC}/docs
MAKE_ENV+= PERL=${PERL}
MESA_VERSION= 3.1
MESA_WRKSRC= ${WRKDIR}/Mesa-${MESA_VERSION}
PERL= ${LOCALBASE}/bin/perl
TCLSH= ${LOCALBASE}/bin/tclsh8.0
pre-configure:
@cd ${WRKSRC} && ${AUTOCONF} && cd docs && ${AUTOCONF}
do-configure:
@for DIR in ${WRKSRCDIRS}; do \
cd $$DIR && \
${SETENV} CC="${CC}" ac_cv_path_CC="${CC}" \
CFLAGS="${CFLAGS}" \
INSTALL="`${TYPE} ${INSTALL} | ${AWK} '{ print $$NF }'` -c -o ${BINOWN} -g ${BINGRP}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; \
done
do-build:
@for DIR in ${WRKSRCDIRS}; do \
cd $$DIR && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} \
${ALL_TARGET}; \
done
do-install:
@for DIR in ${WRKSRCDIRS}; do \
cd $$DIR && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} \
${INSTALL_TARGET}; \
done
${INSTALL_DATA} ${WRKSRC}/glx.conf ${PREFIX}/etc/glx.conf.default
.include "../../mk/bsd.pkg.mk"
|