freebsd-ports/cad/ldraw/Makefile
John Marino cbc2b9d493 cad/ldraw: Fix fetch; distfile was rerolled
I have the idea that ldraw is always released under the same filename.
The port was marked broken due to a checksum mismatch; the file was
fetched but it had changed.

I've expanded DIST_SUBDIR to include the PORTVERSION.  I think the scheme
used is just {YEAR}{ITERATION-2-DIGIT} so I picked 201501 as the new
PORTREVISION.  This builds under poudriere testport just fine.

Approved by:	blanket
2015-04-11 17:53:54 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= ldraw
PORTVERSION= 201501
PORTEPOCH= 1
CATEGORIES= cad
MASTER_SITES= http://www.ldraw.org/library/updates/
DISTNAME= complete
DIST_SUBDIR= ldraw/${PORTVERSION}
MAINTAINER= koalative@gmail.com
COMMENT= LDraw parts library
LICENSE= CDDL CCbyNCSA2
LICENSE_COMB= dual
LICENSE_NAME_CCbyNCSA2=Attribution-NonCommercial-ShareAlike 2.0 Unported
LICENSE_FILE_CCbyNCSA2=${WRKSRC}/CAlicense.txt
LICENSE_PERMS_CCbyNCSA2=dist-mirror pkg-mirror auto-accept
WRKSRC= ${WRKDIR}/${PORTNAME}
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
do-install:
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/mklist/mklist ${STAGEDIR}${DATADIR}
@(cd ${STAGEDIR}${DATADIR} && ./mklist -d)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>