1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- # 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/
- PKG_DESCR_GLXINFO:= Display various GLX information
- PKG_SECT_GLXINFO:= x11/apps
- PKG_DESCR_GLXGEARS:= Nice little OpenGL demo application
- PKG_SECT_GLXGEARS:= x11/apps
- WRKDIST= ${WRKDIR}/Mesa-${PKG_VERSION}
- PKG_TARGET_DEPENDS:= ibmx40 lemote
- PKG_HOST_DEPENDS:= !cygwin
- include $(TOPDIR)/mk/package.mk
- $(eval $(call PKG_template,MESALIB,mesalib,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- $(eval $(call PKG_template,GLXINFO,glxinfo,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_GLXINFO},${PKG_SECT_GLXINFO}))
- $(eval $(call PKG_template,GLXGEARS,glxgears,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_GLXGEARS},${PKG_SECT_GLXGEARS}))
- ifeq (${ADK_LINUX_X86_IBMX40},y)
- DRI_DRIVERS:=i810
- endif
- # Lemote's SMI712 is not directly supported by Mesa,
- # and at least some SIS driver fails to build when
- # keeping the driver auto-selection intact.
- ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
- DRI_DRIVERS:=swrast
- endif
- CONFIGURE_ARGS+= --disable-static \
- --disable-gallium \
- --disable-glw \
- --with-driver=dri \
- --with-dri-drivers=${DRI_DRIVERS} \
- --with-demos=xdemos
- XAKE_FLAGS+= HOST_CC=${HOSTCC}
- pre-configure:
- (cd ${WRKBUILD}; rm -rf config.{cache,status}; \
- ./configure \
- --disable-static \
- --disable-glw \
- --disable-gallium \
- --with-driver=xlib \
- );
- ${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/dri
- $(CP) $(WRKINST)/usr/lib/libGL*.so* \
- $(IDIR_MESALIB)/usr/lib
- ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
- ${CP} $(WRKINST)/usr/lib/dri/swrast_dri.so \
- ${IDIR_MESALIB}/usr/lib/dri/
- endif
- ${INSTALL_DIR} ${IDIR_GLXINFO}/usr/bin
- ${INSTALL_BIN} ${WRKBUILD}/progs/xdemos/glxinfo \
- ${IDIR_GLXINFO}/usr/bin/
- ${INSTALL_DIR} ${IDIR_GLXGEARS}/usr/bin
- ${INSTALL_BIN} ${WRKBUILD}/progs/xdemos/glxgears \
- ${IDIR_GLXGEARS}/usr/bin/
- include ${TOPDIR}/mk/pkg-bottom.mk
|