1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

cad/ldraw: Update 201501 -> 20181208

PR:		237961
This commit is contained in:
Yuri Victorovich 2019-07-04 17:59:35 +00:00
parent 4f94b01f8f
commit 45b2d115f4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=505850
5 changed files with 29 additions and 81 deletions

View File

@ -2,56 +2,34 @@
# $FreeBSD$
PORTNAME= ldraw
PORTVERSION= 201501
DISTVERSION= 20181208
PORTEPOCH= 1
CATEGORIES= cad
MASTER_SITES= http://www.ldraw.org/library/updates/
DISTNAME= complete
DIST_SUBDIR= ldraw/${PORTVERSION}
MASTER_SITES= https://www.ldraw.org/library/updates/:parts \
https://www.ldraw.org/library/official/:config
DISTFILES= complete.zip:parts LDConfig.ldr:config
DIST_SUBDIR= ${DISTNAME}-${DISTVERSION}
EXTRACT_ONLY= complete.zip
MAINTAINER= ports@FreeBSD.org
COMMENT= LDraw parts library
COMMENT= LDraw-format CAD files representing many of LEGO bricks produced
LICENSE= CDDL CC-BY-NC-SA-2.0
LICENSE_COMB= dual
LICENSE_FILE_CC-BY-NC-SA-2.0= ${WRKSRC}/CAlicense.txt
LICENSE= CC-BY-2.0
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= zip
USES= dos2unix gmake zip:infozip
DOS2UNIX_GLOB= *.h makefile mklist.c *.txt *.dat
PORTDATA= *
PORTDOCS= Readme.txt
OPTIONS_DEFINE= DOCS
SUB_FILES= pkg-message
BUILD_WRKSRC= ${WRKSRC}/mklist
MAKEFILE= makefile
post-extract-script:
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo -d \
${WRKSRC}/mklist ${WRKSRC}/mklist1_6.zip)
@(cd ${WRKSRC}/mklist/include && ${MV} * ..)
post-patch:
@${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|' \
-e 's|CFLAGS=|CFLAGS?=|' \
${WRKSRC}/mklist/makefile
@${REINPLACE_CMD} -e 's|PARTS|parts|' \
${WRKSRC}/mklist/mklist.c
NO_BUILD= yes
NO_ARCH= yes
do-install:
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR})
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/share/ldraw
cd ${WRKDIR}/ldraw && \
${COPYTREE_SHARE} p ${STAGEDIR}${PREFIX}/share/ldraw && \
${COPYTREE_SHARE} parts ${STAGEDIR}${PREFIX}/share/ldraw
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/LDConfig.ldr ${STAGEDIR}${PREFIX}/share/ldraw
${INSTALL_PROGRAM} ${WRKSRC}/mklist/mklist ${STAGEDIR}${DATADIR}
@(cd ${STAGEDIR}${DATADIR} && ./mklist -d)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install: # autoplist: ~16k files all under share/ldraw
@cd ${STAGEDIR}${PREFIX} && \
${FIND} * -type f >> ${TMPPLIST}
.include <bsd.port.mk>

View File

@ -1,2 +1,5 @@
SHA256 (ldraw/201501/complete.zip) = ca4cf9c46f7fc73d0d1a55ca8270635cfe93ab2244c88640457090887e07ed7a
SIZE (ldraw/201501/complete.zip) = 29881376
TIMESTAMP = 1558146584
SHA256 (ldraw-20181208-20181208/complete.zip) = 9cef56049350b67c1d625033833a617146d0f42f4be08f34f4c51e59eca84afc
SIZE (ldraw-20181208-20181208/complete.zip) = 41548599
SHA256 (ldraw-20181208-20181208/LDConfig.ldr) = 23a3a675b11f427afc0031df18949528dccfd92a7c2e652ced33e130eb81a1d7
SIZE (ldraw-20181208-20181208/LDConfig.ldr) = 29466

View File

@ -1,22 +0,0 @@
--- ./mklist/mklist.c.orig 2013-11-15 20:23:32.000000000 +0100
+++ ./mklist/mklist.c 2013-11-15 20:25:12.000000000 +0100
@@ -53,8 +53,8 @@
/*****************************************************************/
/* Filename length compatibility stuff */
/*****************************************************************/
-#ifndef _MAX_PATH
-#define _MAX_PATH 256
+#ifndef MAX_PATH
+#define MAX_PATH 256
#endif
char shortfilepath[MAX_PATH];
char shortfilename[MAX_PATH];
@@ -84,7 +84,7 @@
int GetShortPathName(char *longpath, char * shortpath, int psize)
{
strncpy(shortpath, longpath, psize);
- return(strlen(shortpath);
+ return(strlen(shortpath));
}
#endif

View File

@ -1,11 +0,0 @@
===============================================================================
LDraw has been installed.
You can make parts.lst with
%%DATADIR%%/mklist -h
Default is sorted by Description parts.lst (mklist -d). You can change this.
===============================================================================

View File

@ -1,8 +1,8 @@
LDraw is an open standard for LEGO CAD programs that allow the user to create
LDraw-TM 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.
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/
WWW: https://www.ldraw.org/