diff options
author | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-02-06 00:43:42 +0800 |
---|---|---|
committer | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2012-02-06 00:43:42 +0800 |
commit | eb384524d18261e42f80deeb7cbe74523f1d49eb (patch) | |
tree | 0495ae031d15285d4795cdeb948cfc6df2c97f58 /graphics/mesa-demos/Makefile | |
parent | e8fa453ef65d0752f7b1379dc1726874936edf7d (diff) | |
download | xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.gz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.bz2 xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.lz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.xz xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.tar.zst xorg-devel-ports-eb384524d18261e42f80deeb7cbe74523f1d49eb.zip |
- Move ports/branches/xorg-dev to ports/trunk/
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@388 058c260c-8361-11dd-a0ac-aa2bafec7d09
Diffstat (limited to 'graphics/mesa-demos/Makefile')
-rw-r--r-- | graphics/mesa-demos/Makefile | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile new file mode 100644 index 0000000..1bceb96 --- /dev/null +++ b/graphics/mesa-demos/Makefile @@ -0,0 +1,87 @@ +# New ports collection makefile for: mesa-demos +# Date created: 7 Nov 2003 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= mesa-demos +PORTVERSION= 7.6.1 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/ +DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \ + MesaDemos-${PORTVERSION}${EXTRACT_SUFX} + +MAINTAINER= x11@FreeBSD.org +COMMENT= OpenGL demos distributed with Mesa + +USE_BZIP2= yes +USE_GMAKE= yes +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +MAKE_JOBS_SAFE= yes +USE_GL= glu glut +USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto +CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ARGS= --disable-gallium --with-demos=demos,xdemos + +#ALL_TARGET= yes + +WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/ + +DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME} + +OPTIONS= NVIDIA_GL "Use NVIDIA's libraries" off + +.if defined(WITHOUT_XCB) +CONFIGURE_ARGS+= --disable-xcb +.else +CONFIGURE_ARGS+= --enable-xcb +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ + ${WRKSRC}/src/glu/Makefile \ + ${WRKSRC}/src/glw/Makefile \ + ${WRKSRC}/src/mesa/Makefile \ + ${WRKSRC}/src/mesa/drivers/dri/Makefile + @${REINPLACE_CMD} -e 's|../images/|${DATADIR}/images/|g' \ + -e 's|geartrain.dat|${DATADIR}/data/geartrain.dat|g' \ + -e 's|terrain.dat|${DATADIR}/data/terrain.dat|g' \ + -e 's|isosurf.dat|${DATADIR}/data/isosurf.dat|g' \ + ${WRKSRC}/progs/demos/*.c ${WRKSRC}/progs/xdemos/*.c + +do-install: + @for i in demos xdemos; do \ + cd ${WRKSRC}/progs/$$i; \ + for j in `${MAKE} -V PROGS`; do \ + ${ECHO_CMD} ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \ + ${INSTALL_PROGRAM} $$j ${PREFIX}/bin; \ + done; \ + done + ${MKDIR} ${DATADIR}/images ${DATADIR}/data + @cd ${WRKSRC}/progs/images; \ + for i in `ls *.rgb*`; do \ + ${ECHO_CMD} ${INSTALL_DATA} $$i ${DATADIR}/images; \ + ${INSTALL_DATA} $$i ${DATADIR}/images; \ + done + @cd ${WRKSRC}/progs/demos; \ + for i in `ls *.dat`; do \ + ${ECHO_CMD} ${INSTALL_DATA} $$i ${DATADIR}/data; \ + ${INSTALL_DATA} $$i ${DATADIR}/data; \ + done + +.include <bsd.port.pre.mk> + +.if defined(WITH_NVIDIA_GL) +CFLAGS+= -DWITH_NVIDIA_GL=1 +.endif + +.if !defined(ARCH) +ARCH!= uname -p +.endif + +.include <bsd.port.post.mk> |