summaryrefslogtreecommitdiff
path: root/package/MesaLib/Makefile
blob: d5ce04b77e18b48a36b603a228348be66a40b1b4 (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
# 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:=		MesaLib
PKG_VERSION:=		7.8.1
PKG_RELEASE:=		1
PKG_MD5SUM:=		62e8e47cbd63741b4bbe634dcdc8a56a
PKG_DESCR:=		MESA library
PKG_SECTION:=		libs
PKG_DEPENDS:=		libxdamage libxfixes libdrm
PKG_BUILDDEP+=		libXdamage libXfixes libXxf86vm libdrm 
PKG_BUILDDEP+=		dri2proto glproto expat
PKG_URL:=		http://www.mesa3d.org/
PKG_SITES:=		ftp://ftp.freedesktop.org/pub/mesa/7.8.1/

WRKDIST=		${WRKDIR}/Mesa-${PKG_VERSION}

PKG_TARGET_DEPENDS:=  	ibmx40

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	--disable-static \
			--disable-gallium \
			--disable-glw \
			--with-driver=dri \
			--without-demos

XAKE_FLAGS+=		APP_CC=${HOSTCC} HOST_CC=${HOSTCC}

pre-configure:
	(cd ${WRKBUILD}; rm -rf config.{cache,status}; \
		./configure \
		--disable-static \
		--disable-glw \
		--disable-gallium \
		--with-driver=xlib \
		--without-demos \
	);
	${MAKE} -C ${WRKBUILD}/src/glsl
	${MAKE} -C ${WRKBUILD}/src/glsl/apps
	cp ${WRKBUILD}/src/glsl/apps/compile \
		${STAGING_TOOLS}/bin
	${MAKE} -C ${WRKBUILD}/src/glsl clean

post-install:
	$(INSTALL_DIR) $(IDIR_MESALIB)/usr/lib
	$(INSTALL_BIN) $(WRKINST)/usr/lib/libGL*.so* \
		$(IDIR_MESALIB)/usr/lib

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