freebsd-ports/textproc/odt2txt/Makefile
Sunpoet Po-Chuan Hsieh d63b6580b5 - Add LICENSE_FILE
- Use USES=localbase
2015-10-17 18:08:31 +00:00

29 lines
651 B
Makefile

# Created by: chinsan
# $FreeBSD$
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 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}${MANPREFIX}/man/man1/
.include <bsd.port.mk>