freebsd-ports/sysutils/moreutils/Makefile

69 lines
1.2 KiB
Makefile
Raw Normal View History

# Created by: Charlie Kester <corky1951@comcast.net>
# $FreeBSD$
PORTNAME= moreutils
PORTVERSION= 0.47
CATEGORIES= sysutils
MASTER_SITES= DEBIAN_POOL
DISTNAME= ${PORTNAME}_${PORTVERSION}
2011-04-27 09:34:19 +02:00
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Additional Unix utilities
RUN_DEPENDS= p5-IPC-Run>=0:${PORTSDIR}/devel/p5-IPC-Run
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
ALL_TARGET= bins
USE_PERL5= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MANCOMPRESSED= no
PLIST_FILES= bin/chronic \
bin/combine \
bin/errno \
bin/ifne \
bin/isutf8 \
bin/lckdo \
bin/mispipe \
bin/pee \
bin/sponge \
bin/ts \
bin/vidir \
bin/vipe \
bin/zrun
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMANPAGES}
ALL_TARGET+= mans
CANNED_MAN1= errno.1 \
ifne.1 \
isutf8.1 \
lckdo.1 \
mispipe.1 \
pee.1 \
sponge.1
MAN1= chronic.1 \
combine.1 \
ts.1 \
vidir.1 \
vipe.1 \
zrun.1 \
${CANNED_MAN1}
.endif
post-patch:
@${REINPLACE_CMD} -e 's|share/xml/docbook/schema/dtd/|local/share/xml/docbook/|' ${WRKSRC}/*.docbook
.if ${PORT_OPTIONS:MMANPAGES}
@cd ${FILESDIR}/ && ${CP} ${CANNED_MAN1} ${WRKSRC}/
.endif
post-install:
.if ${PORT_OPTIONS:MMANPAGES}
cd ${WRKSRC}/ && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1/
.endif
.include <bsd.port.mk>