freebsd-ports/graphics/squish/Makefile
Martin Wilke ee57b82aa4 The squish library (abbreviated to libsquish) is an open
source DXT compression library written in C++.

WWW: http://code.google.com/p/libsquish/

PR:		ports/155712
Submitted by:	Reinier de Blois <me at rdb.name>
2011-06-25 07:53:49 +00:00

40 lines
804 B
Makefile

# New ports collection makefile for: squish
# Date created: 08 Mar 2011
# Whom: Reinier de Blois <me@rdb.name>
#
# $FreeBSD$
#
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= ALTIVEC "Use Altivec instructions" off \
SSE "Use SSE2 instructions" off
.include <bsd.port.options.mk>
.if defined(WITH_ALTIVEC) && defined(WITH_SSE)
IGNORE= cannot build with both WITH_ALTIVEC and WITH_SSE
.endif
CXXFLAGS+= -fPIC
.if defined(WITH_ALTIVEC)
CXXFLAGS+= -DSQUISH_USE_ALTIVEC=1 -maltivec
.endif
.if defined(WITH_SSE)
CXXFLAGS+= -DSQUISH_USE_SSE=2 -msse
.endif
.include <bsd.port.mk>