diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-09-18 02:53:07 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-09-18 02:53:07 +0800 |
commit | 27f5eab78ab5a566f74d96646e9af0ab6957cb54 (patch) | |
tree | 13c1c51e1ee7eebcaeaabbaf7b33ed7362040680 /textproc | |
parent | 183af27c02bc2f9b03d0688f6e417b16c5af48f3 (diff) | |
download | freebsd-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/Makefile | 20 |
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> |