freebsd-ports/textproc/odt2txt/Makefile
John Marino 2e6e9eacf1 textproc/odt2txt: switch to github to fix fetching
While here, reset maintainership.  The maintainer has not provided any
updates since taking over the port in 2011, including staging the port.

PR:		194348
Submitted by:	kvedulv (de)
Approved by:	(former) maintainer timeout
2014-11-09 09:37:08 +00:00

35 lines
753 B
Makefile

# Created by: chinsan
# $FreeBSD$
PORTNAME= odt2txt
PORTVERSION= 0.4
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= GH
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple converter from OpenDocument Text to plain text
LICENSE= GPLv2
USE_GITHUB= yes
GH_ACCOUNT= dstosberg
GH_PROJECT= odt2txt
GH_COMMIT= 97b8999
GH_TAGNAME= ${GH_COMMIT}
USES= iconv gmake
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/odt2txt man/man1/odt2txt.1.gz
post-patch:
${REINPLACE_CMD} -e 's#/usr/local#${LOCALBASE}#g' \
-e '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>