freebsd-ports/x11/xscreensaver/Makefile

117 lines
4.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: xscreensaver
# Date created: 10 July 1995
# Whom: dom@myrddin.demon.co.uk
#
1999-08-31 04:51:23 +02:00
# $FreeBSD$
#
2000-04-13 21:19:05 +02:00
PORTNAME= xscreensaver
PORTVERSION= 5.01
PORTREVISION= 4
CATEGORIES?= x11
MASTER_SITES= http://www.jwz.org/xscreensaver/ \
http://dougbarton.us/Downloads/
MAINTAINER?= DougB@FreeBSD.org
COMMENT= Save your screen while you entertain your cat
2006-04-15 17:28:02 +02:00
LIB_DEPENDS= gle.4:${PORTSDIR}/graphics/gle \
gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20 \
xml2.5:${PORTSDIR}/textproc/libxml2 \
glade-2.0.0:${PORTSDIR}/devel/libglade2
(1) Add new variable, XFREE86_VERSION, to specify which version of XFree86 (3 or 4) to depend to when USE_XLIB is set. XFREE86_VERSION defaults to 3 for now, but adventurous users can override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB will add a dependency to x11/XFree86; when it is set to 4, the dependency will be to x11/XFree86-4-libraries. When XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS hacks to avoid messing with XFree86 are turned off. Since XFree86 version 4 includes some software that used to be separate ports, when XFREE86_VERSION=3 the following variables are provided: USE_DGS LIB_DEPENDS on x11/dgs USE_FREETYPE LIB_DEPENDS on print/freetype USE_MESA LIB_DEPENDS on graphics/Mesa3 USE_XPM LIB_DEPENDS on graphics/xpm When XFREE86_VERSION=4, these variables have no effect. The LIB_DEPENDS in the tree for the above four ports have all been converted to the USE_* counterparts. For your information, this is the count of the number of ports: USE_DGS 0 USE_FREETYPE 16 USE_MESA 36 USE_XPM 236 There is a new variable, XAWVER, which is set to 6 when XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also passed to PLIST_SUB so ports that build Xaw based shared libraries can use this variable to substitute the shlib version number. There is also a provision of using a separate mtree file for XFREE86_VERSION=4, but that part is not enabled yet. Reviewed by: the ports list Tested by: make index (XFREE86_VERSION=3 only) (2) Add hebrew to list of valid categories. Submitted by: nbm
2000-08-03 11:28:57 +02:00
USE_XPM= yes
USE_GL= yes
USE_GMAKE= yes
2000-10-05 08:47:41 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-pam --with-gl --with-gle --with-xpm --with-xml \
--with-hackdir=${PREFIX}/bin/xscreensaver-hacks/ \
--with-configdir=${PREFIX}/share/xscreensaver/config/ \
--with-jpeg=${LOCALBASE} --without-gnome --without-kerberos \
--without-motif --mandir=${PREFIX}/man
OPTIONS= ALL_FORTUNES "Run fortune with -sa argument" off \
SETUID_HACKS "Install sonar hack suid so it can ping" off
.include <bsd.port.pre.mk>
.if defined(WITH_ALL_FORTUNES)
CONFIGURE_ARGS+= --with-fortune="/usr/games/fortune -sa"
.endif
.if defined(WITH_SETUID_HACKS)
CONFIGURE_ARGS+= --with-setuid-hacks
.endif
.undef HAVE_GNOME
CONFIGURE_ENV= X_CFLAGS=-I${LOCALBASE}/include/gnome-xml
MAN1= xscreensaver-command.1 xscreensaver-demo.1 \
xscreensaver-getimage-file.1 xscreensaver-getimage-video.1 \
xscreensaver-getimage.1 xscreensaver-text.1 xscreensaver.1
MAN6= anemone.6 anemotaxis.6 antinspect.6 antmaze.6 antspotlight.6 \
apollonian.6 apple2.6 atlantis.6 attraction.6 atunnel.6 barcode.6 \
blaster.6 blinkbox.6 blitspin.6 blocktube.6 boing.6 bouboule.6 \
bouncingcow.6 boxed.6 boxfit.6 braid.6 bsod.6 bubble3d.6 bubbles.6 \
bumps.6 cage.6 carousel.6 ccurve.6 celtic.6 circuit.6 cloudlife.6 \
compass.6 coral.6 crackberg.6 critical.6 crystal.6 cube21.6 \
cubenetic.6 cubestorm.6 cynosure.6 dangerball.6 decayscreen.6 deco.6 \
deluxe.6 demon.6 discrete.6 distort.6 drift.6 endgame.6 engine.6 \
epicycle.6 eruption.6 euler2d.6 extrusion.6 fadeplot.6 fiberlamp.6 \
fireworkx.6 flag.6 flame.6 flipflop.6 flipscreen3d.6 fliptext.6 flow.6 \
fluidballs.6 flurry.6 flyingtoasters.6 fontglide.6 forest.6 \
fuzzyflakes.6 galaxy.6 gears.6 gflux.6 glblur.6 gleidescope.6 \
glforestfire.6 glhanoi.6 glknots.6 glmatrix.6 glplanet.6 glschool.6 \
glslideshow.6 glsnake.6 gltext.6 goop.6 grav.6 greynetic.6 halftone.6 \
halo.6 helix.6 hopalong.6 hyperball.6 hypercube.6 hypertorus.6 ifs.6 \
imsmap.6 interaggregate.6 interference.6 intermomentary.6 jigglypuff.6 \
jigsaw.6 juggle.6 juggler3d.6 julia.6 kaleidescope.6 klein.6 kumppa.6 \
lament.6 laser.6 lavalite.6 lightning.6 lisa.6 lissie.6 ljlatest.6 \
lmorph.6 loop.6 maze.6 memscroller.6 menger.6 metaballs.6 mirrorblob.6 \
mismunch.6 moebius.6 moire.6 moire2.6 molecule.6 morph3d.6 mountain.6 \
munch.6 nerverot.6 noof.6 noseguy.6 pacman.6 pedal.6 penetrate.6 \
penrose.6 petri.6 phosphor.6 piecewise.6 pinion.6 pipes.6 polyhedra.6 \
polyominoes.6 polytopes.6 pong.6 providence.6 pulsar.6 pyro.6 qix.6 \
queens.6 rd-bomb.6 ripples.6 rocks.6 rorschach.6 rotor.6 rotzoomer.6 \
rubik.6 sballs.6 shadebobs.6 sierpinski.6 sierpinski3d.6 slidescreen.6 \
slip.6 sonar.6 speedmine.6 sphere.6 spheremonics.6 spiral.6 \
spotlight.6 sproingies.6 squiral.6 stairs.6 starfish.6 \
starwars.6 stonerview.6 strange.6 substrate.6 superquadrics.6 \
swirl.6 t3d.6 tangram.6 thornbird.6 timetunnel.6 topblock.6 \
triangle.6 truchet.6 twang.6 vermiculate.6 vidwhacker.6 vines.6 \
wander.6 webcollage.6 whirlwindwarp.6 whirlygig.6 worm.6 wormhole.6 \
xanalogtv.6 xflame.6 xjack.6 xlyap.6 xmatrix.6 xrayswarm.6 \
xspirograph.6 xsublim.6 zoom.6 \
xscreensaver-gl-helper.6
.if ${ARCH} == "amd64"
CFLAGS+= -O0
.endif
pre-fetch:
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
@${ECHO} ''
@${ECHO} '*** This is the non-gnome version of the port.'
@${ECHO} ' If you want gnome support, hit Ctrl-C now,'
@${ECHO} ' and cd ../xscreensaver-gnome.'
@${ECHO} ''
@sleep 2
.endif
USE_DOS2UNIX= hacks/glx/topblock.c
post-patch:
@ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched
@ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \
-e 's#malloc.h#stdlib.h#g' \
-e 's#/usr/X11R6#${X11BASE}#g' \
${WRKSRC}/configure.Patched > ${WRKSRC}/configure
post-install:
@(if test -x ${LOCALBASE}/bin/xscreensaver-hacks/webcollage-helper; then \
${ECHO} "bin/xscreensaver-hacks/webcollage-helper" | \
${CAT} - ${TMPPLIST} > ${TMPPLIST}.cat && \
${MV} ${TMPPLIST}.cat ${TMPPLIST}; fi)
.include <bsd.port.post.mk>