summaryrefslogtreecommitdiff
path: root/package/libglew/Makefile
blob: c5f3eb2537f184cbcd60ae5684d7612a355deec6 (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
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		libglew
PKG_VERSION:=		1.10.0
PKG_RELEASE:=		3
PKG_HASH:=		99c41320b63f6860869b5fb9af9a1854b15582796c64ee3dfd7096dc0c89f307
PKG_DESCR:=		opengl extension wrangler library
PKG_SECTION:=		libs/video
PKG_DEPENDS:=		libx11 libxmu libxi libxext mesa
PKG_BUILDDEP:=		libX11 libXmu libXi libXext mesa
PKG_URL:=		http://glew.sourceforge.net/index.html
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=glew/}
PKG_OPTS:=		dev

PKG_ARCH_DEPENDS:=	!m68k

DISTFILES:=		glew-$(PKG_VERSION).tgz
WRKDIST=		${WRKDIR}/glew-$(PKG_VERSION)

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,LIBGLEW,libglew,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIG_STYLE:=		manual
XAKE_FLAGS+=		STRIP='' GLEW_DEST='${WRKINST}/usr' SYSTEMS=linux

libglew-install:
	$(INSTALL_DIR) $(IDIR_LIBGLEW)/usr/lib
	$(CP) $(WRKINST)/usr/lib/libGLEW.so* \
		$(IDIR_LIBGLEW)/usr/lib

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