- Re-enable and fix ImageMagick support

- Fix LIB_DEPENDS list
This commit is contained in:
Pietro Cerutti 2008-12-02 22:02:40 +00:00
parent f6e39a8319
commit 97f234dc38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223713
2 changed files with 14 additions and 3 deletions

View file

@ -7,21 +7,21 @@
PORTNAME= autotrace
PORTVERSION= 0.31.1
PORTREVISION= 12
PORTREVISION= 13
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Convert bitmap to vector graphics
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
MagickWand.1:${PORTSDIR}/graphics/ImageMagick
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/ming"
CONFIGURE_ARGS= --without-magick
MAN1= autotrace.1

View file

@ -0,0 +1,11 @@
--- input-magick.c.orig 2008-12-02 22:58:14.000000000 +0100
+++ input-magick.c 2008-12-02 22:58:31.000000000 +0100
@@ -83,7 +83,7 @@
for(j=0,runcount=0,point=0;j<image->rows;j++)
for(i=0;i<image->columns;i++) {
- p=GetOnePixel(image,i,j);
+ GetOnePixel(image,i,j, pixel);
AT_BITMAP_BITS(bitmap)[point++]=pixel->red; /* if gray: red=green=blue */
if(np==3) {
AT_BITMAP_BITS(bitmap)[point++]=pixel->green;