aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xscreensaver-gnome/Makefile
blob: 0182dc86100196e270828e99ef13a878558a3056 (plain) (blame)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# New ports collection makefile for:    xscreensaver-gnome
# Date created:             13th February 2002
# Whom:                 Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports/x11/xscreensaver-gnome/Makefile,v 1.2 2006/10/07 19:20:33 ahze Exp $

PORTNAME?=  xscreensaver-gnome
PORTVERSION=    4.24
PORTREVISION?=  5
CATEGORIES= x11 gnome
MASTER_SITES=   http://www.jwz.org/xscreensaver/
DISTNAME=   xscreensaver-${PORTVERSION}

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Save your screen while you entertain your cat (for GNOME users)

LIB_DEPENDS=    gle.4:${PORTSDIR}/graphics/gle

CONFLICTS?= xscreensaver-[0-9]* xscreensaver-gnome-hacks-[0-9]*

USE_XLIB=   yes
USE_XPM=    yes
USE_GL=     yes
USE_GMAKE=  yes
USE_PERL5_RUN=  yes
USE_GNOME=  gnomehier libglade2 gnomehack
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-gl --with-gle --with-xpm --with-xml \
        --with-hackdir=${PREFIX}/bin/xscreensaver-hacks \
        --with-configdir=${PREFIX}/share/xscreensaver/config \
        --with-jpeg=${LOCALBASE} --without-motif \
        --without-kerberos
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

OPTIONS?=   PAM "Pluggable Authentication Module support" off \
        ALL_FORTUNES "Enable support for all fortunes" off

MAN1?=  anemone.1 apollonian.1 atlantis.1 attraction.1 blaster.1 \
    blitspin.1 bouboule.1 boxed.1 braid.1 bsod.1 bubble3d.1 bubbles.1 \
    bumps.1 cage.1 ccurve.1 circuit.1 compass.1 coral.1 critical.1 \
    crystal.1 cubenetic.1 cynosure.1 dangerball.1 decayscreen.1 deco.1 \
    deluxe.1 demon.1 discrete.1 distort.1 drift.1 engine.1 epicycle.1 \
    euler2d.1 extrusion.1 fadeplot.1 flag.1 flame.1 flipscreen3d.1 flow.1 \
    fluidballs.1 forest.1 galaxy.1 gears.1 gflux.1 glforestfire.1 \
    glplanet.1 glsnake.1 gltext.1 goop.1 grav.1 greynetic.1 halo.1 helix.1 \
    hopalong.1 hyperball.1 hypercube.1 ifs.1 imsmap.1 interference.1 \
    jigsaw.1 juggle.1 julia.1 kaleidescope.1 kumppa.1 lament.1 laser.1 \
    lavalite.1 lightning.1 lisa.1 lissie.1 lmorph.1 loop.1 maze.1 menger.1 \
    moebius.1 moire.1 moire2.1 molecule.1 morph3d.1 mountain.1 munch.1 \
    nerverot.1 noseguy.1 pedal.1 penetrate.1 penrose.1 petri.1 phosphor.1 \
    pipes.1 polyominoes.1 pulsar.1 pyro.1 qix.1 queens.1 rd-bomb.1 \
    ripples.1 rocks.1 rorschach.1 rotor.1 rotzoomer.1 rubik.1 sballs.1 \
    shadebobs.1 sierpinski.1 sierpinski3d.1 slidescreen.1 slip.1 sonar.1 \
    speedmine.1 sphere.1 spheremonics.1 spiral.1 spotlight.1 sproingies.1 \
    squiral.1 stairs.1 starfish.1 starwars.1 stonerview.1 strange.1 \
    superquadrics.1 swirl.1 t3d.1 thornbird.1 triangle.1 truchet.1 twang.1 \
    vermiculate.1 vidwhacker.1 vines.1 wander.1 webcollage.1 \
    whirlwindwarp.1 whirlygig.1 worm.1 xflame.1 xjack.1 xlyap.1 \
    xmatrix.1 xrayswarm.1 xspirograph.1 xsublim.1 xteevee.1 zoom.1 \
    endgame.1 glblur.1 halftone.1 barcode.1 eruption.1 flurry.1 \
    metaballs.1 atunnel.1 piecewise.1 bouncingcow.1 flyingtoasters.1 \
    glslideshow.1 jigglypuff.1 klein.1 blocktube.1 cloudlife.1 \
    cubestorm.1 glknots.1 glmatrix.1 hypertorus.1 antspotlight.1 \
    flipflop.1 polytopes.1 ljlatest.1 apple2.1 blinkbox.1 \
    fontglide.1 gleidescope.1 mirrorblob.1 pong.1 xanalogtv.1 \
    mismunch.1 noof.1 pacman.1 wormhole.1 antinspect.1 fuzzyflakes.1\
    polyhedra.1 anemotaxis.1 providence.1 memscroller.1 fireworkx.1 \
    intermomentary.1 pinion.1 substrate.1 boing.1 boxfit.1 carousel.1 \
    antmaze.1 crackberg.1 interaggregate.1 tangram.1 celtic.1 \
    cube21.1 glhanoi.1 juggler3d.1 timetunnel.1 \
    fiberlamp.1 fliptext.1 xscreensaver-text.1 \
    xscreensaver-command.1 xscreensaver-demo.1 \
    xscreensaver-getimage-file.1 xscreensaver-getimage-video.1 \
    xscreensaver-getimage.1 xscreensaver-gl-helper.1 xscreensaver.1

.include <bsd.port.pre.mk>

.if defined(WITH_ALL_FORTUNES)
CONFIGURE_ARGS+=    --with-fortune="/usr/games/fortune -sa"
.endif

.if !defined(WITH_PAM)
CONFIGURE_ARGS+=    --without-pam
.endif

.if ${ARCH} == "amd64"
CFLAGS+=    -O0
.endif

post-patch:
    @${REINPLACE_CMD}  -e 's|malloc[.]h|stdlib.h|g' \
        ${WRKSRC}/hacks/glx/extrusion.c
    @${REINPLACE_CMD} -e 's|
||' \
        ${WRKSRC}/hacks/glx/klein.c
    @${REINPLACE_CMD} -E -e 's|^[[:space:]]*GL_LIBS="${PTHREAD_LIBS}"|#|g ; \
        s|/usr/X11R6|${X11BASE}|g' \
        ${WRKSRC}/configure
    @${REINPLACE_CMD}  -e 's|<util.h>|<libutil.h>|' \
        ${WRKSRC}/hacks/phosphor.c ${WRKSRC}/hacks/apple2-main.c

.include <bsd.port.post.mk>