summaryrefslogtreecommitdiff
path: root/graphics/s2tc/Makefile
blob: 00b0b4109c7c57275cebd54ddf782259f4871ae3 (plain) (blame)
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
# Created by: David Naylor <dbn@FreeBSD.org>
# $FreeBSD$

PORTNAME=	s2tc
PORTVERSION=	1.0+20151228
PORTREVISION=	1
CATEGORIES=	graphics

MAINTAINER=	dbn@FreeBSD.org
COMMENT=	Subset of a well-known texture compression scheme

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	mesa-libs>=0:graphics/mesa-libs
TEST_DEPENDS=	convert:graphics/ImageMagick6 \
		nvcompress:graphics/nvidia-texture-tools \
		wget:ftp/wget

USES=		autoreconf libtool pathfix
USE_GITHUB=	yes
USE_LDCONFIG=	yes

GH_ACCOUNT=	divVerent
GH_TAGNAME=	f6ec862
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip

CPPFLAGS+=	-I${LOCALBASE}/include

do-test:
	(cd ${WRKSRC}/tests; ${SETENV} use_external=false use_nvcompress=true ${SH} test.sh)

.include <bsd.port.mk>