Update to 0.7.0

PR:		ports/70144
Submitted by:	Michael Johnson <ahze@ahze.net>
This commit is contained in:
Kirill Ponomarev 2004-08-08 06:28:45 +00:00
parent f8a444e516
commit 2a370afa17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115599
5 changed files with 52 additions and 42 deletions

View file

@ -7,33 +7,50 @@
#
PORTNAME= ale
PORTVERSION= 0.5.1
PORTREVISION= 1
PORTVERSION= 0.7.0
CATEGORIES= graphics
MASTER_SITES= http://auricle.dyndns.org/ALE/download/
PATCH_SITES= http://auricle.dyndns.org/ALE/bugs/
PATCHFILES= 0.5.1.patch1 0.5.1.patch2
PATCH_DIST_ARGS= -p1 -d ${PATCH_WRKSRC}
MAINTAINER= ports@FreeBSD.org
COMMENT= Anti-Lamenessing Engine
PLIST_FILES= bin/ale
USE_GMAKE= yes
.if !defined(WITHOUT_IMAGEMAGICK)
LIB_DEPENDS= Magick.6:${PORTSDIR}/graphics/ImageMagick
MAKE_ARGS= IMAGEMAGICK=1
.endif
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500035
USE_REINPLACE= yes
USE_GCC= 3.1
.if ${OSVERSION} < 500000
USE_GCC= 3.3
.endif
.if !defined(WITHOUT_IMAGEMAGICK)
LIB_DEPENDS+= Magick.6:${PORTSDIR}/graphics/ImageMagick
MAKE_ARGS+= IMAGEMAGICK=1
.endif
.if !defined(WITHOUT_FFTW3)
LIB_DEPENDS+= fftw3.3:${PORTSDIR}/math/fftw3
MAKE_ARGS+= FFTW=1
.endif
pre-everything::
.if !defined(WITHOUT_IMAGEMAGICK)
@${ECHO_MSG} "===> Disable ImageMagick Support by defining WITHOUT_IMAGEMAGICK"
.endif
.if !defined(WITHOUT_FFTW3)
@${ECHO_MSG} "===> Disable FFTW3 Support by defining WITHOUT_FFTW3"
.endif
post-patch:
@${REINPLACE_CMD} -e "s|^ g++| ${CXX}|" ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|; \
s|g++|${CXX}|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
${WRKSRC}/*.h ${WRKSRC}/*/*.h
.if ${OSVERSION} < 502114
@${REINPLACE_CMD} -e 's|round|rint|' \
${WRKSRC}/d2/image_rw.h \
${WRKSRC}/d2/ppm.h
.endif
do-install:

View file

@ -1,6 +1,2 @@
MD5 (ale-0.5.1.tar.gz) = 5c08c6f8b1d7cec89771d64ef09e2bef
SIZE (ale-0.5.1.tar.gz) = 50082
MD5 (0.5.1.patch1) = 4de11856fdc611c0446c1ea81e6fee67
SIZE (0.5.1.patch1) = 1805
MD5 (0.5.1.patch2) = b87e6023f4f6d4aa3f604582a691b3b8
SIZE (0.5.1.patch2) = 6141
MD5 (ale-0.7.0.tar.gz) = 0e812b29d10c2cc6a48baf5326e597bd
SIZE (ale-0.7.0.tar.gz) = 96247

View file

@ -0,0 +1,19 @@
--- Makefile.orig Wed Aug 4 16:46:34 2004
+++ Makefile Sat Aug 7 13:11:43 2004
@@ -41,14 +41,14 @@
DEBUG_CFLAGS:=$(if $(subst 0,,$(DEBUG)),-DDEBUG,-DNDEBUG)
IMAGEMAGICK_CFLAGS:=$(if $(use_imagemagick),-DUSE_MAGICK $(shell Magick-config --cflags --cppflags),)
IMAGEMAGICK_LDFLAGS:=$(if $(use_imagemagick),$(shell Magick-config --ldflags --libs),)
-FFTW_CFLAGS:=$(if $(subst 0,,$(FFTW)),-DUSE_FFTW,)
+FFTW_CFLAGS:=-I%%LOCALBASE%%/include -DUSE_FFTW
POSIX_CFLAGS:=$(if $(subst 0,,$(POSIX)),-DUSE_UNIX,)
PRECISION_CFLAGS:=$(if $(subst SINGLE,,$(COLORS)),,-DALE_COLORS=SINGLE)\
$(if $(subst DOUBLE,,$(COLORS)),,-DALE_COLORS=DOUBLE)\
$(if $(subst HALF,,$(COLORS)),,-DALE_COLORS=HALF)\
$(if $(subst SINGLE,,$(COORDINATES)),,-DALE_COORDINATES=SINGLE)\
$(if $(subst DOUBLE,,$(COORDINATES)),,-DALE_COORDINATES=DOUBLE)
-FFTW_LDFLAGS:=$(if $(subst 0,,$(FFTW)),-lfftw3,)
+FFTW_LDFLAGS:=-L%%LOCALBASE%%/lib -lfftw3
CFLAGS:= $(POSIX_CFLAGS) $(DEBUG_CFLAGS) $(FFTW_CFLAGS) $(PRECISION_CFLAGS) \
$(if $(use_imagemagick),$(IMAGEMAGICK_CFLAGS),-Wall -O2)

View file

@ -1,11 +0,0 @@
--- channel.h.orig Tue Jan 27 10:59:02 2004
+++ channel.h Tue Jan 27 10:59:10 2004
@@ -20,7 +20,7 @@
#ifndef __channel_h__
#define __channel_h__
-#include <stdint.h>
+#include <inttypes.h>
/*
* Channel type used by ALE.

View file

@ -1,11 +0,0 @@
--- ppm.h.orig Wed Dec 17 11:56:17 2003
+++ ppm.h Wed Dec 17 11:57:01 2003
@@ -189,7 +189,7 @@
}
if (mcv != CHANNEL_MAX)
- ival = (int) round(((double) ival / (double) (mcv)) * (CHANNEL_MAX));
+ ival = (int) ceil(((double) ival / (double) (mcv)) * (CHANNEL_MAX) + 0.5);
im->set_pixel_component(i, j, k, ival);
}