From 3b60309ab2419f3432a4b3f251b448046dc3d977 Mon Sep 17 00:00:00 2001
From: Pawel Pekala <pawel@FreeBSD.org>
Date: Wed, 13 Mar 2013 21:39:40 +0000
Subject: LDraw is an open standard for LEGO CAD programs that allow the user
 to create virtual LEGO models and scenes. You can use it to document models
 you have physically built, create building instructions just like LEGO,
 render 3D photo realistic images of your virtual models and even make
 animations. The possibilities are endless. Unlike real LEGO bricks where you
 are limited by the number of parts and colors, in LDraw nothing is
 impossible.

WWW: http://www.ldraw.org/

PR:		ports/174901
Submitted by:	nemysis@gmx.ch
---
 cad/Makefile        |  1 +
 cad/ldraw/Makefile  | 29 +++++++++++++++++++++++++++++
 cad/ldraw/distinfo  |  2 ++
 cad/ldraw/pkg-descr |  8 ++++++++
 4 files changed, 40 insertions(+)
 create mode 100644 cad/ldraw/Makefile
 create mode 100644 cad/ldraw/distinfo
 create mode 100644 cad/ldraw/pkg-descr

(limited to 'cad')

diff --git a/cad/Makefile b/cad/Makefile
index aad1e3260874..12bed9779188 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -52,6 +52,7 @@
     SUBDIR += kicad-library
     SUBDIR += klayout
     SUBDIR += layouteditor
+    SUBDIR += ldraw
     SUBDIR += leocad
     SUBDIR += libgeda
     SUBDIR += librecad
diff --git a/cad/ldraw/Makefile b/cad/ldraw/Makefile
new file mode 100644
index 000000000000..4d7873ba58c0
--- /dev/null
+++ b/cad/ldraw/Makefile
@@ -0,0 +1,29 @@
+# Created by: nemysis@gmx.ch
+# $FreeBSD$
+
+PORTNAME=	ldraw
+PORTVERSION=	20120913
+CATEGORIES=	cad
+MASTER_SITES=	http://www.ldraw.org/library/updates/
+DISTNAME=	complete
+DIST_SUBDIR=	${PORTNAME}
+
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	LDraw parts library
+
+LICENSE=	CDDL
+
+USE_ZIP=	yes
+NO_BUILD=	yes
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+do-install:
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
+
+post-install:
+	@${FIND} ${DATADIR}/ ! -type d | ${SED} 's|^${PREFIX}/||' >> ${TMPPLIST}
+	@${FIND} -ds ${DATADIR}/ -type d | \
+		${SED} -E -e 's,(.*),@unexec ${RMDIR} "\1" 2>/dev/null || true,' >> ${TMPPLIST}
+
+.include <bsd.port.mk>
diff --git a/cad/ldraw/distinfo b/cad/ldraw/distinfo
new file mode 100644
index 000000000000..b02fb8bdf2e0
--- /dev/null
+++ b/cad/ldraw/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ldraw/complete.zip) = d6949e51f617ff46457dc5467d9b8d525cf744486ff9f29a49927f6eaa882b79
+SIZE (ldraw/complete.zip) = 21433103
diff --git a/cad/ldraw/pkg-descr b/cad/ldraw/pkg-descr
new file mode 100644
index 000000000000..30e49a97c544
--- /dev/null
+++ b/cad/ldraw/pkg-descr
@@ -0,0 +1,8 @@
+LDraw is an open standard for LEGO CAD programs that allow the user to create
+virtual LEGO models and scenes. You can use it to document models you have
+physically built, create building instructions just like LEGO, render 3D photo
+realistic images of your virtual models and even make animations.
+The possibilities are endless. Unlike real LEGO bricks where you are limited by
+the number of parts and colors, in LDraw nothing is impossible.
+
+WWW: http://www.ldraw.org/
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0