Magellan Linux

Contents of /branches/R11-stable/extras/xscreensaver/xscreensaver-5.22-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18753 - (show annotations) (download)
Wed Aug 14 11:54:12 2013 UTC (10 years, 8 months ago) by niro
File size: 2762 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.22"
5 PBUILD="r1"
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-apps/xwininfo-1
15 >= x11-apps/appres-1
16 >= media-libs/netpbm-10.60
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.34
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.16
34 >= dev-util/pkgconfig-0.25
35 >= sys-dev/gettext-0.18
36 >= virtual/sed"
37
38 SRCFILE="${PNAME}-${PVER}.tar.gz"
39 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40
41 sminclude mtools
42 msetfeature "!check"
43
44 SRC_URI=(
45 http://www.jwz.org/${PNAME}/${SRCFILE}
46 mirror://${PNAME}/${SRCFILE}
47 mirror://${PNAME}/xscreensaver.pam-systemauth
48 mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch
49 mirror://${PNAME}/${PNAME}-${PVER}-autoconf264.patch
50 )
51
52 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
53
54 src_prepare()
55 {
56 munpack ${SRCFILE} || die
57 cd ${SRCDIR}
58
59 # fix app defaults for X11R7
60 mpatch ${PNAME}-4.24-app-defaults.patch || die
61
62 # be compat with >=autoconf-2.64
63 mpatch ${PNAME}-${PVER}-autoconf264.patch || die
64
65 # fix intltool issues
66 intltoolize --force || die
67 sed -i 's:@install_sh@:install:g' po/Makefile.in.in || die
68
69 # remove old aclocal macros
70 rm aclocal.m4 || die
71
72 # rebuild configure
73 mautoreconf || die
74 }
75
76 src_compile()
77 {
78 cd ${SRCDIR}
79
80 # force app-defaults dir location
81 ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
82 mconfigure \
83 --libexecdir=/usr/$(mlibdir) \
84 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
85 --x-libraries=/usr/$(mlibdir) \
86 --x-includes=/usr/include \
87 --with-mit-ext \
88 --with-dpms-ext \
89 --with-xf86vmode-ext \
90 --with-xf86gamma-ext \
91 --with-randr-ext \
92 --with-proc-interrupts \
93 --with-xpm \
94 --with-xshm-ext \
95 --with-xdbe-ext \
96 --enable-locking \
97 --with-fortune=/usr/bin/fortune \
98 --without-motif \
99 --with-gtk \
100 --with-randr-ext \
101 --with-xml \
102 --with-xinerama-ext \
103 --with-pam \
104 --without-kerberos \
105 --with-gl \
106 --without-gle \
107 --with-jpeg \
108 --enable-nls \
109 || die
110
111 mmake -j1 all || die
112 }
113
114 src_install()
115 {
116 cd ${SRCDIR}
117
118 # needed directories
119 minstalldir /usr/$(mlibdir)/xscreensaver || die
120 minstalldir /usr/share/gnome/capplets || die
121 minstalldir /usr/share/pixmaps || die
122
123 mmake install_prefix=${BINDIR} install || die
124
125 # pam stuff
126 minstallpam xscreensaver.pam-systemauth xscreensaver || die
127
128 minstalldocs README || die
129 }