aboutsummaryrefslogtreecommitdiff
path: root/textproc/multimarkdown/Makefile
blob: 6ae6997f185f9d98c89eb0253348c6edd8c61b4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$

PORTNAME=	multimarkdown
PORTVERSION=	3.7.1
PORTREVISION=	1
DISTNAME=	peg-${PORTNAME}-${PORTVERSION}
CATEGORIES=	textproc
MASTER_SITES=	http://github.com/fletcher/peg-${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/

MAINTAINER=	adamw@FreeBSD.org
COMMENT=	Extended Markdown processor with more features, written in C

CONFLICTS_INSTALL=	mtools-*

LICENSE=	MIT

FETCH_ARGS=	-Fpr

USE_GMAKE=	yes
ALL_TARGET=	ALL
MAKE_JOBS_UNSAFE=	yes

PLIST_FILES=	bin/multimarkdown bin/mmd bin/mmd2all bin/mmd2odf bin/mmd2opml bin/mmd2pdf bin/mmd2tex
PORTDOCS=	LICENSE README.markdown

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -E "/CFLAGS/s/-arch [[:alnum:]]+//; /CFLAGS/s/\?=/\+=/; \
		s/CC=gcc//" \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/multimarkdown ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/bin

.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.markdown ${DOCSDIR}
.endif

.include <bsd.port.mk>