ports/net/mpd5/files/patch-doc__Makefile
Renato Botelho b306894ebc Support STAGE
Approved by:	portmgr (blanket)
2014-03-27 00:30:34 +00:00

26 lines
687 B
Text

--- doc/Makefile.orig 2013-06-11 06:00:00.000000000 -0300
+++ doc/Makefile 2014-03-26 03:39:06.000000000 -0300
@@ -3,6 +3,11 @@
PREFIX?= /usr/local
DOCDIR?= ${PREFIX}/share/doc/mpd5
+DOCOWN!= /usr/bin/id -n -u
+DOCGRP!= /usr/bin/id -n -g
+MANOWN= ${DOCOWN}
+MANGRP= ${DOCGRP}
+
MPD_DOC_FILES+= ../README
MPD_DOC_FILES+= mpd*.html
MPD_DOC_FILES+= mpd.ps
@@ -22,9 +27,9 @@
.if !defined(NOPORTDOCS)
afterinstall:
- [ -d ${DOCDIR} ] || mkdir ${DOCDIR}
+ [ -d ${DESTDIR}${DOCDIR} ] || mkdir ${DESTDIR}${DOCDIR}
${INSTALL} -c -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
- ${MPD_DOC_FILES} ${DOCDIR}
+ ${MPD_DOC_FILES} ${DESTDIR}${DOCDIR}
.endif
.include <bsd.prog.mk>