Annotation of /branches/magellan-next/core/xscreensaver/xscreensaver-5.14-r2.smage2
Parent Directory | Revision Log
Revision 8838 -
(hide annotations)
(download)
Tue Aug 2 12:05:10 2011 UTC (12 years, 9 months ago) by niro
File size: 2606 byte(s)
Tue Aug 2 12:05:10 2011 UTC (12 years, 9 months ago) by niro
File size: 2606 byte(s)
-use new system-auth stack
1 | niro | 8838 | # $Id$ |
2 | |||
3 | PNAME="xscreensaver" | ||
4 | PVER="5.14" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="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-apps/xwininfo-1 | ||
15 | >= x11-apps/appres-1 | ||
16 | >= media-libs/netpbm-10.35 | ||
17 | >= media-libs/libjpeg-8 | ||
18 | >= sys-libs/zlib-1.2 | ||
19 | >= dev-libs/libxml2-2.7 | ||
20 | >= x11-libs/gtk2+-2.24 | ||
21 | >= dev-libs/glib2-2.28 | ||
22 | >= gnome-base/libglade-2.6.4 | ||
23 | >= sys-libs/pam-1.1 | ||
24 | >= virtual/opengl" | ||
25 | |||
26 | SDEPEND=">= x11-proto/xf86vidmodeproto-2.2 | ||
27 | >= x11-proto/xextproto-7 | ||
28 | >= x11-proto/scrnsaverproto-1 | ||
29 | >= x11-proto/recordproto-1 | ||
30 | >= x11-proto/xf86miscproto-0.9 | ||
31 | >= x11-proto/xineramaproto-1 | ||
32 | >= sys-dev/bc-1.06 | ||
33 | >= dev-lang/perl-5.14 | ||
34 | >= dev-util/pkgconfig-0.25 | ||
35 | >= sys-dev/gettext-0.18" | ||
36 | |||
37 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
38 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
39 | |||
40 | sminclude mtools | ||
41 | |||
42 | SRC_URI=( | ||
43 | http://www.jwz.org/${PNAME}/${SRCFILE} | ||
44 | mirror://${PNAME}/${SRCFILE} | ||
45 | mirror://${PNAME}/xscreensaver.pam-systemauth | ||
46 | mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch | ||
47 | mirror://${PNAME}/${PNAME}-5.08-no-intltool.patch | ||
48 | ) | ||
49 | |||
50 | UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz" | ||
51 | |||
52 | src_prepare() | ||
53 | { | ||
54 | munpack ${SRCFILE} || die | ||
55 | cd ${SRCDIR} | ||
56 | |||
57 | # fix app defaults for X11R7 | ||
58 | mpatch ${PNAME}-4.24-app-defaults.patch || die | ||
59 | |||
60 | # recreate all po files | ||
61 | # fix error: po/Makefile.in.in was not created by intltoolize | ||
62 | mpatch ${PNAME}-5.08-no-intltool.patch || die | ||
63 | |||
64 | # rebuild configure | ||
65 | autoreconf || die | ||
66 | } | ||
67 | |||
68 | src_compile() | ||
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | |||
72 | # force app-defaults dir location | ||
73 | ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \ | ||
74 | mconfigure \ | ||
75 | --libexecdir=/usr/$(mlibdir) \ | ||
76 | --enable-hackdir=/usr/$(mlibdir)/xscreensaver \ | ||
77 | --x-libraries=/usr/$(mlibdir) \ | ||
78 | --x-includes=/usr/include \ | ||
79 | --with-mit-ext \ | ||
80 | --with-dpms-ext \ | ||
81 | --with-xf86vmode-ext \ | ||
82 | --with-xf86gamma-ext \ | ||
83 | --with-randr-ext \ | ||
84 | --with-proc-interrupts \ | ||
85 | --with-xpm \ | ||
86 | --with-xshm-ext \ | ||
87 | --with-xdbe-ext \ | ||
88 | --enable-locking \ | ||
89 | --with-fortune=/usr/bin/fortune \ | ||
90 | --without-motif \ | ||
91 | --with-gtk \ | ||
92 | --with-randr-ext \ | ||
93 | --with-xml \ | ||
94 | --with-xinerama-ext \ | ||
95 | --with-pam \ | ||
96 | --without-kerberos \ | ||
97 | --with-gl \ | ||
98 | --without-gle \ | ||
99 | --with-jpeg \ | ||
100 | --enable-nls \ | ||
101 | || die | ||
102 | |||
103 | mmake || die | ||
104 | } | ||
105 | |||
106 | src_install() | ||
107 | { | ||
108 | cd ${SRCDIR} | ||
109 | |||
110 | # needed directories | ||
111 | minstalldir /usr/$(mlibdir)/xscreensaver || die | ||
112 | minstalldir /usr/share/gnome/capplets || die | ||
113 | minstalldir /usr/share/pixmaps || die | ||
114 | |||
115 | mmake install_prefix=${BINDIR} install || die | ||
116 | |||
117 | # pam stuff | ||
118 | minstallpam xscreensaver.pam-systemauth xscreensaver || die | ||
119 | |||
120 | minstalldocs README || die | ||
121 | } |