View | Details | Raw Unified | Return to bug 237961
Collapse All | Expand All

(-)cad/ldraw/Makefile (-41 / +19 lines)
Lines 2-57 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ldraw
4
PORTNAME=	ldraw
5
PORTVERSION=	201501
5
DISTVERSION=	20181208
6
PORTEPOCH=	1
6
PORTEPOCH=	1
7
CATEGORIES=	cad
7
CATEGORIES=	cad
8
MASTER_SITES=	http://www.ldraw.org/library/updates/
8
MASTER_SITES=	https://www.ldraw.org/library/updates/:parts \
9
DISTNAME=	complete
9
		https://www.ldraw.org/library/official/:config
10
DIST_SUBDIR=	ldraw/${PORTVERSION}
10
DISTFILES=	complete.zip:parts LDConfig.ldr:config
11
DIST_SUBDIR=	${DISTNAME}-${DISTVERSION}
12
EXTRACT_ONLY=	complete.zip
11
13
12
MAINTAINER=	koalative@gmail.com
14
MAINTAINER=	koalative@gmail.com
13
COMMENT=	LDraw parts library
15
COMMENT=	LDraw-format CAD files representing many of LEGO bricks produced
14
16
15
LICENSE=	CDDL CC-BY-NC-SA-2.0
17
LICENSE=	CC-BY-2.0
16
LICENSE_COMB=	dual
17
LICENSE_FILE_CC-BY-NC-SA-2.0=	${WRKSRC}/CAlicense.txt
18
18
19
WRKSRC=		${WRKDIR}/${PORTNAME}
19
USES=		zip
20
20
21
USES=		dos2unix gmake zip:infozip
21
NO_BUILD=	yes
22
DOS2UNIX_GLOB=	*.h makefile mklist.c *.txt *.dat
22
NO_ARCH=	yes
23
23
24
PORTDATA=	*
25
PORTDOCS=	Readme.txt
26
OPTIONS_DEFINE=	DOCS
27
28
SUB_FILES=	pkg-message
29
30
BUILD_WRKSRC=	${WRKSRC}/mklist
31
MAKEFILE=	makefile
32
33
post-extract-script:
34
	@(cd ${WRKSRC} && ${UNZIP_CMD} -qo -d \
35
		${WRKSRC}/mklist ${WRKSRC}/mklist1_6.zip)
36
	@(cd ${WRKSRC}/mklist/include && ${MV} * ..)
37
38
post-patch:
39
	@${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|' \
40
		-e 's|CFLAGS=|CFLAGS?=|' \
41
		${WRKSRC}/mklist/makefile
42
	@${REINPLACE_CMD} -e 's|PARTS|parts|' \
43
		${WRKSRC}/mklist/mklist.c
44
45
do-install:
24
do-install:
46
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
25
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/ldraw
47
	@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR})
26
	cd ${WRKDIR}/ldraw && \
48
.endfor
27
		${COPYTREE_SHARE} p ${STAGEDIR}${PREFIX}/share/ldraw && \
28
		${COPYTREE_SHARE} parts ${STAGEDIR}${PREFIX}/share/ldraw
29
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/LDConfig.ldr ${STAGEDIR}${PREFIX}/share/ldraw
49
30
50
	${INSTALL_PROGRAM} ${WRKSRC}/mklist/mklist ${STAGEDIR}${DATADIR}
31
post-install: # autoplist: ~16k files all under share/ldraw
51
	@(cd ${STAGEDIR}${DATADIR} && ./mklist -d)
32
	@cd ${STAGEDIR}${PREFIX} && \
33
		${FIND} * -type f >> ${TMPPLIST}
52
34
53
do-install-DOCS-on:
54
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
55
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
56
57
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)cad/ldraw/distinfo (-2 / +5 lines)
Lines 1-2 Link Here
1
SHA256 (ldraw/201501/complete.zip) = ca4cf9c46f7fc73d0d1a55ca8270635cfe93ab2244c88640457090887e07ed7a
1
TIMESTAMP = 1558146584
2
SIZE (ldraw/201501/complete.zip) = 29881376
2
SHA256 (ldraw-20181208-20181208/complete.zip) = 9cef56049350b67c1d625033833a617146d0f42f4be08f34f4c51e59eca84afc
3
SIZE (ldraw-20181208-20181208/complete.zip) = 41548599
4
SHA256 (ldraw-20181208-20181208/LDConfig.ldr) = 23a3a675b11f427afc0031df18949528dccfd92a7c2e652ced33e130eb81a1d7
5
SIZE (ldraw-20181208-20181208/LDConfig.ldr) = 29466
(-)cad/ldraw/files/patch-mklist__mklist.c (-22 lines)
Lines 1-22 Link Here
1
--- ./mklist/mklist.c.orig	2013-11-15 20:23:32.000000000 +0100
2
+++ ./mklist/mklist.c	2013-11-15 20:25:12.000000000 +0100
3
@@ -53,8 +53,8 @@
4
 /*****************************************************************/
5
 /* Filename length compatibility stuff */
6
 /*****************************************************************/
7
-#ifndef _MAX_PATH
8
-#define _MAX_PATH 256
9
+#ifndef MAX_PATH
10
+#define MAX_PATH 256
11
 #endif
12
 char    shortfilepath[MAX_PATH];
13
 char    shortfilename[MAX_PATH];
14
@@ -84,7 +84,7 @@
15
 int GetShortPathName(char *longpath, char * shortpath, int psize)
16
 {
17
     strncpy(shortpath, longpath, psize);
18
-    return(strlen(shortpath);
19
+    return(strlen(shortpath));
20
 }
21
 #endif
22
 
(-)cad/ldraw/files/pkg-message.in (-11 lines)
Lines 1-11 Link Here
1
===============================================================================
2
3
LDraw has been installed.
4
5
You can make parts.lst with
6
7
    %%DATADIR%%/mklist -h
8
9
Default is sorted by Description parts.lst (mklist -d). You can change this.
10
11
===============================================================================
(-)cad/ldraw/pkg-descr (-5 / +5 lines)
Lines 1-8 Link Here
1
LDraw is an open standard for LEGO CAD programs that allow the user to create
1
LDraw-TM is an open standard for LEGO CAD programs that allow the user to create
2
virtual LEGO models and scenes. You can use it to document models you have
2
virtual LEGO models and scenes. You can use it to document models you have
3
physically built, create building instructions just like LEGO, render 3D photo
3
physically built, create building instructions just like LEGO, render 3D photo
4
realistic images of your virtual models and even make animations.
4
realistic images of your virtual models and even make animations. The
5
The possibilities are endless. Unlike real LEGO bricks where you are limited by
5
possibilities are endless. Unlike real LEGO bricks where you are limited by the
6
the number of parts and colors, in LDraw nothing is impossible.
6
number of parts and colors, in LDraw nothing is impossible.
7
7
8
WWW: http://www.ldraw.org/
8
WWW: https://www.ldraw.org/

Return to bug 237961