diff --git a/ports-mgmt/mkreadmes/Makefile b/ports-mgmt/mkreadmes/Makefile index a74f4b3eca8d..c8b37423e636 100644 --- a/ports-mgmt/mkreadmes/Makefile +++ b/ports-mgmt/mkreadmes/Makefile @@ -1,32 +1,33 @@ PORTNAME= mkreadmes DISTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= ports-mgmt MASTER_SITES= SF/${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Speedy substitute for "make readmes" WWW= https://sourceforge.net/projects/mkreadmes/ USES= tar:bzip2 -PLIST_FILES= man/man1/mkreadmes.1.gz sbin/${PORTNAME} +PLIST_FILES= sbin/${PORTNAME} share/man/man1/mkreadmes.1.gz 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 diff --git a/ports-mgmt/mkreadmes/files/patch-Makefile b/ports-mgmt/mkreadmes/files/patch-Makefile index 39a53be16c32..77ae7648ca56 100644 --- a/ports-mgmt/mkreadmes/files/patch-Makefile +++ b/ports-mgmt/mkreadmes/files/patch-Makefile @@ -1,15 +1,15 @@ ---- ./Makefile.orig 2014-06-23 23:32:51.000000000 -0400 -+++ ./Makefile 2014-06-23 23:34:59.000000000 -0400 -@@ -8,9 +8,9 @@ +--- Makefile.orig 2012-05-04 20:54:09 UTC ++++ Makefile +@@ -8,9 +8,9 @@ PREFIX?= /usr/local # allow user to override insta PROGRAM= mkreadmes VERSION= 1.3 PREFIX?= /usr/local # allow user to override install prefix -BINDIR= ${PREFIX}/sbin -DATADIR= ${PREFIX}/share/${PROGRAM} -MANDIR= ${PREFIX}/man/man1 +BINDIR= ${DESTDIR}${PREFIX}/sbin +DATADIR= ${DESTDIR}${PREFIX}/share/${PROGRAM} -+MANDIR= ${DESTDIR}${PREFIX}/man/man1 ++MANDIR= ${DESTDIR}${PREFIX}/share/man/man1 TEMPLATESDIR= ${DATADIR}/Templates SRCS= index.c init.c main.c ${PROGRAM}.c util.c ${PROGRAM}.h INCLUDES= /usr/include