aboutsummaryrefslogtreecommitdiff
path: root/textproc/smu
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-12-07 05:02:58 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-12-07 05:02:58 +0000
commitb89220825b799201e4c362abc79108b4bffab30a (patch)
tree9178500cc7bfda64f08eeaa5979bb839c547f643 /textproc/smu
parent34bda9a5d8ac1ff3aaf1d9b3a5c4e56f916c29cf (diff)
downloadports-b89220825b799201e4c362abc79108b4bffab30a.tar.gz
ports-b89220825b799201e4c362abc79108b4bffab30a.zip
textproc/smi: respect *FLAGS (similar to r397201)
- Replace vendor Makefile with a virtual one based on bsd.prog.mk to avoid too much patching despite simplicity PR: 203137 Approved by: maintainer timeout (83 days)
Notes
Notes: svn path=/head/; revision=403183
Diffstat (limited to 'textproc/smu')
-rw-r--r--textproc/smu/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/textproc/smu/Makefile b/textproc/smu/Makefile
index 78c1d966f51a..e95682ff54bd 100644
--- a/textproc/smu/Makefile
+++ b/textproc/smu/Makefile
@@ -4,6 +4,7 @@
PORTNAME= smu
PORTVERSION= 1.4
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= rodrigo@FreeBSD.org
@@ -18,11 +19,11 @@ GH_PROJECT= smu
PLIST_FILES= bin/smu man/man1/smu.1.gz
-post-patch:
- @${REINPLACE_CMD} -e 's|cc|${CC}|g' ${WRKSRC}/config.mk
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/smu ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/smu.1 ${STAGEDIR}${MANPREFIX}/man/man1
+USES= uidfix
+MAKEFILE= /usr/share/mk/bsd.prog.mk
+MAKE_ENV= PROG="${PORTNAME}" \
+ BINDIR="${PREFIX}/bin" \
+ MANDIR="${MANPREFIX}/man/man"
+CFLAGS+= -DVERSION=${PORTVERSION}
.include <bsd.port.mk>