1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- add USE_GCC=2.95 and unbreak this port

- utilize DOCSDIR and EXAMPLESDIR
- replace pkg-plist with PORTDOCS, PLIST_FILES and PLIST_DIRS

PR:		72107
Submitted by:	leeym
Approved by:	portmgr (marcus)
This commit is contained in:
Yen-Ming Lee 2004-09-27 18:14:56 +00:00
parent 7d819d47f1
commit 69e7c98034
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118460
2 changed files with 10 additions and 20 deletions

View File

@ -14,22 +14,21 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Curses based MIME Mail Reader
ALL_TARGET= # empty
USE_GCC= 2.95
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 502126
BROKEN= "Does not compile with gcc 3.4.2"
.endif
PORTDOCS= BUGS CHANGES Features README TODO
PLIST_FILES= bin/mmr ${EXAMPLESDIR:S,${PREFIX}/,,}/dot.mmrc.sample
PLIST_DIRS= ${EXAMPLESDIR:S,${PREFIX}/,,}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mmr ${PREFIX}/bin
@${MKDIR} ${PREFIX}/share/examples/mmr
${INSTALL_DATA} ${WRKSRC}/DOT-mmrc ${PREFIX}/share/examples/mmr/dot.mmrc.sample
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/DOT-mmrc ${EXAMPLESDIR}/dot.mmrc.sample
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/mmr
.for file in BUGS CHANGES Features README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/mmr
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,9 +0,0 @@
bin/mmr
%%PORTDOCS%%share/doc/mmr/BUGS
%%PORTDOCS%%share/doc/mmr/CHANGES
%%PORTDOCS%%share/doc/mmr/Features
%%PORTDOCS%%share/doc/mmr/README
%%PORTDOCS%%share/doc/mmr/TODO
share/examples/mmr/dot.mmrc.sample
@dirrm share/examples/mmr
%%PORTDOCS%%@dirrm share/doc/mmr