blob: 2d48923ee8619ef075e32885892b424f5e5f3408 (
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
56
57
58
59
60
61
62
|
# Created by: coumarin@gmail.com
# $FreeBSD$
PORTNAME= xds-c
PORTVERSION= 2.51
PORTREVISION= 2
CATEGORIES= lang linux devel
MASTER_SITES= http://www.excelsior-usa.com/download/xds25x/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//}-enduser-linux
MAINTAINER= ports@FreeBSD.org
COMMENT= Excelsior Oberon-2/Modula-2 to C compiler, set up to produce native FreeBSD binaries
RESTRICTED= Excelsior forbids any redistribution
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= uses assembly code
USES= gmake motif tar:tgz
USE_LINUX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/lib/C
MAKEFILE= lib.mkf
ALL_TARGET= #
SUB_FILES= pkg-message
NO_STAGE= yes
post-extract:
@${MV} ${WRKDIR}/xds ${WRKSRC}
pre-patch:
@${BRANDELF} -t Linux ${WRKSRC}/bin/xm ${WRKSRC}/bin/h2d
post-patch:
@${REINPLACE_CMD} -e "s|%%XDSDIR%%|${PREFIX}/${PORTNAME}|g" \
${WRKSRC}/bin/xmwork ${WRKSRC}/bin/xm.cfg
post-build:
@cd ${WRKSRC} && ${SETENV} PATH=${WRKSRC}/bin ./apisyms-c
do-install:
@${FIND} ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
@${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} \;
@cd ${WRKSRC} && ${CHMOD} 755 bin/xm bin/h2d bin/xmwork bin/xdssamp samples/buildc
@cd ${WRKDIR} && ${CAT} ${FILESDIR}/plist | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}
.if !defined(NOPORTDOCS)
@cd ${WRKDIR} && ${CAT} ${FILESDIR}/plist-doc | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}
.endif
.for f in xm xmwork
@${LN} -s ${PREFIX}/${PORTNAME}/bin/${f} ${PREFIX}/bin
.endfor
@${LN} -s ${PREFIX}/${PORTNAME}/bin/h2d ${PREFIX}/bin/${PORTNAME}-h2d
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.mk>
|