# $MidnightBSD: trunk/graphics/s2tc/Makefile 24066 2018-09-02 21:14:28Z laffer1 $

PORTNAME=	s2tc
PORTVERSION=	1.0+20151228
CATEGORIES=	graphics

MAINTAINER=	ports@MidnightBSD.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/ImageMagick \
		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>
