blob: a23eb17f03a3367d017676da2a1f19c1c7527f50 (
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
64
65
66
67
68
69
70
71
|
# New ports collection Makefile for: seed7
# Date created: 16 July 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= seed7
DISTVERSION= 05_20120304
CATEGORIES= lang
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}/
DISTNAME= ${PORTNAME}_${DISTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= gahr@FreeBSD.org
COMMENT= A high-level, extensible programming language
LICENSE= LGPL21
USE_GMAKE= yes
USE_XORG= x11
ONLY_FOR_ARCHS= i386 amd64 sparc64
WRKSRC= ${WRKDIR}/${PORTNAME}/src
MAKEFILE= makefile
ALL_TARGET= hi
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN= does not compile
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g;\
s|`pwd`|${PREFIX}/lib/${PORTNAME}|g;\
s|-lX11|$${LFLAGS} -lX11|g' \
${WRKSRC}/makefile
${REINPLACE_CMD} -i '' -e 's|./hi|${PREFIX}/bin/hi|g' \
${WRKSRC}/../prg/chk_all.sd7
do-configure:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} depend)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/../bin/hi ${PREFIX}/bin
${INSTALL} -d ${PREFIX}/lib/${PORTNAME}
(cd ${WRKSRC}/../lib && ${COPYTREE_SHARE} \* ${PREFIX}/lib/${PORTNAME})
${INSTALL_DATA} ${WRKSRC}/../bin/s7_comp.a ${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/../bin/s7_con.a ${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/../bin/s7_draw.a ${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/../bin/s7_data.a ${PREFIX}/lib/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/../bin/seed7_05.a ${PREFIX}/lib/${PORTNAME}
post-install:
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.if !defined(NOPORTEXAMPLES)
${INSTALL} -d ${EXAMPLESDIR}
(cd ${WRKSRC}/../prg && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
test: install
@echo ""
@echo "Testing the ${PORTNAME} installation"
@(cd ${WRKSRC}/../prg && ${PREFIX}/bin/hi chk_all)
.include <bsd.port.post.mk>
|