2003-12-17 04:15:52 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection Makefile for: ale
|
|
|
|
# Date created: Dec 17, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ale
|
2005-05-08 20:40:08 +00:00
|
|
|
PORTVERSION= 0.8.1
|
2003-12-17 04:15:52 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://auricle.dyndns.org/ALE/download/
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= Anti-Lamenessing Engine
|
|
|
|
|
2004-11-01 18:14:46 +00:00
|
|
|
USE_GCC= 3.4
|
2004-08-08 06:28:45 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-08-28 06:13:14 +00:00
|
|
|
USE_GMAKE= yes
|
2005-05-08 20:40:08 +00:00
|
|
|
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" IOCTL=1
|
2004-08-08 06:28:45 +00:00
|
|
|
|
2004-08-28 06:13:14 +00:00
|
|
|
PLIST_FILES= bin/ale
|
|
|
|
|
|
|
|
OPTIONS= DOUBLE "64bit Data Precision Support" off \
|
|
|
|
FFTW3 "FFTW3 Support" on \
|
|
|
|
IMAGEMAGICK "ImageMagick Support" on
|
2004-08-21 09:19:15 +00:00
|
|
|
|
2004-08-08 06:28:45 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-02 00:41:28 +00:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
BROKEN= "Does not build on alpha"
|
|
|
|
.endif
|
|
|
|
|
2004-08-28 06:13:14 +00:00
|
|
|
.if defined(WITH_DOUBLE)
|
|
|
|
MAKE_ARGS+= COLORS=DOUBLE COORDINATES=DOUBLE
|
2003-12-17 04:15:52 +00:00
|
|
|
.endif
|
|
|
|
|
2004-08-08 06:28:45 +00:00
|
|
|
.if !defined(WITHOUT_FFTW3)
|
|
|
|
LIB_DEPENDS+= fftw3.3:${PORTSDIR}/math/fftw3
|
|
|
|
MAKE_ARGS+= FFTW=1
|
|
|
|
.endif
|
2004-01-27 03:25:51 +00:00
|
|
|
|
2004-08-28 06:13:14 +00:00
|
|
|
.if !defined(WITHOUT_IMAGEMAGICK)
|
2005-03-06 22:16:54 +00:00
|
|
|
LIB_DEPENDS+= Magick.8:${PORTSDIR}/graphics/ImageMagick
|
2004-08-28 06:13:14 +00:00
|
|
|
MAKE_ARGS+= IMAGEMAGICK=1
|
|
|
|
.endif
|
|
|
|
|
2004-01-27 03:25:51 +00:00
|
|
|
post-patch:
|
2004-08-28 06:13:14 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/d2.h
|
2004-08-08 06:28:45 +00:00
|
|
|
.if ${OSVERSION} < 502114
|
2004-11-01 18:14:46 +00:00
|
|
|
.for file in d2/image_rw.h d2/ppm.h d3/scene.cc
|
2004-08-28 06:13:14 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|round|rint|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
2004-01-27 03:25:51 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-17 04:15:52 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ale ${PREFIX}/bin
|
|
|
|
|
2004-01-27 03:25:51 +00:00
|
|
|
.include <bsd.port.post.mk>
|