1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/ports-mgmt/mkreadmes/Makefile
Erwin Lansing 21bbb4cccb Reset maintainer
<conrads@cox.net>: host mx.west.cox.net[68.6.19.3] said: 550 5.1.1
    <conrads@cox.net> invalid recipient - Refer to Error Codes section at
    http://postmaster.cox.net/confluence/display/postmaster/Error+Codes for
    more information. (in reply to RCPT TO command)

Sponsored by:	 DK Hostmaster A/S
2015-08-19 07:10:28 +00:00

35 lines
1014 B
Makefile

# Created by: Conrad J. Sabatier <conrads@cox.net>
# $FreeBSD$
PORTNAME= mkreadmes
DISTVERSION= 1.3
CATEGORIES= ports-mgmt
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Speedy substitute for "make readmes"
USES= tar:bzip2
PLIST_FILES= man/man1/mkreadmes.1.gz sbin/${PORTNAME}
PORTDATA= *
post-patch:
${REINPLACE_CMD} -e 's|-o root -g wheel||g' ${WRKSRC}/Makefile
# adjust definition of PREFIX in mkreadmes.h only if it differs from
# the current setting of ${PREFIX}
@${EGREP} -q '^#define[[:space:]]+PREFIX[[:space:]]+"${PREFIX}"' \
${WRKSRC}/mkreadmes.h || \
${REINPLACE_CMD} -Ee \
's|^(#define[[:space:]]+PREFIX[[:space:]]+)\"[^"]+\"|\1"${PREFIX}"|' \
${WRKSRC}/mkreadmes.h
# adjust reference to ${PREFIX} in usage() function's description of
# the "-t pathname" option only if it differs from the current setting
# of ${PREFIX}
@${EGREP} -q 'default ${PREFIX}' ${WRKSRC}/main.c || \
${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/main.c
.include <bsd.port.mk>