aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2005-03-04 18:59:27 +0800
committermarkus <markus@FreeBSD.org>2005-03-04 18:59:27 +0800
commitfd9019ca0a57f34d2c9dffc06a547161e38f6df0 (patch)
treecb8ad558a1e14f1d996568a7226ab9926866138e /graphics
parent4e3fd4cb4a197485c4d1ce50f82af7b13a41716c (diff)
downloadfreebsd-ports-gnome-fd9019ca0a57f34d2c9dffc06a547161e38f6df0.tar.gz
freebsd-ports-gnome-fd9019ca0a57f34d2c9dffc06a547161e38f6df0.tar.zst
freebsd-ports-gnome-fd9019ca0a57f34d2c9dffc06a547161e38f6df0.zip
- Update to version 1.3
- Use OPTIONS - Add autotrace as selectable backend
Diffstat (limited to 'graphics')
-rw-r--r--graphics/potracegui/Makefile20
-rw-r--r--graphics/potracegui/distinfo4
-rw-r--r--graphics/potracegui/files/patch-mainwidget.cpp25
-rw-r--r--graphics/potracegui/pkg-plist1
4 files changed, 39 insertions, 11 deletions
diff --git a/graphics/potracegui/Makefile b/graphics/potracegui/Makefile
index 46ed0d4d2f10..34e366eff90d 100644
--- a/graphics/potracegui/Makefile
+++ b/graphics/potracegui/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= potracegui
-PORTVERSION= 1.2
+PORTVERSION= 1.3
CATEGORIES= graphics kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,8 +14,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= markus@FreeBSD.org
COMMENT= GUI for potrace, a program for tracing bitmap images
-RUN_DEPENDS= potrace:${PORTSDIR}/graphics/potrace
-
EXTRA_PATCHES= ${.CURDIR}/../../x11/kde3/files/extrapatch-configure
USE_BZIP2= yes
@@ -24,10 +22,20 @@ USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-post-extract:
- @${TOUCH} ${WRKSRC}/config.h.in
+OPTIONS= POTRACE "potrace backend" on \
+ AUTOTRACE "Autotrace backend" on
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_POTRACE)
+RUN_DEPENDS+= potrace:${PORTSDIR}/graphics/potrace
+.endif
+
+.if !defined(WITHOUT_AUTOTRACE)
+RUN_DEPENDS+= autotrace:${PORTSDIR}/graphics/autotrace
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/potracegui/distinfo b/graphics/potracegui/distinfo
index 50d132a529bb..068864b7290a 100644
--- a/graphics/potracegui/distinfo
+++ b/graphics/potracegui/distinfo
@@ -1,2 +1,2 @@
-MD5 (potracegui-1.2.tar.bz2) = 5d4db03321e4abd6337e7f38389685a3
-SIZE (potracegui-1.2.tar.bz2) = 583116
+MD5 (potracegui-1.3.tar.bz2) = cf5e47cb34f31c931aba331c88cf9fb4
+SIZE (potracegui-1.3.tar.bz2) = 602101
diff --git a/graphics/potracegui/files/patch-mainwidget.cpp b/graphics/potracegui/files/patch-mainwidget.cpp
index 2e0872c5510c..c0e451b638bc 100644
--- a/graphics/potracegui/files/patch-mainwidget.cpp
+++ b/graphics/potracegui/files/patch-mainwidget.cpp
@@ -1,11 +1,30 @@
---- src/mainwidget.cpp.orig Wed Dec 22 18:36:50 2004
-+++ src/mainwidget.cpp Wed Dec 22 18:38:09 2004
-@@ -44,6 +44,8 @@
+--- src/mainwidget.cpp.orig Fri Mar 4 09:38:35 2005
++++ src/mainwidget.cpp Fri Mar 4 11:49:53 2005
+@@ -18,6 +18,7 @@
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
++#include <config.h>
+
+ #include "mainwidget.h"
+ #include "options.h"
+@@ -44,6 +45,10 @@
#include <kpushbutton.h>
#include <kmessagebox.h>
++#ifdef HAVE_UNISTD_H
+#include <unistd.h>
++#endif
+
#include <fstream>
using namespace std;
+@@ -1016,7 +1021,7 @@
+ }
+
+ void MainWidget::marginValueChanged( double newValue) {
+- if (marginValueSynconizingNecessary and checkBoxSyncronizeMargins->isChecked()) {
++ if (marginValueSynconizingNecessary && checkBoxSyncronizeMargins->isChecked()) {
+ marginValueSynconizingNecessary=false;
+ marginsL->setValue(newValue);
+ marginsR->setValue(newValue);
diff --git a/graphics/potracegui/pkg-plist b/graphics/potracegui/pkg-plist
index 44eebdc9baa7..926e21fdd780 100644
--- a/graphics/potracegui/pkg-plist
+++ b/graphics/potracegui/pkg-plist
@@ -6,6 +6,7 @@ share/doc/HTML/en/potracegui/index.cache.bz2
share/doc/HTML/en/potracegui/index.docbook
share/icons/hicolor/16x16/apps/potracegui.png
share/icons/hicolor/32x32/apps/potracegui.png
+share/locale/de/LC_MESSAGES/potracegui.mo
@unexec rmdir %D/share/icons/hicolor/32x32/apps 2>/dev/null || true
@unexec rmdir %D/share/icons/hicolor/32x32 2>/dev/null || true
@unexec rmdir %D/share/icons/hicolor/16x16/apps 2>/dev/null || true