blob: fc8679756e15e0a563a328d906376a7e2d561204 (
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
|
# New ports collection makefile for: REXX/imc
# Version required: 1.6d
# Date created: Septermber 21 96
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
#
# $Id: Makefile,v 1.5 1998/10/14 03:46:56 jseger Exp $
#
DISTNAME= rexx-imc-1.6d
CATEGORIES= lang
MASTER_SITES= http://www.comlab.ox.ac.uk/oucl/users/ian.collier/distribution/
MAINTAINER= jfitz@FreeBSD.ORG
NO_WRKSUBDIR= YES
MAKE_ENV= MKDIR="${MKDIR}"
# we must patch these files until the author correct misuse of
# errno in struct fileinfo
UGLY_PATCH= rexx.c rxfn.c util.c
.include <bsd.port.pre.mk>
post-patch:
.for c in ${UGLY_PATCH}
@${ECHO_MSG} "Changing struct fileinfo member errno to ferrno in ${c}"
@mv ${WRKSRC}/${c} ${WRKSRC}/${c}.old
@${SED} 's/->errno/->ferrno/g;' ${WRKSRC}/${c}.old > ${WRKSRC}/${c}
@${RM} ${WRKSRC}/${c}.old
.endfor
pre-build:
@ ${CP} ${FILESDIR}/Makefile ${WRKDIR}
post-install:
.if ${PORTOBJFORMAT} == "aout"
@${ECHO_MSG} "Fixing packing list for a.out"
@${MV} ${TMPPLIST} ${TMPPLIST}.new
@${GREP} -v '.so$$' ${TMPPLIST}.new > ${TMPPLIST}
@${RM} ${TMPPLIST}.new
.endif
@${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.post.mk>
|