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