# Created by: Reinier de Blois <me@rdb.name>
# $FreeBSD: branches/RELENG_9_2_0/graphics/squish/Makefile 318832 2013-05-23 03:21:20Z jgh $

PORTNAME=	squish
PORTVERSION=	1.10
CATEGORIES=	graphics
MASTER_SITES=	http://libsquish.googlecode.com/files/

MAINTAINER=	me@rdb.name
COMMENT=	Open source DXT compression library

LICENSE=	MIT
USE_GMAKE=	YES
PLIST_FILES=	include/squish.h \
		lib/libsquish.a

OPTIONS_RADIO=	RG1
OPTIONS_RADIO_RG1=	ALTIVEC SSE
ALTIVEC_DESC=	Use Altivec instructions
RG1_DESC=	Optimizations Selection

.include <bsd.port.options.mk>

CXXFLAGS+=	-fPIC

.if ${PORT_OPTIONS:MALTIVEC}
CXXFLAGS+=	-DSQUISH_USE_ALTIVEC=1 -maltivec
.endif

.if ${PORT_OPTIONS:MSSE}
CXXFLAGS+=	-DSQUISH_USE_SSE=2 -msse
.endif

.include <bsd.port.mk>
