comparison x11/xdm/xdm.sh @ 308:226cbb7d8db8

x11/xdm: initial import, closes #1357
author David Demelier <markand@malikania.fr>
date Mon, 25 Mar 2019 13:21:40 +0100
parents
children ebca5f1df2e4
comparison
equal deleted inserted replaced
307:b1d00b5226be 308:226cbb7d8db8
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=xdm
19 PKGVERSION=1.1.12
20 PKGREVISION=1
21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="X.Org display manager"
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="x11/libx11
25 x11/libxau
26 x11/libxaw
27 x11/libxdmcp
28 x11/libxft
29 x11/libxinerama
30 x11/libxmu
31 x11/libxt
32 x11/util-macros:build
33 x11/xorgproto:build"
34
35 : ${CHOST:=$(uname -m)-linux-musl}
36 : ${CBUILD:=$(uname -m)-linux-musl}
37 : ${CC:=gcc}
38 : ${CFLAGS:=-O2}
39 : ${LDFLAGS:=}
40 : ${LIBS:=}
41
42 build()
43 {
44 rm -rf $PKGNAME-$PKGVERSION
45 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
46 pushd $PKGNAME-$PKGVERSION
47
48 CC="$CC" \
49 CFLAGS="$CFLAGS" \
50 LDFLAGS="$LDFLAGS" \
51 LIBS="$LIBS" \
52 ./configure \
53 --build=$CBUILD \
54 --host=$CHOST \
55 --prefix=/usr \
56 --without-selinux \
57 --without-pam \
58 --without-systemd-daemon
59 make
60 make install DESTDIR=$DESTDIR
61
62 popd
63 rm -rf $PKGNAME-$PKGVERSION
64 }