aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xscreensaver/Makefile
blob: 6df15daac7812a1954ba0f6c3b0ebd12d9ab1d8e (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
# New ports collection makefile for:    xscreensaver
# Date created:         10 July 1995
# Whom:                 dom@myrddin.demon.co.uk
#
# $FreeBSD$
#

PORTNAME=   xscreensaver
PORTVERSION=    4.00
CATEGORIES= x11
MASTER_SITES=   http://www.jwz.org/xscreensaver/

MAINTAINER= DougB@FreeBSD.org

LIB_DEPENDS=    gle.3:${PORTSDIR}/graphics/gle \
        xml.5:${PORTSDIR}/textproc/libxml

USE_X_PREFIX=   yes
USE_XPM=    yes
USE_MESA=   yes
USE_GTK=    yes
WANT_GNOME= yes
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/

.include <bsd.port.pre.mk>

.if defined(HAVE_GNOME)
CONFIGURE_ARGS+=    --with-gnome
.else
CONFIGURE_ARGS+=    --without-gnome
.endif

CONFIGURE_ENV=  X_CFLAGS=-I${LOCALBASE}/include/gnome-xml

MAN1=       attraction.1 blitspin.1 bouboule.1 braid.1 \
        bsod.1 bubbles.1 critical.1 decayscreen.1 \
        deco.1 distort.1 drift.1 epicycle.1 flag.1 flame.1 \
        forest.1 galaxy.1 gflux.1 gltext.1 goop.1 grav.1 greynetic.1 \
        halo.1 helix.1 hopalong.1 hyperball.1 hypercube.1 ifs.1 \
        imsmap.1 jigsaw.1 julia.1 kaleidescope.1 lament.1 laser.1 \
        lightning.1 lisa.1 lmorph.1 maze.1 moire.1 munch.1 nerverot.1 \
        noseguy.1 pedal.1 penrose.1 petri.1 phosphor.1 pyro.1 qix.1 \
        rd-bomb.1 rocks.1 rorschach.1 sierpinski.1 slidescreen.1 \
        slip.1 sonar.1 sphere.1 spiral.1 spotlight.1 squiral.1 \
        starfish.1 starwars.1 strange.1 swirl.1 t3d.1 vidwhacker.1 \
        vines.1 webcollage.1 whirlwindwarp.1 xflame.1 xjack.1 xlyap.1 \
        xmatrix.1 xscreensaver-command.1 xscreensaver-demo.1 \
        xscreensaver-gl-helper.1 xscreensaver.1 xsublim.1 xteevee.1 \
        zoom.1 molecule.1 rotzoomer.1 bumps.1 xscreensaver-getimage.1 \
        xscreensaver-getimage-file.1 xscreensaver-getimage-video.1 \
        speedmine.1 whirlygig.1 penetrate.1

post-patch:
    @ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched
    @ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \
        ${WRKSRC}/configure.Patched > ${WRKSRC}/configure
.for file in pulsar.c extrusion.c
    @ ${CP} ${WRKSRC}/hacks/glx/${file} ${WRKSRC}/hacks/glx/${file}.Dist
    @ ${SED} -e 's/malloc.h/stdlib.h/g' ${WRKSRC}/hacks/glx/${file}.Dist > \
        ${WRKSRC}/hacks/glx/${file}
.endfor

.include <bsd.port.post.mk>