summaryrefslogtreecommitdiff
path: root/package/xorg-server/Makefile
blob: 505a5d9d5155e49b3f53ae59a355ec3d44cab87a (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# 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.9.3
PKG_RELEASE:=		1
PKG_MD5SUM:=		b8e364bffd87291b593726696d39b4b5
PKG_DESCR:=		Xorg server
PKG_SECTION:=		x11/server
PKG_DEPENDS:=		libopenssl libxfont pixman libpciaccess libxkbfile
PKG_DEPENDS+=		libfontenc xkeyboard-config xkbcomp libxau libxaw
PKG_DEPENDS+=		libxmu libxpm libxrender libxt libxxf86dga libxext
PKG_DEPENDS+=		libxdmcp libxv libsm libice libx11 libxcb
PKG_BUILDDEP:=		libX11 randrproto renderproto fixesproto damageproto
PKG_BUILDDEP+=		scrnsaverproto resourceproto fontsproto videoproto
PKG_BUILDDEP+=		compositeproto evieext libxkbfile libXfont pixman
PKG_BUILDDEP+=		libpciaccess openssl xf86dgaproto recordproto
PKG_URL:=		http://www.x.org/
PKG_SITES:=		${MASTER_SITE_XORG}

PKG_SUBPKGS:=		XORG_SERVER XORG_SERVER_DEV

PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
PKG_ARCH_DEPENDS:=	!cris

PKG_FLAVOURS_XORG_SERVER:=	WITH_DRI
PKGFS_WITH_DRI:=		mesalib
PKGFD_WITH_DRI:=		enable DRI/DRI2 support
PKGFB_WITH_DRI:=		xf86driproto glproto dri2proto MesaLib

PKG_CHOICES_XORG_SERVER:=	WITH_GCRYPT WITH_CRYPTO
PKGCD_WITH_GCRYPT:=		use libgcrypt for SHA1
PKGCS_WITH_GCRYPT:=		libgcrypt
PKGCB_WITH_GCRYPT:=		libgcrypt
PKGCD_WITH_CRYPTO:=		use openssl libcrypto for SHA1
PKGCS_WITH_CRYPTO:=		libopenssl
PKGCB_WITH_CRYPTO:=		openssl

include $(TOPDIR)/mk/package.mk

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

ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
CONFIGURE_ARGS+=	 --with-sha1=libgcrypt
endif

ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_CRYPTO},y)
CONFIGURE_ARGS+=	 --with-sha1=libcrypto
endif

CONFIGURE_ENV+=		V=1
CONFIGURE_ARGS+=	--with-fontdir=/usr/share/fonts/X11 \
			--enable-dga \
			--enable-xorg \
			--enable-xv \
			--enable-xaa \
			--enable-vgahw \
			--enable-dpms \
			--disable-aiglx \
			--disable-config-hal \
			--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"

ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
CONFIGURE_ARGS+=	--enable-dri --enable-dri2 --enable-glx
else
CONFIGURE_ARGS+=	--disable-dri --disable-dri2 --disable-glx
endif

ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
CONFIGURE_ARGS+=	--with-int10=stub
endif

xorg-server-install:
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
	$(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
	$(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/multimedia/*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
	-$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
		$(IDIR_XORG_SERVER)/etc/X11
ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
	${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
		$(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
endif

xorg-server-dev-install:
	$(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/include/xorg
	${CP} ${WRKINST}/usr/include/xorg/* \
		$(IDIR_XORG_SERVER_DEV)/usr/include/xorg
	$(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig
	${CP} ${WRKINST}/usr/lib/pkgconfig/xorg-server.pc \
		$(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig

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