aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-08 12:00:43 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-08 12:00:43 +0000
commit022a2e153058946c74b120498b7e3e55fc066926 (patch)
tree75b04421c9a43079e6284fe9f239a199945b3969 /cad
parentde171d0fcebb565933e92b1026ed32e291eaf56b (diff)
downloadports-022a2e153058946c74b120498b7e3e55fc066926.tar.gz
ports-022a2e153058946c74b120498b7e3e55fc066926.zip
Notes
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