Magellan Linux

Annotation of /branches/magellan-next/core/xscreensaver/xscreensaver-5.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7101 - (hide annotations) (download)
Tue Sep 28 20:17:05 2010 UTC (13 years, 8 months ago) by niro
File size: 2657 byte(s)
-dropped gle support
1 niro 7100 # $Id: xscreensaver-5.10-r1.smage2 3650 2009-10-28 16:58:36Z niro $
2    
3     PNAME="xscreensaver"
4     PVER="5.12"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-misc"
8     STATE="unstable"
9    
10     DESCRIPTION="a screen saver and locker for the x-window-system."
11     HOMEPAGE="http://www.jwz.org/xscreensaver/"
12    
13     DEPEND=">= x11-libs/libXxf86misc-1
14     >= x11-libs/libXinerama-1
15     >= x11-apps/xwininfo-1
16     >= x11-apps/appres-1
17     >= media-libs/netpbm-10
18     >= media-libs/libjpeg-8
19     >= sys-libs/zlib-1.2
20     >= dev-libs/libxml2-2.7
21     >= x11-libs/gtk2+-2.20
22     >= dev-libs/glib2-2.24
23     >= gnome-base/libglade-2.6
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.12
35     >= dev-util/pkgconfig-0.25
36     >= sys-dev/gettext-0.18"
37    
38     SRCFILE="${PNAME}-${PVER}.tar.gz"
39     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
40    
41     sminclude mtools
42    
43     SRC_URI=(
44     http://www.jwz.org/${PNAME}/${SRCFILE}
45     mirror://${PNAME}/${SRCFILE}
46     mirror://${PNAME}/xscreensaver.pam
47     mirror://${PNAME}/${PNAME}-4.24-app-defaults.patch
48     mirror://${PNAME}/${PNAME}-5.08-no-intltool.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     # recreate all po files
62     # fix error: po/Makefile.in.in was not created by intltoolize
63     mpatch ${PNAME}-5.08-no-intltool.patch || die
64    
65     # rebuild configure
66     autoreconf || die
67     }
68    
69     src_compile()
70     {
71     cd ${SRCDIR}
72    
73     # force app-defaults dir location
74     ac_cv_x_app_defaults=/usr/$(mlibdir)/X11/app-defaults \
75     mconfigure \
76     --libexecdir=/usr/$(mlibdir) \
77     --enable-hackdir=/usr/$(mlibdir)/xscreensaver \
78     --x-libraries=/usr/$(mlibdir) \
79     --x-includes=/usr/include \
80     --with-mit-ext \
81     --with-dpms-ext \
82     --with-xf86vmode-ext \
83     --with-xf86gamma-ext \
84     --with-randr-ext \
85     --with-proc-interrupts \
86     --with-xpm \
87     --with-xshm-ext \
88     --with-xdbe-ext \
89     --enable-locking \
90     --with-fortune=/usr/bin/fortune \
91     --without-motif \
92     --with-gtk \
93     --with-randr-ext \
94     --with-xml \
95     --with-xinerama-ext \
96     --with-pam \
97     --without-kerberos \
98     --with-gl \
99 niro 7101 --without-gle \
100 niro 7100 --with-jpeg \
101     --enable-nls \
102     || die
103    
104     mmake || die
105     }
106    
107     src_install()
108     {
109     cd ${SRCDIR}
110    
111     # needed directories
112     minstalldir /usr/$(mlibdir)/xscreensaver || die
113     minstalldir /usr/share/gnome/capplets || die
114     minstalldir /usr/share/pixmaps || die
115    
116     mmake install_prefix=${BINDIR} install || die
117    
118     # pam stuff
119     minstallpam xscreensaver.pam xscreensaver || die
120    
121     minstalldocs README || die
122     }