summaryrefslogtreecommitdiff
path: root/package/MesaLib/Makefile
blob: 41506092d9bafb5695ece440df67e6b88e774db0 (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
# 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
PKG_BUILDDEP+=		libXdamage libXfixes libXxf86vm
PKG_URL:=		add project url
PKG_SITES:=		ftp://ftp.freedesktop.org/pub/mesa/7.8.1/

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

PKG_TARGET_DEPENDS:=  	x86 x86_64

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 \
			--without-demos

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

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