aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-09-28 02:14:56 +0800
committerleeym <leeym@FreeBSD.org>2004-09-28 02:14:56 +0800
commitc7df923f68d02f2a467af817eecad1640b5ff0a2 (patch)
tree7dd98983c4d2623daa0a6b1491f55ab1b43d2e50
parent759214f22206f650c144df119ad171e44adcc252 (diff)
downloadfreebsd-ports-gnome-c7df923f68d02f2a467af817eecad1640b5ff0a2.tar.gz
freebsd-ports-gnome-c7df923f68d02f2a467af817eecad1640b5ff0a2.tar.zst
freebsd-ports-gnome-c7df923f68d02f2a467af817eecad1640b5ff0a2.zip
- 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)
-rw-r--r--mail/mmr/Makefile21
-rw-r--r--mail/mmr/pkg-plist9
2 files changed, 10 insertions, 20 deletions
diff --git a/mail/mmr/Makefile b/mail/mmr/Makefile
index 1c7617b10165..44c7f1477ff6 100644
--- a/mail/mmr/Makefile
+++ b/mail/mmr/Makefile
@@ -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>
diff --git a/mail/mmr/pkg-plist b/mail/mmr/pkg-plist
deleted file mode 100644
index 56cbfc135a56..000000000000
--- a/mail/mmr/pkg-plist
+++ /dev/null
@@ -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