blob: 5e3cc689691bb3ff1abbbd64e478993b2c45217c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# New ports collection makefile for: mkreadmes
# Date created: 2012-03-01
# Whom: Conrad J. Sabatier <conrads@cox.net>
#
# $FreeBSD$
#
PORTNAME= mkreadmes
DISTVERSION= 1.1.1
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>
|