Contents of /branches/R11-stable/extras/xscreensaver/xscreensaver-5.32-r2.smage2
Parent Directory | Revision Log
Revision 24129 -
(show annotations)
(download)
Fri Feb 20 09:07:25 2015 UTC (9 years, 7 months ago) by niro
File size: 2674 byte(s)
Fri Feb 20 09:07:25 2015 UTC (9 years, 7 months ago) by niro
File size: 2674 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="xscreensaver" |
4 | PVER="5.32" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="x11-misc" |
8 | |
9 | DESCRIPTION="a screen saver and locker for the x-window-system." |
10 | HOMEPAGE="http://www.jwz.org/xscreensaver/" |
11 | |
12 | DEPEND=">= x11-libs/libXxf86misc-1 |
13 | >= x11-libs/libXinerama-1 |
14 | >= x11-libs/libXpm-3.5 |
15 | >= x11-apps/xwininfo-1 |
16 | >= x11-apps/appres-1 |
17 | >= media-libs/netpbm-10.60 |
18 | >= media-libs/libjpeg-8 |
19 | >= sys-libs/zlib-1.2 |
20 | >= dev-libs/libxml2-2.9 |
21 | >= x11-libs/gtk2+-2.24 |
22 | >= dev-libs/glib2-2.42 |
23 | >= gnome-base/libglade-2.6.4 |
24 | >= sys-libs/pam-1.1 |
25 | >= virtual/opengl" |
26 | |
27 | SDEPEND=">= x11-proto/xf86vidmodeproto-2.2 |
28 | >= x11-proto/xextproto-7 |
29 | >= x11-proto/scrnsaverproto-1 |
30 | >= x11-proto/recordproto-1 |
31 | >= x11-proto/xf86miscproto-0.9 |
32 | >= x11-proto/xineramaproto-1 |
33 | >= sys-dev/bc-1.06 |
34 | >= dev-lang/perl-5.20 |
35 | >= dev-util/pkgconfig-0.25 |
36 | >= dev-util/intltool-0.50 |
37 | >= sys-dev/gettext-0.18 |
38 | >= virtual/sed" |
39 | |
40 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
41 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
42 | |
43 | sminclude mtools |
44 | msetfeature "!check" |
45 | |
46 | SRC_URI=( |
47 | http://www.jwz.org/${PNAME}/${SRCFILE} |
48 | mirror://${PNAME}/${SRCFILE} |
49 | mirror://${PNAME}/xscreensaver.pam-systemauth |
50 | mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch |
51 | ) |
52 | |
53 | UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz" |
54 | |
55 | src_prepare() |
56 | { |
57 | munpack ${SRCFILE} || die |
58 | cd ${SRCDIR} |
59 | |
60 | # fix app defaults for X11R7 |
61 | mpatch ${PNAME}-4.24-app-defaults.patch || die |
62 | |
63 | # fix intltool issues |
64 | intltoolize --force || die |
65 | sed -i 's:@install_sh@:install:g' po/Makefile.in.in || die |
66 | |
67 | # remove old aclocal macros |
68 | rm aclocal.m4 || die |
69 | |
70 | # rebuild configure |
71 | mautoreconf || die |
72 | } |
73 | |
74 | src_compile() |
75 | { |
76 | cd ${SRCDIR} |
77 | |
78 | # force app-defaults dir location |
79 | ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \ |
80 | mconfigure \ |
81 | --libexecdir=/usr/$(mlibdir) \ |
82 | --enable-hackdir=/usr/$(mlibdir)/xscreensaver \ |
83 | --x-libraries=/usr/$(mlibdir) \ |
84 | --x-includes=/usr/include \ |
85 | --with-mit-ext \ |
86 | --with-dpms-ext \ |
87 | --with-xf86vmode-ext \ |
88 | --with-xf86gamma-ext \ |
89 | --with-randr-ext \ |
90 | --with-proc-interrupts \ |
91 | --with-xpm \ |
92 | --with-xshm-ext \ |
93 | --with-xdbe-ext \ |
94 | --enable-locking \ |
95 | --with-fortune=/usr/bin/fortune \ |
96 | --without-motif \ |
97 | --with-gtk \ |
98 | --with-randr-ext \ |
99 | --with-xml \ |
100 | --with-xinerama-ext \ |
101 | --with-pam \ |
102 | --without-kerberos \ |
103 | --with-gl \ |
104 | --without-gle \ |
105 | --with-jpeg \ |
106 | --enable-nls \ |
107 | || die |
108 | |
109 | mmake -j1 all || die |
110 | } |
111 | |
112 | src_install() |
113 | { |
114 | cd ${SRCDIR} |
115 | |
116 | # needed directories |
117 | minstalldir /usr/$(mlibdir)/xscreensaver || die |
118 | minstalldir /usr/share/gnome/capplets || die |
119 | minstalldir /usr/share/pixmaps || die |
120 | |
121 | mmake install_prefix=${BINDIR} install || die |
122 | |
123 | # pam stuff |
124 | minstallpam xscreensaver.pam-systemauth xscreensaver || die |
125 | |
126 | minstalldocs README || die |
127 | } |