comparison xfce/xfce4-session/xfce4-session.sh @ 806:58438f6471cf

xfce/xfce4-session: fix options
author David Demelier <markand@malikania.fr>
date Sun, 18 Aug 2019 21:22:25 +0200
parents e693904f5e20
children ae55d9077f70
comparison
equal deleted inserted replaced
805:5c489ef232dc 806:58438f6471cf
29 x11/libsm 29 x11/libsm
30 x11/libx11 30 x11/libx11
31 xfce/libxfce4ui 31 xfce/libxfce4ui
32 xfce/libxfce4util 32 xfce/libxfce4util
33 xfce/xfconf" 33 xfce/xfconf"
34 PKGOPTIONS="NLS POLKIT UPOWER" 34 PKGOPTIONS="NLS POLKIT"
35 35
36 : ${CC:=clang} 36 : ${CC:=clang}
37 : ${CFLAGS:=-O2} 37 : ${CFLAGS:=-O2}
38 : ${LDFLAGS:=} 38 : ${LDFLAGS:=}
39 : ${LIBS:=} 39 : ${LIBS:=}
40 : ${NLS:=yes} 40 : ${NLS:=yes}
41 : ${POLKIT:=yes} 41 : ${POLKIT:=yes}
42 : ${UPOWER:=no} # TODO: set to yes once we have upower
43 42
44 if [ "$NLS" = "yes" ]; then 43 if [ "$NLS" = "yes" ]; then
45 PKGDEPENDS="core/gettext:build $PKGDEPENDS" 44 PKGDEPENDS="core/gettext:build $PKGDEPENDS"
46 with_nls="--enable-nls" 45 with_nls="--enable-nls"
47 else 46 else
51 if [ "$POLKIT" = "yes" ]; then 50 if [ "$POLKIT" = "yes" ]; then
52 PKGDEPENDS="security/polkit $PKGDEPENDS" 51 PKGDEPENDS="security/polkit $PKGDEPENDS"
53 with_polkit="--enable-polkit" 52 with_polkit="--enable-polkit"
54 else 53 else
55 with_polkit="--disable-polkit" 54 with_polkit="--disable-polkit"
56 fi
57
58 if [ "$UPOWER" = "yes" ]; then
59 PKGDEPENDS="system/upower $PKGDEPENDS"
60 with_upower="--enable-upower"
61 else
62 with_upower="--disable-upower"
63 fi 55 fi
64 56
65 build() 57 build()
66 { 58 {
67 rm -rf $PKGNAME-$PKGVERSION 59 rm -rf $PKGNAME-$PKGVERSION
74 LIBS="$LIBS" \ 66 LIBS="$LIBS" \
75 ./configure \ 67 ./configure \
76 --prefix= \ 68 --prefix= \
77 --localedir=/share/locale \ 69 --localedir=/share/locale \
78 --with-locales-dir=/share/locale \ 70 --with-locales-dir=/share/locale \
71 --with-xsession-prefix= \
79 $with_nls \ 72 $with_nls \
80 $with_polkit \ 73 $with_polkit \
81 $with_upower 74 $with_upower
82 make 75 make
83 make install DESTDIR=$DESTDIR 76 make install DESTDIR=$DESTDIR