blob: f71a5148acdd2131e3b0e2dfbf89061cf12d1bea (
plain)
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
|
# New ports collection makefile for: dice
# Date created: Wed Jan 30 13:26:52 CET 2002
# Whom: Miguel Mendez <flynn@energyhq.homeip.net>
#
# $FreeBSD$
#
PORTNAME= dice
PORTVERSION= 3.15
PORTREVISION= 1
CATEGORIES= lang devel
MASTER_SITES= http://www.obviously.com/dice/
DISTNAME= ${PORTNAME}-rel-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= DICE - The Amiga/embedded/generic 68000 C compiler
USE_REINPLACE= yes
post-patch:
@for i in ${WRKSRC}/lib/version.h ${WRKSRC}/include/lib/version.h \
${WRKSRC}/src/dcpp/main.c ${WRKSRC}/src/dcc/defs.h \
${WRKSRC}/src/dlink/main.c; \
do \
${REINPLACE_CMD} -e 's@/home/dice@${PREFIX}/share/dice@g' $$i; \
done
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} \
${REINPLACE_CMD} -e 's@__aligned@dice_aligned@g'
do-install:
@${RM} ${WRKSRC}/doc/loadabs.c.bak
@for i in ${WRKSRC}/ubin/*; \
do \
${INSTALL_PROGRAM} $$i ${PREFIX}/bin; \
done
@${MKDIR} ${PREFIX}/share/dice/config
@for i in ${WRKSRC}/config/* ; \
do \
${INSTALL_DATA} $$i ${PREFIX}/share/dice/config; \
done
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@for i in ${WRKSRC}/doc/* ; \
do \
${INSTALL_DATA} $$i ${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>
|