1 # $NetBSD: Makefile.common,v 1.111 2012/08/01 12:22:14 drochner Exp $
3 # used by x11/xscreensaver/Makefile
4 # used by x11/xscreensaver-demo/Makefile
6 # When updating the package,
7 # please check kdeartwork3 -- it installs some extra
8 # files depending on which screensavers it finds.
9 DISTNAME= xscreensaver-5.19
11 MASTER_SITES= ${HOMEPAGE}
13 MAINTAINER= pkgsrc-users@NetBSD.org
14 HOMEPAGE= http://www.jwz.org/xscreensaver/
16 BUILDLINK_API_DEPENDS.Xrandr+= Xrandr>=1.0.2
20 USE_TOOLS+= msgfmt perl
23 CONFIGURE_ARGS+= --with-hackdir=${PREFIX}/libexec/xscreensaver
24 CONFIGURE_ARGS+= --with-jpeg=${JPEGBASE}
25 CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
27 CONFIGURE_ARGS+= --without-motif
29 CONFIGURE_ENV+= ac_cv_x_app_defaults="${PREFIX}/lib/X11/app-defaults"
30 CONFIGURE_ENV+= ac_cv_perl_version="${PERL_VERSION_cmd:sh}"
31 CONFIGURE_ENV+= INTLTOOL_PERL=${PERL5:Q}
32 .if defined(PKGREVISION)
33 CONFIGURE_ENV+= X_CFLAGS="-DPKGREVISION=${PKGREVISION}"
35 CONFIGURE_ARGS+= ac_cv_path_INTLTOOL_PERL=${PERL5:Q}
37 DISTINFO_FILE= ${.CURDIR}/../../x11/xscreensaver/distinfo
38 PATCHDIR= ${.CURDIR}/../../x11/xscreensaver/patches
40 .include "../../mk/bsd.prefs.mk"
42 PERL_VERSION_cmd= if ${TEST} -x ${PERL5}; then \
43 ${PERL5} -e 'print $$]'; \
48 .if (${OPSYS} == "NetBSD")
49 . if defined(KERBEROS)
50 CFLAGS+= -I/usr/include/kerberosIV
52 CONFIGURE_ARGS+= --without-kerberos
56 .include "../../mk/compiler.mk"
57 .if !empty(CC_VERSION:Mgcc*)
58 CFLAGS+= -fno-strict-aliasing
61 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
65 .if !exists(/usr/bin/bc)
66 BUILD_DEPENDS+= bc-[0-9]*:../../math/bc
69 INSTALL_MAKE_FLAGS= install_prefix=${DESTDIR}
71 .include "../../devel/gettext-lib/buildlink3.mk"
72 .include "../../mk/jpeg.buildlink3.mk"
73 .include "../../x11/libXrandr/buildlink3.mk"
74 .include "../../x11/libXt/buildlink3.mk"