62eae3dbd3
- Simplify MASTER_SITES - Remove indefinite article from COMMENT - USES_BZIP2 -> USE=tar:bzip2 Approved by: portmgr (blanket approval)
34 lines
1,012 B
Makefile
34 lines
1,012 B
Makefile
# Created by: Conrad J. Sabatier <conrads@cox.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mkreadmes
|
|
DISTVERSION= 1.3
|
|
CATEGORIES= ports-mgmt
|
|
MASTER_SITES= SF/${PORTNAME}
|
|
|
|
MAINTAINER= conrads@cox.net
|
|
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>
|