aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorak <ak@FreeBSD.org>2012-06-20 14:03:08 +0800
committerak <ak@FreeBSD.org>2012-06-20 14:03:08 +0800
commitb74b3fb9cae9e471ba314b973b12fdf7088cebaf (patch)
tree2bf0cdd59276df7503e672a9920789f33d27c9f8 /editors
parent7101f154c95760d948391571298fb1197e87517d (diff)
downloadfreebsd-ports-gnome-b74b3fb9cae9e471ba314b973b12fdf7088cebaf.tar.gz
freebsd-ports-gnome-b74b3fb9cae9e471ba314b973b12fdf7088cebaf.tar.zst
freebsd-ports-gnome-b74b3fb9cae9e471ba314b973b12fdf7088cebaf.zip
- Remove hardcoded CC [1] and PREFIX
- Remove pkg-plist PR: ports/168648 [1] Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Approved By: maintainer (timeout, 14 days), eadler, itetcu (mentors, implicit)
Diffstat (limited to 'editors')
-rw-r--r--editors/mg/Makefile10
-rw-r--r--editors/mg/pkg-plist4
2 files changed, 7 insertions, 7 deletions
diff --git a/editors/mg/Makefile b/editors/mg/Makefile
index 23e64d4d4215..b72884808710 100644
--- a/editors/mg/Makefile
+++ b/editors/mg/Makefile
@@ -17,19 +17,23 @@ COMMENT= A small, fast Emacs-like editor
MAN1= mg.1
MANCOMPRESSED= no
+PLIST_FILES= bin/mg
+PORTDOCS= README tutorial
+
HAS_CONFIGURE= yes
pre-configure:
@${REINPLACE_CMD} -e 's|-Wno-error=unused-but-set-variable||g' \
+ -e '/^CC=/d' -e 's|-g -Wall|-Wall|' -e 's|/usr/local|${PREFIX}|' \
${WRKSRC}/Makefile.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
-.for FILE in README tutorial
- ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
diff --git a/editors/mg/pkg-plist b/editors/mg/pkg-plist
deleted file mode 100644
index 09d5439bebfc..000000000000
--- a/editors/mg/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/mg
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/tutorial
-%%PORTDOCS%%@dirrm %%DOCSDIR%%