summaryrefslogtreecommitdiff
path: root/package/xorg-server/Makefile
blob: d3fd19175583c9f70e5d99efd3d07553d1c75172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		xorg-server
PKG_VERSION:=		1.7.5
PKG_RELEASE:=		1
PKG_MD5SUM:=		866917789c71e7616a016ad256fe9b8f
PKG_DESCR:=		Xorg server
PKG_SECTION:=		x11
PKG_DEPENDS:=		libopenssl libxfont pixman libpciaccess libxkbfile \
			libfontenc xkeyboard-config xkbcomp libxau libxaw \
			libxmu libxpm libxrender libxt libxxf86dga libxext \
			libxdmcp libxv libsm libice libx11
PKG_BUILDDEP+=		libX11 randrproto renderproto fixesproto damageproto \
			scrnsaverproto resourceproto fontsproto videoproto \
			compositeproto evieext libxkbfile libXfont pixman \
			libpciaccess openssl xf86dgaproto
PKG_URL:=		http://www.x.org
PKG_SITES:=		http://xorg.freedesktop.org/archive/individual/xserver/

PKG_TARGET_DEPENDS:=	!foxboard

CFLINE_XORG_SERVER:=	depends on ADK_TARGET_WITH_VGA

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,XORG_SERVER,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ENV+=		V=1
CONFIGURE_ARGS+=	\
			--with-fontdir=/usr/share/fonts/X11 \
			--enable-dga \
			--enable-xorg \
			--enable-xv \
			--enable-xaa \
			--disable-aiglx \
			--disable-config-hal \
			--disable-dpms \
			--disable-dri \
			--disable-dri2 \
			--disable-glx \
			--disable-xace \
			--disable-xephyr \
			--disable-xf86bigfont \
			--disable-xf86vidmode \
			--disable-xfake \
			--disable-xfbdev \
			--disable-xinerama \
			--disable-xnest \
			--disable-xsdl \
			--disable-xselinux \
			--disable-xcsecurity \
			--disable-xvfb \
			--disable-xvmc \
			--with-xkb-output=/tmp \
			--with-os-vendor=OpenADK \
			--with-vendor-web="http://openadk.org"

post-install:
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts	
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
	${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/
	${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
	${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules
	${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
	${CP} ${WRKINST}/usr/lib/xorg/modules/linux/*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
	${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
	-$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
		$(IDIR_XORG_SERVER)/etc/X11

include ${TOPDIR}/mk/pkg-bottom.mk