From 27f5eab78ab5a566f74d96646e9af0ab6957cb54 Mon Sep 17 00:00:00 2001 From: jbeich Date: Thu, 17 Sep 2015 18:53:07 +0000 Subject: 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 (maintainer) --- textproc/smi/Makefile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'textproc') 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 -- cgit