66b4265065
by helping it find "libxml" and "libjpeg" and adding depencencies for them. Also, "gdk_pixbuf" gets favored now over "Xpm" anyway, so add an explicit dependency for it, too.
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
# $NetBSD: Makefile.common,v 1.24 2002/03/01 06:46:49 fredb Exp $
|
|
#
|
|
|
|
DISTNAME= xscreensaver-4.01
|
|
CATEGORIES= x11
|
|
MASTER_SITES= ${HOMEPAGE} \
|
|
ftp://ftp.fu-berlin.de/unix/X11/graphics/xscreensaver/
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.jwz.org/xscreensaver/
|
|
|
|
DEPENDS+= gtk+-1.2.*:../../x11/gtk
|
|
DEPENDS+= gle-[0-9]*:../../graphics/gle
|
|
DEPENDS+= gdk-pixbuf>=0.10.1:../../graphics/gdk-pixbuf
|
|
DEPENDS+= jpeg-6b:../../graphics/jpeg
|
|
DEPENDS+= libxml-1.8.16:../../texproc/libxml
|
|
|
|
USE_MESA= yes
|
|
USE_X11BASE= yes
|
|
|
|
EVAL_PREFIX+= GTKDIR=gtk+
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-hackdir=${PREFIX}/libexec/xscreensaver
|
|
CONFIGURE_ARGS+= --with-gl --with-gle
|
|
CONFIGURE_ARGS+= --with-gtk=${GTKDIR}
|
|
CONFIGURE_ARGS+= --with-jpeg=${LOCALBASE}
|
|
CONFIGURE_ARGS+= --without-motif
|
|
CONFIGURE_ARGS+= --without-shadow
|
|
CONFIGURE_ARGS+= --with-xml=${LOCALBASE}
|
|
CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
|
|
CONFIGURE_ENV+= INSTALL=/usr/bin/install
|
|
CONFIGURE_ENV+= X_PRE_LIBS=-lXt
|
|
CONFIGURE_ENV+= ac_cv_x_app_defaults="${X11PREFIX}/lib/X11/app-defaults"
|
|
CONFIGURE_ENV+= PERL="${PERL}" ac_cv_perl_version="${PERL_VERSION}"
|
|
MAKE_ENV+= KDEDIR=${X11PREFIX}
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../xscreensaver/distinfo
|
|
FILESDIR= ${.CURDIR}/../xscreensaver/files
|
|
PATCHDIR= ${.CURDIR}/../xscreensaver/patches
|
|
PKGDIR= ${.CURDIR}/../xscreensaver
|
|
|
|
post-patch:
|
|
cd ${WRKSRC}/driver ; \
|
|
f=xscreensaver.kss ; \
|
|
[ -f $$f.BAK ] || ${MV} $$f $$f.BAK ; \
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' < $$f.BAK > $$f
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if (${OPSYS} == "NetBSD")
|
|
.if defined(KERBEROS)
|
|
CFLAGS+= -I/usr/include/kerberosIV
|
|
.else
|
|
CONFIGURE_ARGS+= --without-kerberos
|
|
.endif
|
|
.endif
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
# this has to come after bsd.pkg.mk for ${ECHO}.
|
|
|
|
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
|