# Created by: Rusmir Dusko # $FreeBSD: head/cad/ldraw/Makefile 511152 2019-09-05 03:40:52Z yuri $ PORTNAME= ldraw DISTVERSION= 20190628 PORTEPOCH= 1 CATEGORIES= cad 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-format CAD files representing many of LEGO bricks produced LICENSE= CC-BY-2.0 USES= zip NO_BUILD= yes NO_ARCH= yes do-install: @${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 post-install: # autoplist: ~16k files all under share/ldraw @cd ${STAGEDIR}${PREFIX} && \ ${FIND} * -type f >> ${TMPPLIST} .include