aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-09-08 20:00:43 +0800
committergarga <garga@FreeBSD.org>2005-09-08 20:00:43 +0800
commit83cce8364f8f091b199fd760026ec1d39ea72305 (patch)
treecb427a22b0e70649f59648657a12f4527c104804 /cad
parentbc4fc49ef277598c79c88a1a31ebb74f74842577 (diff)
downloadfreebsd-ports-gnome-83cce8364f8f091b199fd760026ec1d39ea72305.tar.gz
freebsd-ports-gnome-83cce8364f8f091b199fd760026ec1d39ea72305.tar.zst
freebsd-ports-gnome-83cce8364f8f091b199fd760026ec1d39ea72305.zip
Add fig2sxd 0.13, convert .xfig files to the OpenOffice draw format.
PR: ports/85794 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/fig2sxd/Makefile30
-rw-r--r--cad/fig2sxd/distinfo2
-rw-r--r--cad/fig2sxd/files/patch-Makefile37
-rw-r--r--cad/fig2sxd/pkg-descr6
5 files changed, 76 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 886ef997a048..4349a0fa48db 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -18,6 +18,7 @@
SUBDIR += dxf2fig
SUBDIR += electric
SUBDIR += fandango
+ SUBDIR += fig2sxd
SUBDIR += geda
SUBDIR += geda-symbols
SUBDIR += geda-symcheck
diff --git a/cad/fig2sxd/Makefile b/cad/fig2sxd/Makefile
new file mode 100644
index 000000000000..b33a894f243f
--- /dev/null
+++ b/cad/fig2sxd/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: fig2sxd
+# Date created: 6 Sep 2005
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fig2sxd
+PORTVERSION= 0.13
+CATEGORIES= cad
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= Convert .xfig files to the OpenOffice draw format
+
+USE_GMAKE= yes
+USE_GCC= 3.4+
+
+WRKSRC= ${WRKDIR}/${DISTNAME:C/_/-/}
+
+MAN1= fig2sxd.1
+PLIST_FILES= bin/fig2sxd
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/cad/fig2sxd/distinfo b/cad/fig2sxd/distinfo
new file mode 100644
index 000000000000..a0eaf979da8b
--- /dev/null
+++ b/cad/fig2sxd/distinfo
@@ -0,0 +1,2 @@
+MD5 (fig2sxd_0.13.orig.tar.gz) = 3244a2708386fb3a78f31429b35565f0
+SIZE (fig2sxd_0.13.orig.tar.gz) = 20689
diff --git a/cad/fig2sxd/files/patch-Makefile b/cad/fig2sxd/files/patch-Makefile
new file mode 100644
index 000000000000..987bf167da73
--- /dev/null
+++ b/cad/fig2sxd/files/patch-Makefile
@@ -0,0 +1,37 @@
+--- Makefile.orig Sun Jan 25 22:33:34 2004
++++ Makefile Tue Sep 6 13:50:01 2005
+@@ -43,28 +43,28 @@
+
+ DEPEND = .depend-
+ DEPFILES = $(SOURCES1:%.cpp=$(DEPEND)%.dep)
+-CXX = g++
++CXX ?= g++
+ CXXF = -Wall -O2 -g
+-CXXFLAGS = -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
++CXXFLAGS ?= -fno-rtti -fno-exceptions $(CXXF) $(INCLUDES)
+ LIBS = -lz
+
+ $(TARGET1): $(OBJECTS1)
+- $(CXX) -o $@ $^ $(LIBS)
++ $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
+
+ $(OBJECTS1): %.o: $(SRCDIR)%.cpp $(DEPEND)%.dep
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
+
+ $(DEPFILES): $(DEPEND)%.dep: $(SRCDIR)%.cpp
+- $(CXX) $(INCLUDES) -M $< > $@
++ $(CXX) $(CXXFLAGS) $(INCLUDES) -M $< > $@
+
+ -include $(DEPFILES)
+
+ clean:
+ rm -f $(TARGETS) $(OBJECTS1) $(DEPFILES)
+
+-all: install
++all: $(TARGET1) fig2sxd.1
+
+-install: $(TARGET1) fig2sxd.1
++install:
+ install -d $(DESTDIR)/bin $(DESTDIR)/share/man/man1
+ install -m755 $(TARGET1) $(DESTDIR)/bin
+ install -m644 fig2sxd.1 $(DESTDIR)/share/man/man1
diff --git a/cad/fig2sxd/pkg-descr b/cad/fig2sxd/pkg-descr
new file mode 100644
index 000000000000..82a476598558
--- /dev/null
+++ b/cad/fig2sxd/pkg-descr
@@ -0,0 +1,6 @@
+A command line utility to convert .xfig files to the OpenOffice Draw format.
+
+WWW: http://fig2sxd.sourceforge.net/
+
+- ehaupt
+ehaupt@critical.ch