2013-09-17 17:51:28 +00:00
|
|
|
# Created by: nemysis <nemysis@gmx.ch>
|
2013-03-13 21:39:40 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldraw
|
2014-03-05 21:04:04 +00:00
|
|
|
PORTVERSION= 201302
|
2013-09-17 17:51:28 +00:00
|
|
|
PORTEPOCH= 1
|
2013-03-13 21:39:40 +00:00
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= http://www.ldraw.org/library/updates/
|
|
|
|
DISTNAME= complete
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2013-09-17 17:51:28 +00:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2013-03-13 21:39:40 +00:00
|
|
|
COMMENT= LDraw parts library
|
|
|
|
|
2013-09-17 17:51:28 +00:00
|
|
|
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}
|
2013-03-13 21:39:40 +00:00
|
|
|
|
2014-03-08 08:59:08 +00:00
|
|
|
USES= dos2unix gmake zip:infozip
|
2013-11-18 22:53:52 +00:00
|
|
|
DOS2UNIX_GLOB= *.h makefile mklist.c *.txt *.dat
|
2013-03-13 21:39:40 +00:00
|
|
|
|
2013-09-17 17:51:28 +00:00
|
|
|
PORTDOCS= Readme.txt
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
post-extract-script:
|
2013-11-18 21:55:54 +00:00
|
|
|
@(cd ${WRKSRC} && ${UNZIP_CMD} -qo -d ${WRKSRC}/mklist ${WRKSRC}/mklist1_6.zip)
|
|
|
|
@(cd ${WRKSRC}/mklist/include && ${MV} * ..)
|
2013-09-17 17:51:28 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CC=gcc|CC?=gcc|' \
|
|
|
|
-e 's|CFLAGS=|CFLAGS?=|' \
|
2013-11-18 21:55:54 +00:00
|
|
|
${WRKSRC}/mklist/makefile
|
2013-09-17 17:51:28 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|PARTS|parts|' \
|
2013-11-18 21:55:54 +00:00
|
|
|
${WRKSRC}/mklist/mklist.c
|
2013-09-17 17:51:28 +00:00
|
|
|
|
|
|
|
do-build:
|
2013-11-18 21:55:54 +00:00
|
|
|
@(cd ${WRKSRC}/mklist ; ${GMAKE} ${MAKE_ENV})
|
2013-03-13 21:39:40 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-09-17 17:51:28 +00:00
|
|
|
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
|
2013-11-18 21:55:54 +00:00
|
|
|
@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR})
|
2013-09-17 17:51:28 +00:00
|
|
|
.endfor
|
|
|
|
|
2014-03-09 19:50:40 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mklist/mklist ${STAGEDIR}${DATADIR}
|
2014-03-05 21:04:04 +00:00
|
|
|
@(cd ${STAGEDIR}${DATADIR} ; ./mklist -d)
|
2013-03-13 21:39:40 +00:00
|
|
|
|
2013-11-18 21:55:54 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2013-03-13 21:39:40 +00:00
|
|
|
|
2013-11-18 21:55:54 +00:00
|
|
|
@cd ${STAGEDIR}${PREFIX} && ${FIND} ${DATADIR_REL}\
|
|
|
|
-type f >> ${TMPPLIST} && \
|
|
|
|
${FIND} ${DATADIR_REL} -type d -o -type l | ${SORT} -r | \
|
|
|
|
${SED} 's|^|@dirrm |' >> ${TMPPLIST}
|
2013-09-17 17:51:28 +00:00
|
|
|
|
2013-03-13 21:39:40 +00:00
|
|
|
.include <bsd.port.mk>
|