diff options
Diffstat (limited to 'x11/xscreensaver/Makefile.common')
-rw-r--r-- | x11/xscreensaver/Makefile.common | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/x11/xscreensaver/Makefile.common b/x11/xscreensaver/Makefile.common new file mode 100644 index 00000000000..00b0f029573 --- /dev/null +++ b/x11/xscreensaver/Makefile.common @@ -0,0 +1,50 @@ +# $NetBSD: Makefile.common,v 1.1 2000/06/03 19:07:30 fredb Exp $ +# + +DISTNAME= xscreensaver-3.24 +CATEGORIES= x11 +MASTER_SITES= http://www.jwz.org/xscreensaver/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.jwz.org/xscreensaver/ + +DEPENDS+= xpm-3.4k:../../graphics/xpm +DEPENDS+= Mesa-*:../../graphics/Mesa +DEPENDS+= gtk+-1.2.*:../../x11/gtk + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--without-shadow +CONFIGURE_ARGS+=--without-motif +CONFIGURE_ARGS+=--enable-subdir=${PREFIX}/libexec/xscreensaver +CONFIGURE_ARGS+=--with-zippy=/usr/games/fortune +CONFIGURE_ENV+= INSTALL=/usr/bin/install + +USE_X11BASE= yes +USE_PERL5= yes +USE_XAW= yes + +FILESDIR= ${.CURDIR}/../../x11/xscreensaver/files +PATCHDIR= ${.CURDIR}/../../x11/xscreensaver/patches +PKGDIR= ${.CURDIR}/../../x11/xscreensaver/pkg + +post-patch: + cd ${WRKSRC}/driver ; \ + f=xscreensaver.kss ; \ + [ -f $$f.BAK ] || ${MV} $$f $$f.BAK ; \ + ${SED} \ + -e 's|@PREFIX@|${PREFIX}|g' \ + <xscreensaver.kss.BAK >xscreensaver.kss + +.include "../../mk/bsd.prefs.mk" + +XAW_TYPE?= 3d + +.if (${OPSYS} == "NetBSD") +.if defined(KERBEROS) +CFLAGS+= -I/usr/include/kerberosIV +.else +CONFIGURE_ARGS+=--without-kerberos +.endif +.endif + +.include "../../mk/bsd.pkg.mk" |