blob: 691302d7481c9df1db28ae768f31e397d353c950 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: nemysis <nemysis@gmx.ch>
# $FreeBSD$
PORTNAME= ldraw
PORTVERSION= 201302
PORTEPOCH= 1
CATEGORIES= cad
MASTER_SITES= http://www.ldraw.org/library/updates/
DISTNAME= complete
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= nemysis@FreeBSD.org
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
DOS2UNIX_GLOB= *.h makefile mklist.c *.txt *.dat
PORTDOCS= Readme.txt
OPTIONS_DEFINE= DOCS
SUB_FILES= pkg-message
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-build:
@(cd ${WRKSRC}/mklist ; ${GMAKE} ${MAKE_ENV})
do-install:
.for f in models p parts LDCfgalt.ldr LDConfig.ldr LDConfig_TLG.ldr
@(cd ${WRKSRC} ; ${COPYTREE_SHARE} ${f} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/mklist/mklist ${STAGEDIR}${DATADIR}
${STRIP_CMD} ${STAGEDIR}${DATADIR}/mklist
@(cd ${STAGEDIR}${DATADIR} ; ./mklist -d)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@cd ${STAGEDIR}${PREFIX} && ${FIND} ${DATADIR_REL}\
-type f >> ${TMPPLIST} && \
${FIND} ${DATADIR_REL} -type d -o -type l | ${SORT} -r | \
${SED} 's|^|@dirrm |' >> ${TMPPLIST}
.include <bsd.port.mk>
|