From b7062d743ba03b26dc7eda45a0178c04d82786c3 Mon Sep 17 00:00:00 2001 From: maho Date: Wed, 11 May 2011 08:02:24 +0000 Subject: Fix build. Spotted by: pav --- x11/mxico/Makefile | 20 +++++--------------- x11/mxico/pkg-plist | 6 +++--- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/x11/mxico/Makefile b/x11/mxico/Makefile index b8c9f0f09555..422791339874 100644 --- a/x11/mxico/Makefile +++ b/x11/mxico/Makefile @@ -19,23 +19,13 @@ COMMENT= Rotating Object on the screen (Zalgaller polyhedra) USE_IMAKE= yes USE_XORG= x11 xext WRKSRC= ${WRKDIR}/${PORTNAME} -MAN6= mxico.6 - -BROKEN= bad plist - -pre-build: - @cd ${WRKSRC} && ${MV} Makefile Makefile~ && ${SED} \ - -e 's: BINDIR .*:BINDIR=${PREFIX}/bin:' \ - -e 's: MANDIR .*:MANDIR=${PREFIX}/man/man6:' \ - -e 's: MANSUFFIX .*:MANSUFFIX=6:' Makefile - -pre-install: - @${MKDIR} ${PREFIX}/bin - @${MKDIR} ${PREFIX}/man/man6 - @${MKDIR} ${DOCSDIR} +MAN1= mxico.1 post-install: - @(cd ${WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man) +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} @(cd ${WRKSRC}; ${INSTALL_DATA} polyhedron/READMEj ${DOCSDIR}) @(cd ${WRKSRC}; ${INSTALL_DATA} polyhedron/README ${DOCSDIR}) +.endif + .include diff --git a/x11/mxico/pkg-plist b/x11/mxico/pkg-plist index 615143debd1a..22971e5f3bfc 100644 --- a/x11/mxico/pkg-plist +++ b/x11/mxico/pkg-plist @@ -1,4 +1,4 @@ bin/mxico -%%DOCSDIR%%/README -%%DOCSDIR%%/READMEj -@dirrm %%DOCSDIR%% +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/READMEj +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit