aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-03-03 08:40:21 +0800
committerpetef <petef@FreeBSD.org>2002-03-03 08:40:21 +0800
commit52df7ab64fe1dd1988af16429abdcb8975fca4a9 (patch)
tree3e132fb6672d385e8f4ffae162218d782a160408 /cad
parent33a5dd8a8bd87770b2d3db7cb418814e10f8cf25 (diff)
downloadfreebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.tar.gz
freebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.tar.zst
freebsd-ports-gnome-52df7ab64fe1dd1988af16429abdcb8975fca4a9.zip
Add leocad 0.73, a CAD program that uses bricks similar to those
found in many toys. PR: 35231 Submitted by: David Yeske <dyeske@yahoo.com>
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/leocad/Makefile42
-rw-r--r--cad/leocad/distinfo2
-rw-r--r--cad/leocad/files/patch-Makefile13
-rw-r--r--cad/leocad/files/patch-config.mk32
-rw-r--r--cad/leocad/pkg-comment1
-rw-r--r--cad/leocad/pkg-descr9
-rw-r--r--cad/leocad/pkg-plist6
8 files changed, 106 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 41570ba4ac7f..aec0937f860a 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -14,6 +14,7 @@
SUBDIR += irsim
SUBDIR += iverilog
SUBDIR += kaskade
+ SUBDIR += leocad
SUBDIR += libgeda
SUBDIR += linux-eagle
SUBDIR += magic
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile
new file mode 100644
index 000000000000..ff28d65c0542
--- /dev/null
+++ b/cad/leocad/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: leocad
+# Date created: 27 Jan 2002
+# Whom: David Yeske <dyeske@yahoo.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= leocad
+PORTVERSION= 0.73
+CATEGORIES= cad
+MASTER_SITES= http://www.leocad.org/files/ \
+ http://people.freebsd.org/~scottl/
+DISTFILES= leocad-${PORTVERSION:S/.p/pre/}.tgz pieces.zip
+EXTRACT_ONLY= leocad-${PORTVERSION:S/.p/pre/}.tgz
+
+MAINTAINER= dyeske@yahoo.com
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ png.5:${PORTSDIR}/graphics/png
+
+USE_GMAKE= yes
+USE_GTK= yes
+USE_MESA= yes
+USE_X_PREFIX= yes
+
+MAKE_ENV+= CXX=${CXX}
+
+post-extract:
+ @unzip -q -o ${DISTDIR}/pieces.zip -d ${WRKDIR}/pieces
+
+post-patch:
+ @${PERL} -pi -e 's,%%LOCALBASE%%,${LOCALBASE},g; \
+ s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},; \
+ s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},' ${WRKSRC}/config.mk
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/leocad ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKDIR}/pieces/* ${DATADIR}
+
+.include <bsd.port.mk>
diff --git a/cad/leocad/distinfo b/cad/leocad/distinfo
new file mode 100644
index 000000000000..89fffcaa4984
--- /dev/null
+++ b/cad/leocad/distinfo
@@ -0,0 +1,2 @@
+MD5 (leocad-0.73.tgz) = 7bce5fc75817f83bf2c789e2ef8d95ec
+MD5 (pieces.zip) = 62767e47e02924e82a1a2d3f6b2e866c
diff --git a/cad/leocad/files/patch-Makefile b/cad/leocad/files/patch-Makefile
new file mode 100644
index 000000000000..3813b5e2b418
--- /dev/null
+++ b/cad/leocad/files/patch-Makefile
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- Makefile.orig Sun Jan 27 15:58:14 2002
++++ Makefile Sun Jan 27 15:58:41 2002
+@@ -38,7 +38,7 @@
+ static: bin/leocad.static
+
+ bin/leocad: $(OBJ) bin
+- $(CXX) -o $@ $(OBJ) $(LIBS)
++ $(CXX) -o $@ $(OBJ) $(LIBS) ${LDFLAGS}
+
+ bin/leocad.static: $(OBJ) bin
+ $(CXX) -static -o $@ $(OBJ) $(LIBS)
diff --git a/cad/leocad/files/patch-config.mk b/cad/leocad/files/patch-config.mk
new file mode 100644
index 000000000000..47f21becf431
--- /dev/null
+++ b/cad/leocad/files/patch-config.mk
@@ -0,0 +1,32 @@
+$FreeBSD$
+
+--- config.mk.orig Mon Sep 18 21:06:37 2000
++++ config.mk Sat Mar 2 19:21:24 2002
+@@ -4,11 +4,11 @@
+
+ default: all
+
+-CC := gcc
+-CXX := g++
++CC ?= gcc
++CXX ?= g++
+
+ # (Add a -g for debugging)
+-CPPFLAGS += -O2 -Wall
++CPPFLAGS += -Wall
+
+ # Add compile options, such as -I option to include jpeglib's headers
+ # CPPFLAGS += -I/home/fred/jpeglib
+@@ -33,9 +33,10 @@
+
+ OS := -DLC_LINUX
+ OSDIR := linux
+-PREFIX := /usr/local
++PREFIX := /usr/X11R6
+ GTK_CONFIG := gtk12-config
+-CPPFLAGS += -L/usr/local/lib
++CPPFLAGS += ${CFLAGS} -L%%LOCALBASE%%/lib -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%%
++LDFLAGS += -L%%LOCALBASE%%/lib %%PTHREAD_LIBS%%
+
+ endif
+
diff --git a/cad/leocad/pkg-comment b/cad/leocad/pkg-comment
new file mode 100644
index 000000000000..22d96624f60a
--- /dev/null
+++ b/cad/leocad/pkg-comment
@@ -0,0 +1 @@
+A CAD program that uses bricks similar to those found in many toys
diff --git a/cad/leocad/pkg-descr b/cad/leocad/pkg-descr
new file mode 100644
index 000000000000..24092ea81be2
--- /dev/null
+++ b/cad/leocad/pkg-descr
@@ -0,0 +1,9 @@
+LeoCAD is a CAD program that uses bricks similar to those found in
+many toys (but they don't represent any particular brand). Currently
+it has a library of more than 1000 different pieces, most of them
+were created by James Jessiman (the author of LDraw).
+
+WWW: http://www.leocad.org
+
+- David
+dyeske@yahoo.com
diff --git a/cad/leocad/pkg-plist b/cad/leocad/pkg-plist
new file mode 100644
index 000000000000..ffdc5be9fed7
--- /dev/null
+++ b/cad/leocad/pkg-plist
@@ -0,0 +1,6 @@
+bin/leocad
+share/leocad/pieces.bin
+share/leocad/pieces.idx
+share/leocad/textures.bin
+share/leocad/textures.idx
+@dirrm share/leocad