1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/devel/9base/Makefile
Baptiste Daroussin 0fcf7d938f Support stage
Fix shebangs
2014-01-20 23:17:11 +00:00

40 lines
1.2 KiB
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= 9base
DISTVERSION= b20100604
CATEGORIES= devel
MASTER_SITES= http://dl.suckless.org/tools/
DISTNAME= ${PORTNAME}-6
MAINTAINER= sbz@FreeBSD.org
COMMENT= Port of various original plan9 tools
LICENSE= MIT
USES= shebangfix
SHEBANG_FILES= troff/tmac/sendcover \
troff/font/devutf/mkMAP
SHEBANG_LANG= rc
rc_OLD_CMD= /bin/rc
rc_CMD= ${PREFIX}/bin/rc
CFLAGS+= -I. -c
LDFLAGS+= -L.
MANPREFIX= ${PREFIX}/9
MAKE_ARGS= PREFIX="${PREFIX}/9" CC="${CC}" MANPREFIX="${MANPREFIX}/man" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_JOBS_UNSAFE= yes
APPS= ascii awk basename bc cal cat cleanname cmp date dc du dd diff echo ed \
factor fortune fmt freq getflags grep hoc join look ls mk mkdir mtime pbd \
primes rc read sam sha1sum sed seq sleep sort split strings tail tee test \
touch tr troff unicode uniq unutf yacc
ONLY_FOR_ARCHS= i386 amd64 sparc64
ONLY_FOR_ARCHS_REASON= has low-level code unavailable for ${ARCH}
post-patch:
@${REINPLACE_CMD} -e 's|PREFIX|"${PREFIX}/9"|' ${WRKSRC}/lib9/get9root.c
@${REINPLACE_CMD} -e '/OBJTYPE!=/s|!=.*|=${ARCH:S,i386,386,:S,amd64,x86_64,:S,sparc64,sun4u,}|' ${WRKSRC}/lib9/Makefile
.include <bsd.port.mk>