2002-01-07 16:10:17 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.21 2002/01/07 15:10:17 fredb Exp $
|
2000-06-03 21:07:29 +02:00
|
|
|
#
|
|
|
|
|
2002-01-07 16:10:17 +01:00
|
|
|
DISTNAME= xscreensaver-3.34
|
2000-08-01 12:46:33 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${HOMEPAGE} \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/graphics/xscreensaver/
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.jwz.org/xscreensaver/
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
DEPENDS+= gtk+-1.2.*:../../x11/gtk
|
2001-09-28 01:17:41 +02:00
|
|
|
DEPENDS+= gle-[0-9]*:../../graphics/gle
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-09-11 22:46:36 +02:00
|
|
|
USE_MESA= yes
|
2000-08-01 12:46:33 +02:00
|
|
|
USE_X11BASE= yes
|
2000-09-10 19:55:46 +02:00
|
|
|
USE_XPM= yes
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
EVAL_PREFIX+= GTKDIR=gtk+
|
|
|
|
EVAL_PREFIX+= XPMDIR=xpm
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-subdir=${PREFIX}/libexec/xscreensaver
|
|
|
|
CONFIGURE_ARGS+= --with-gl
|
|
|
|
CONFIGURE_ARGS+= --with-gtk=${GTKDIR}
|
|
|
|
CONFIGURE_ARGS+= --with-xpm=${XPMDIR}
|
|
|
|
CONFIGURE_ARGS+= --without-motif
|
|
|
|
CONFIGURE_ARGS+= --without-shadow
|
|
|
|
CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
|
|
|
|
CONFIGURE_ENV+= INSTALL=/usr/bin/install
|
2001-02-08 06:57:52 +01:00
|
|
|
CONFIGURE_ENV+= X_PRE_LIBS=-lXt
|
2000-10-17 07:44:47 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_x_app_defaults="${X11PREFIX}/lib/X11/app-defaults"
|
2001-03-30 22:31:57 +02:00
|
|
|
CONFIGURE_ENV+= PERL="${PERL}" ac_cv_perl_version="${PERL_VERSION}"
|
2001-02-08 06:57:52 +01:00
|
|
|
MAKE_ENV+= KDEDIR=${X11PREFIX}
|
2000-08-01 12:46:33 +02:00
|
|
|
|
2001-12-19 14:08:25 +01:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../xscreensaver/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/../xscreensaver/files
|
|
|
|
PATCHDIR= ${.CURDIR}/../xscreensaver/patches
|
|
|
|
PKGDIR= ${.CURDIR}/../xscreensaver
|
2000-06-03 21:07:29 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}/driver ; \
|
|
|
|
f=xscreensaver.kss ; \
|
|
|
|
[ -f $$f.BAK ] || ${MV} $$f $$f.BAK ; \
|
2000-08-01 12:48:19 +02:00
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' < $$f.BAK > $$f
|
2000-06-03 21:07:29 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if (${OPSYS} == "NetBSD")
|
|
|
|
.if defined(KERBEROS)
|
2000-08-01 12:46:33 +02:00
|
|
|
CFLAGS+= -I/usr/include/kerberosIV
|
2000-06-03 21:07:29 +02:00
|
|
|
.else
|
2000-08-01 12:46:33 +02:00
|
|
|
CONFIGURE_ARGS+= --without-kerberos
|
2000-06-03 21:07:29 +02:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2001-04-14 23:21:25 +02:00
|
|
|
|
2001-06-18 17:41:49 +02:00
|
|
|
# this has to come after bsd.pkg.mk for ${ECHO}.
|
2001-04-14 23:21:25 +02:00
|
|
|
|
|
|
|
PERL?= ${LOCALBASE}/bin/perl
|
|
|
|
.ifndef (PERL_VERSION)
|
|
|
|
PERL_VERSION!= if [ -x ${PERL} ]; then ${PERL} -e 'print $$]'; else ${ECHO} "5.006"; fi
|
|
|
|
MAKEFLAGS+= PERL_VERSION="${PERL_VERSION}"
|
|
|
|
.endif
|