ports/117805: [PATCH] graphics/autotrace: make dependencies on ming and pstoedit OPTIONS.
Roland Smith
rsmith at xs4all.nl
Sun Nov 4 09:00:08 UTC 2007
>Number: 117805
>Category: ports
>Synopsis: [PATCH] graphics/autotrace: make dependencies on ming and pstoedit OPTIONS.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 04 09:00:08 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Roland Smith
>Release: FreeBSD 7.0-BETA1 amd64
>Organization:
>Environment:
System: FreeBSD slackbox.xs4all.nl 7.0-BETA1 FreeBSD 7.0-BETA1 #0: Fri Oct 26 17:00:53 CEST 2007 rsmith at slackbox.xs4all.nl:/usr/obj/usr/src/sys/RFS amd64
>Description:
Autotrace depends on ming and pstoedit, but it works without them
(with less available output formats, of course).
>How-To-Repeat:
Build autotrace, see it pull in ming and pstoedit.
>Fix:
The following patch makes the dependancies on ming and pstoedit
OPTIONS. Portlint says: 'looks fine'.
---------------- graphics/autotrace/Makefile patch ----------------
--- Makefile.orig 2007-11-04 09:19:01.000000000 +0100
+++ Makefile 2007-11-04 09:26:35.000000000 +0100
@@ -2,7 +2,7 @@
# Date created: 12 April 2001
# Whom: KANOU Hiroki <kanou at mil.allnet.ne.jp>
#
-# $FreeBSD: ports/graphics/autotrace/Makefile,v 1.36 2007/06/15 13:10:58 pav Exp $
+# $FreeBSD$
#
PORTNAME= autotrace
@@ -15,10 +15,7 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Convert bitmap to vector graphics
-LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
- ming.4:${PORTSDIR}/graphics/ming \
- Magick.10:${PORTSDIR}/graphics/ImageMagick \
- pstoedit.0:${PORTSDIR}/graphics/pstoedit
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_AUTOTOOLS= libtool:15
USE_LDCONFIG= yes
@@ -29,6 +26,17 @@
MAN1= autotrace.1
+OPTIONS= MING "Enable swf interface" on \
+ PSTOEDIT "Convert postscript to other formats" on
+
+.if defined (WITH_MING)
+LIB_DEPENDS+= ming.4:${PORTSDIR}/graphics/ming
+.endif
+
+.if defined (WITH_PSTOEDIT)
+LIB_DEPENDS+= pstoedit.0:${PORTSDIR}/graphics/pstoedit
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|' \
---------------- graphics/autotrace/Makefile patch ----------------
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list