blob: 9f83c38152a7b5626d55a40d094b86c8510b0c0d (
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
|
# Created by: Cyrille Lefevre <Cyrille.Lefevre@laposte.net>
# $FreeBSD$
PORTNAME= heirloom
PORTVERSION= 070715
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= cy@FreeBSD.org
COMMENT= Collection of standard Unix utilities
BUILD_DEPENDS= ksh:${PORTSDIR}/shells/pdksh
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= gmake tar:bzip2
MAKE_ARGS= CC=${CC} CFLAGS="${CFLAGS}" ROOT="${STAGEDIR}"
MAKEFILE= makefile
ALL_TARGET= #
DATADIR= ${PREFIX}/${PORTNAME}
REINPLACE_SUB= DATADIR="${DATADIR}"
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 900007
EXTRA_PATCHES= ${FILESDIR}/extra-utmpx
.endif
.if ${ARCH} == "powerpc"
BROKEN= does not compile on ${ARCH}
.endif
SH2FIX= maninst.sh genintro.sh crossln.sh
DOC_FILES= CHANGES LICENSE/COPYING LICENSE/LICENSE LICENSE/LUCENT \
LICENSE/README LICENSE/COPYING.LGPL README intro.txt
post-patch:
# FreeBSD does not have neither <malloc.h> nor <alloca.h> system headers
@${GREP} -ERl --null 'm?alloca?\.h' ${WRKSRC} | \
${XARGS} -0 ${REINPLACE_CMD} -E '/<m?alloca?\.h>/d'
# Avoid a race (to unbreak parallel builds)
@${REINPLACE_CMD} -e 's|htemp2|$$@.temp|g' \
${WRKSRC}/spell/Makefile.mk
pre-configure:
@${REINPLACE_CMD} ${REINPLACE_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/build/mk.config ${WRKSRC}/su/su.dfl.in
@${REINPLACE_CMD} -e 's|/sbin/sh| ${SH}|' \
${SH2FIX:S|^|${WRKSRC}/build/|}
# XXX: hack to avoid inner race (for -jX builds); should be fixed properly
# one day (e.g. by factoring out special target in the top makefile)
pre-build:
${MAKE} -C ${WRKSRC}/libcommon -f Makefile.mk headers
post-install: install-doc
install-doc:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/LICENSE
. for f in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
. endfor
.endif
.include <bsd.port.mk>
|