diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2002-03-03 00:40:21 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2002-03-03 00:40:21 +0000 |
commit | 0eedcf658bae66757158f61624c404a42630d710 (patch) | |
tree | 80cf3ee767423d1a6dd42a38b37900d86e64079c /cad/leocad | |
parent | Fix dependency of pth and fix jdk paths (diff) |
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>
Notes
Notes:
svn path=/head/; revision=55432
Diffstat (limited to 'cad/leocad')
-rw-r--r-- | cad/leocad/Makefile | 42 | ||||
-rw-r--r-- | cad/leocad/distinfo | 2 | ||||
-rw-r--r-- | cad/leocad/files/patch-Makefile | 13 | ||||
-rw-r--r-- | cad/leocad/files/patch-config.mk | 32 | ||||
-rw-r--r-- | cad/leocad/pkg-comment | 1 | ||||
-rw-r--r-- | cad/leocad/pkg-descr | 9 | ||||
-rw-r--r-- | cad/leocad/pkg-plist | 6 |
7 files changed, 105 insertions, 0 deletions
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 |