[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / converters / docx2txt

File: [cvs.NetBSD.org] / pkgsrc / converters / docx2txt / Makefile (download)

Revision 1.5, Sat Jul 9 06:37:56 2016 UTC (4 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.4: +2 -2 lines

Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.

# $NetBSD: Makefile,v 1.5 2016/07/09 06:37:56 wiz Exp $
#

DISTNAME=	docx2txt-1.2
PKGREVISION=	5
CATEGORIES=	converters
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=docx2txt/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	is@NetBSD.org
HOMEPAGE=	http://docx2txt.sourceforge.net/
COMMENT=	Convert Microsoft .docx documents to simple text files
LICENSE=	gnu-gpl-v3

USE_LANGUAGES=	# none
USE_TOOLS+=     perl:run unzip:run
REPLACE_PERL=   docx2txt.pl

BINDIR=		${PREFIX}/bin
EGDIR=		${PREFIX}/share/doc/docx2txt
CONF_FILES=	${EGDIR}/docx2txt.config ${PKG_SYSCONFDIR}/docx2txt.config

SUBST_CLASSES+=		fix-etc
SUBST_STAGE.fix-etc=	pre-configure
SUBST_MESSAGE.fix-etc=	Fixing /etc path.
SUBST_FILES.fix-etc=	*.pl README
SUBST_SED.fix-etc=	-e 's,"/etc,"${PKG_SYSCONFDIR},g'
SUBST_SED.fix-etc+=	-e 's, /etc , ${PKG_SYSCONFDIR} ,g'

SUBST_CLASSES+=         unzip
SUBST_STAGE.unzip=      pre-configure
SUBST_MESSAGE.unzip=    Hardcoding unzip path
SUBST_FILES.unzip=      *.pl *.config
SUBST_SED.unzip=        -e 's,/usr/bin/unzip,${TOOLS_PATH.unzip},'

SUBST_CLASSES+=		suffix
SUBST_STAGE.suffix=	pre-configure
SUBST_MESSAGE.suffix=	removing .pl suffix
SUBST_FILES.suffix=	README
SUBST_SED.suffix=	-e 's,docx2txt.pl,docx2txt,'



do-build:
	mv ${WRKSRC}/docx2txt.pl ${WRKSRC}/docx2txt

do-install:
	${INSTALL_PROGRAM_DIR}				${DESTDIR}${BINDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/docx2txt		${DESTDIR}${BINDIR}
	${INSTALL_DATA_DIR}				${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/docx2txt.config	${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/README		${DESTDIR}${EGDIR}

.include "../../mk/bsd.pkg.mk"