From fb632d156e0cd5ad930f42d1d7188c4015d4abc1 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 21 Dec 2004 14:39:39 +0000 Subject: Handle PLIST generation correctly for the -DNOPORTDOCS case. --- devel/avr-libc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'devel/avr-libc/Makefile') diff --git a/devel/avr-libc/Makefile b/devel/avr-libc/Makefile index d14254c71c43..6ad57a8b8fab 100644 --- a/devel/avr-libc/Makefile +++ b/devel/avr-libc/Makefile @@ -34,6 +34,9 @@ CONFIGURE_ENV= CC=avr-gcc PREFIX=${PREFIX} CONFIGURE_SCRIPT= doconf .if !defined(NOPORTDOCS) CONFIGURE_ARGS= --enable-doc --disable-versioned-doc +PLIST_DOC= ${PKGDIR}/pkg-plist.doc +.else +PLIST_DOC= .endif # Work around the braind***ness introduced by in freebsd-5. # Sorry, the user is no longer be able to override the optimization and @@ -51,6 +54,7 @@ do-build: (cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE}) do-install: + rm -f ${TMPPLIST}; cat ${PLIST_DOC} ${PLIST} > ${TMPPLIST} (cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ./domake MAKE=${GMAKE} install) ${MKDIR} ${PREFIX}/share/doc/avr-libc ${MKDIR} ${PREFIX}/share/doc/avr-libc/examples -- cgit v1.2.3