- add USE_GCC=3.3 and unbreak this port

- replace pkg-plist with PLIST_FILES and PORTDOCS
This commit is contained in:
Yen-Ming Lee 2004-10-30 16:46:42 +00:00
parent 6b00f68210
commit 503ad9bd2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120496
2 changed files with 5 additions and 11 deletions

View file

@ -18,20 +18,19 @@ LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
GNU_CONFIGURE= yes
MGDOCDIR= ${PREFIX}/share/doc/mgstat
PORTDOCS= Copyright README USAGE
PLIST_FILES= bin/mgstat
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile with gcc 3.4.2"
USE_GCC= 3.3
.endif
post-install:
.if !defined(NOPORTDOCS)
@if ! [ -d ${MGDOCDIR} ]; then ${MKDIR} ${MGDOCDIR}; fi
${INSTALL_DATA} ${WRKSRC}/Copyright ${MGDOCDIR}
${INSTALL_DATA} ${WRKSRC}/README ${MGDOCDIR}
${INSTALL_DATA} ${WRKSRC}/USAGE ${MGDOCDIR}
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View file

@ -1,5 +0,0 @@
bin/mgstat
%%PORTDOCS%%share/doc/mgstat/Copyright
%%PORTDOCS%%share/doc/mgstat/README
%%PORTDOCS%%share/doc/mgstat/USAGE
%%PORTDOCS%%@dirrm share/doc/mgstat