Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / xscreensaver / Makefile.common
blob9a92d0a2cd7c27a2e4dcf3af4d613a3ea0ca456a
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
10 CATEGORIES=             x11
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
18 USE_PKGLOCALEDIR=       yes
19 USE_X11=                yes
20 USE_TOOLS+=             msgfmt perl
22 GNU_CONFIGURE=          yes
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}"
34 .endif
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 $$]';                \
44                         else                                            \
45                                 ${ECHO} "5.006";                        \
46                         fi
48 .if (${OPSYS} == "NetBSD")
49 .  if defined(KERBEROS)
50 CFLAGS+=                -I/usr/include/kerberosIV
51 .  else
52 CONFIGURE_ARGS+=        --without-kerberos
53 .  endif
54 .endif
56 .include "../../mk/compiler.mk"
57 .if !empty(CC_VERSION:Mgcc*)
58 CFLAGS+=                -fno-strict-aliasing
59 .endif
61 .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
62 GCC_REQD+=              2.95.3
63 .endif
65 .if !exists(/usr/bin/bc)
66 BUILD_DEPENDS+=         bc-[0-9]*:../../math/bc
67 .endif
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"