9e660bdb4c
This version adds support for a top-level Makefile.local. Also restored the priority-setting code, but without making it mandatory (if the call to rtprio fails, the program will still runs, rather than aborting as it formerly did, the last time this code was included). PR: ports/167592 Submitted by: maintainer, conrads@cox.net
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# New ports collection makefile for: mkreadmes
|
|
# Date created: 2012-03-01
|
|
# Whom: Conrad J. Sabatier <conrads@cox.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mkreadmes
|
|
DISTVERSION= 1.3
|
|
CATEGORIES= ports-mgmt
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= conrads@cox.net
|
|
COMMENT= A speedy substitute for "make readmes"
|
|
|
|
USE_BZIP2= yes
|
|
MAN1= mkreadmes.1
|
|
MANCOMPRESSED= maybe
|
|
|
|
PLIST_FILES= sbin/${PORTNAME}
|
|
PORTDATA= *
|
|
|
|
post-extract:
|
|
# 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>
|