Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22852 - (show annotations) (download)
Tue Oct 28 09:03:05 2014 UTC (9 years, 6 months ago) by niro
File size: 2623 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="xscreensaver"
4 PVER="5.30"
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.9
20 >= x11-libs/gtk2+-2.24
21 >= dev-libs/glib2-2.42
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.20
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 )
50
51 UP2DATE="updatecmd ${HOMEPAGE}/download.html | lasttarball gz"
52
53 src_prepare()
54 {
55 munpack ${SRCFILE} || die
56 cd ${SRCDIR}
57
58 # fix app defaults for X11R7
59 mpatch ${PNAME}-4.24-app-defaults.patch || die
60
61 # fix intltool issues
62 intltoolize --force || die
63 sed -i 's:@install_sh@:install:g' po/Makefile.in.in || die
64
65 # remove old aclocal macros
66 rm aclocal.m4 || die
67
68 # rebuild configure
69 mautoreconf || die
70 }
71
72 src_compile()
73 {
74 cd ${SRCDIR}
75
76 # force app-defaults dir location
77 ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
78 mconfigure \
79 --libexecdir=/usr/$(mlibdir) \
80 --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
81 --x-libraries=/usr/$(mlibdir) \
82 --x-includes=/usr/include \
83 --with-mit-ext \
84 --with-dpms-ext \
85 --with-xf86vmode-ext \
86 --with-xf86gamma-ext \
87 --with-randr-ext \
88 --with-proc-interrupts \
89 --with-xpm \
90 --with-xshm-ext \
91 --with-xdbe-ext \
92 --enable-locking \
93 --with-fortune=/usr/bin/fortune \
94 --without-motif \
95 --with-gtk \
96 --with-randr-ext \
97 --with-xml \
98 --with-xinerama-ext \
99 --with-pam \
100 --without-kerberos \
101 --with-gl \
102 --without-gle \
103 --with-jpeg \
104 --enable-nls \
105 || die
106
107 mmake -j1 all || die
108 }
109
110 src_install()
111 {
112 cd ${SRCDIR}
113
114 # needed directories
115 minstalldir /usr/$(mlibdir)/xscreensaver || die
116 minstalldir /usr/share/gnome/capplets || die
117 minstalldir /usr/share/pixmaps || die
118
119 mmake install_prefix=${BINDIR} install || die
120
121 # pam stuff
122 minstallpam xscreensaver.pam-systemauth xscreensaver || die
123
124 minstalldocs README || die
125 }