aboutsummaryrefslogtreecommitdiff
path: root/textproc/odt2txt/Makefile
blob: bca915864655c265ea6f1d1ae875dd449c11f267 (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
# Created by: chinsan

PORTNAME=	odt2txt
PORTVERSION=	0.5
DISTVERSIONPREFIX=	v
CATEGORIES=	textproc

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Simple converter from OpenDocument Text to plain text

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/GPL-2

USES=		gmake iconv localbase

PLIST_FILES=	bin/odt2txt \
		share/man/man1/odt2txt.1.gz

GH_ACCOUNT=	dstosberg
USE_GITHUB=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g; s|-liconv|${ICONV_LIB}|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/odt2txt ${STAGEDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/odt2txt.1 ${STAGEDIR}${PREFIX}/share/man/man1/

.include <bsd.port.mk>