1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/graphics/squish/Makefile
2013-05-23 03:21:20 +00:00

35 lines
664 B
Makefile

# Created by: 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_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>