summaryrefslogtreecommitdiff
path: root/graphics/fig2sxd
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-09-08 15:34:05 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-09-08 15:34:05 +0000
commitec6258f64d509220ed6625ade185d57720a309a6 (patch)
tree1d7f151821a060f8515b9c85f0aa4395aecd72b6 /graphics/fig2sxd
parentUnbreak package build by adding run dependency on py-sip. (diff)
Move recently added port cad/fig2sxd to a new and more accurate category
graphics, with extra category converters. Pointed by: danfe Approved by: maintainer
Notes
Notes: svn path=/head/; revision=142227
Diffstat (limited to 'graphics/fig2sxd')
-rw-r--r--graphics/fig2sxd/Makefile30
-rw-r--r--graphics/fig2sxd/distinfo2
-rw-r--r--graphics/fig2sxd/files/patch-Makefile37
-rw-r--r--graphics/fig2sxd/pkg-descr6
4 files changed, 75 insertions, 0 deletions
diff --git a/graphics/fig2sxd/Makefile b/graphics/fig2sxd/Makefile
new file mode 100644
index 000000000000..3ef861f41868
--- /dev/null
+++ b/graphics/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= graphics converters
+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/graphics/fig2sxd/distinfo b/graphics/fig2sxd/distinfo
new file mode 100644
index 000000000000..a0eaf979da8b
--- /dev/null
+++ b/graphics/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/graphics/fig2sxd/files/patch-Makefile b/graphics/fig2sxd/files/patch-Makefile
new file mode 100644
index 000000000000..987bf167da73
--- /dev/null
+++ b/graphics/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/graphics/fig2sxd/pkg-descr b/graphics/fig2sxd/pkg-descr
new file mode 100644
index 000000000000..82a476598558
--- /dev/null
+++ b/graphics/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