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