diff options
author | Dejan Lesjak <lesi@FreeBSD.org> | 2005-01-29 23:15:49 +0000 |
---|---|---|
committer | Dejan Lesjak <lesi@FreeBSD.org> | 2005-01-29 23:15:49 +0000 |
commit | b971dd6c3c1f37f4516aac6bafb0db70a16c7041 (patch) | |
tree | 7cb2d5600c422fe8ef47c03814e257aec2823b4c /graphics/mesa-demos/Makefile | |
parent | f6ac06c92cf7d3b7ed85aa6c491084a0f8b7a735 (diff) | |
download | ports-b971dd6c3c1f37f4516aac6bafb0db70a16c7041.tar.gz ports-b971dd6c3c1f37f4516aac6bafb0db70a16c7041.zip |
Update to 6.2.1.
This gains compatibility with X.Org 6.8, but breaks it with XFree86 4.4,
so flip the IGNORE switch.
Since there is no "install" target we can use, installation is done in
do-install of port. For that we need the list of files to install which is
conveniently used to generate plist, so static pkg-plist is dropped.
Notes
Notes:
svn path=/head/; revision=127668
Diffstat (limited to 'graphics/mesa-demos/Makefile')
-rw-r--r-- | graphics/mesa-demos/Makefile | 77 |
1 files changed, 51 insertions, 26 deletions
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile index 09e5bc9aab16..a219ce999132 100644 --- a/graphics/mesa-demos/Makefile +++ b/graphics/mesa-demos/Makefile @@ -6,16 +6,13 @@ # PORTNAME= demos -PORTVERSION= 5.0.2 -PORTREVISION= 1 +PORTVERSION= 6.2.1 CATEGORIES= graphics -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sf/} \ - ${MASTER_SITE_LOCAL:S/$/:local/} -MASTER_SITE_SUBDIR= mesa3d/:sf \ - anholt/:local +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= mesa3d/ PKGNAMEPREFIX= mesa- -DISTFILES= MesaDemos-${PORTVERSION}${EXTRACT_SUFX}:sf \ - MesaLib-${PORTVERSION}${EXTRACT_SUFX}:sf +DISTFILES= MesaDemos-${PORTVERSION}${EXTRACT_SUFX} \ + MesaLib-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= OpenGL demos distributed with Mesa @@ -26,32 +23,60 @@ USE_BZIP2= yes USE_REINPLACE= yes MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" -MAKEFILE= Makefile.X11 -ALL_TARGET= targets -WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/demos -SHAREDIR= ${PREFIX}/share/mesa-demos +ALL_TARGET= +MAKE_ARGS= SUBDIRS=progs/demos +WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION} +DATADIR= ${PREFIX}/share/mesa-demos -.include <bsd.port.pre.mk> +DEMO_PROGS= bounce clearspd cubemap drawpix fire gamma gears geartrain \ + glinfo gloss gltestperf glutfx ipers isosurf lodbias morph3d \ + multiarb occlude osdemo paltex pixeltex pointblast ray \ + readpix reflect renormal shadowtex spectex stex3d teapot \ + terrain tessdemo texcyl texdown texenv texobj trispd tunnel \ + tunnel2 +DEMO_IMAGES= bw.rgb girl.rgb reflect.rgb s128.rgb tile.rgb tree2.rgba \ + tree3.rgb wrs_logo.rgb +DEMO_DATA= geartrain.dat isosurf.dat terrain.dat -.if ${X_WINDOW_SYSTEM:L} == xorg -IGNORE= does not build with X.Org -.endif +# Generate packing list +.for prog in ${DEMO_PROGS} +PLIST_FILES+= bin/${prog} +.endfor +.for img in ${DEMO_IMAGES} +PLIST_FILES+= share/mesa-demos/images/${img} +.endfor +.for dat in ${DEMO_DATA} +PLIST_FILES+= share/mesa-demos/data/${dat} +.endfor +PLIST_DIRS= share/mesa-demos/images share/mesa-demos/data share/mesa-demos post-extract: - ${REINPLACE_CMD} -e 's|../images/|${SHAREDIR}/images/|g' \ - -e 's|geartrain.dat|${SHAREDIR}/data/geartrain.dat|g' \ - -e 's|terrain.dat|${SHAREDIR}/data/terrain.dat|g' \ - -e 's|isosurf.dat|${SHAREDIR}/data/isosurf.dat|g' \ - ${WRKSRC}/*.c + ${CP} ${FILESDIR}/config ${WRKSRC}/configs/current + ${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 -post-install: +do-install: + @for prog in ${DEMO_PROGS}; do \ + ${INSTALL_PROGRAM} ${WRKSRC}/progs/demos/$$prog \ + ${PREFIX}/bin ; \ + done ${MKDIR} ${PREFIX}/share/mesa-demos/images ${MKDIR} ${PREFIX}/share/mesa-demos/data - @for img in `${LS} ${WRKDIR}/Mesa-${PORTVERSION}/images/*.rgb`; do \ - ${INSTALL_DATA} $$img ${SHAREDIR}/images ; \ + @for img in ${DEMO_IMAGES}; do \ + ${INSTALL_DATA} ${WRKSRC}/progs/images/$$img \ + ${DATADIR}/images ; \ done - @for dat in `${LS} ${WRKSRC}/*.dat`; do \ - ${INSTALL_DATA} $$dat ${SHAREDIR}/data ; \ + @for dat in ${DEMO_DATA}; do \ + ${INSTALL_DATA} ${WRKSRC}/progs/demos/$$dat ${DATADIR}/data ; \ done +.include <bsd.port.pre.mk> + +.if ${X_WINDOW_SYSTEM:L} != xorg +IGNORE= does not build with XFree86 +.endif + .include <bsd.port.post.mk> |