aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-09-18 02:53:07 +0800
committerjbeich <jbeich@FreeBSD.org>2015-09-18 02:53:07 +0800
commit27f5eab78ab5a566f74d96646e9af0ab6957cb54 (patch)
tree13c1c51e1ee7eebcaeaabbaf7b33ed7362040680 /textproc
parent183af27c02bc2f9b03d0688f6e417b16c5af48f3 (diff)
downloadfreebsd-ports-gnome-27f5eab78ab5a566f74d96646e9af0ab6957cb54.tar.gz
freebsd-ports-gnome-27f5eab78ab5a566f74d96646e9af0ab6957cb54.tar.zst
freebsd-ports-gnome-27f5eab78ab5a566f74d96646e9af0ab6957cb54.zip
textproc/smi: respect *FLAGS and fix LICENSE
- Replace vendor Makefile with a virtual one based on bsd.prog.mk to avoid too much patching despite simplicity [1] - No BSD2CLAUSE license or any mention of it within the distfile [2] PR: 203137 [1], 203138 [2] Approved by: Chris Hutchinson <portmaster@bsdforge.com> (maintainer)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/smi/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/textproc/smi/Makefile b/textproc/smi/Makefile
index f1780d821aa1..85edf5fc535b 100644
--- a/textproc/smi/Makefile
+++ b/textproc/smi/Makefile
@@ -3,30 +3,28 @@
PORTNAME= smi
PORTVERSION= 1.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc www
MASTER_SITES= http://bsdforge.com/projects/source/textproc/${PORTNAME}/
MAINTAINER= portmaster@bsdforge.com
COMMENT= Simple Markdown Interpreter / filter for simplified markup dialect
-LICENSE= MIT BSD2CLAUSE
-LICENSE_COMB= multi
+LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
PORTDOCS= README.md
PLIST_FILES= bin/smi man/man1/smi.1.gz
-USES= tar:xz
+USES= tar:xz uidfix
+MAKEFILE= /usr/share/mk/bsd.prog.mk
+MAKE_ENV= PROG="${PORTNAME}" FILES="${PORTDOCS}" \
+ BINDIR="${PREFIX}/bin" FILESDIR="${DOCSDIR}" \
+ MANDIR="${MANPREFIX}/man/man"
+CFLAGS+= -DVERSION=${PORTVERSION}
-post-patch:
- ${REINPLACE_CMD} -e 's|^CC = .*|CC = ${CC}|' ${WRKSRC}/config.mk
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/smi ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/smi.1 ${STAGEDIR}${MANPREFIX}/man/man1
+pre-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>