freebsd-ports/x11/xscreensaver/Makefile

69 lines
2.3 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-30 22:51:23 -04:00
# $FreeBSD$
#
2000-04-13 15:19:05 -04:00
PORTNAME= xscreensaver
PORTVERSION= 4.01
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
(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 05:28:57 -04:00
USE_XPM= yes
USE_MESA= yes
USE_GTK= yes
WANT_GNOME= yes
2000-10-05 02:47:41 -04: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/
.include <bsd.port.pre.mk>
.if defined(HAVE_GNOME)
USE_GNOME= yes
CONFIGURE_ARGS+= --with-gnome
.else
CONFIGURE_ARGS+= --without-gnome
.endif
CONFIGURE_ENV= X_CFLAGS=-I${LOCALBASE}/include/gnome-xml
2000-10-05 02:47:41 -04:00
MAN1= attraction.1 blitspin.1 bouboule.1 braid.1 \
1999-05-31 12:57:53 -04:00
bsod.1 bubbles.1 critical.1 decayscreen.1 \
1999-11-02 11:15:05 -05:00
deco.1 distort.1 drift.1 epicycle.1 flag.1 flame.1 \
2001-03-05 06:23:02 -05:00
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 \
1999-11-02 11:15:05 -05:00
imsmap.1 jigsaw.1 julia.1 kaleidescope.1 lament.1 laser.1 \
2000-11-11 22:52:13 -05:00
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 \
2001-03-05 06:23:02 -05:00
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 glforestfire.1 \
glsnake.1 sballs.1 twang.1 xspirograph.1
post-patch:
@ ${CP} ${WRKSRC}/configure ${WRKSRC}/configure.Patched
@ ${SED} -e 's#-lpthread#${PTHREAD_LIBS}#g' \
${WRKSRC}/configure.Patched > ${WRKSRC}/configure
.for file in 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
2000-10-05 02:47:41 -04:00
.include <bsd.port.post.mk>