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

Annotation of pkgsrc/converters/docx2txt/Makefile, Revision 1.4

1.4     ! wiz         1: # $NetBSD: Makefile,v 1.3 2014/05/29 23:35:21 wiz Exp $
1.1       is          2: #
                      3:
                      4: DISTNAME=      docx2txt-1.2
1.4     ! wiz         5: PKGREVISION=   4
1.1       is          6: CATEGORIES=    converters
                      7: MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=docx2txt/}
                      8: EXTRACT_SUFX=  .tgz
                      9:
                     10: MAINTAINER=    is@NetBSD.org
                     11: HOMEPAGE=      http://docx2txt.sourceforge.net/
                     12: COMMENT=       Convert Microsoft .docx documents to simple text files
                     13: LICENSE=       gnu-gpl-v3
                     14:
                     15: USE_LANGUAGES= # none
                     16: USE_TOOLS+=     perl:run unzip:run
                     17: REPLACE_PERL=   docx2txt.pl
                     18:
                     19: BINDIR=                ${PREFIX}/bin
                     20: EGDIR=         ${PREFIX}/share/doc/docx2txt
                     21: CONF_FILES=    ${EGDIR}/docx2txt.config ${PKG_SYSCONFDIR}/docx2txt.config
                     22:
                     23: SUBST_CLASSES+=                fix-etc
                     24: SUBST_STAGE.fix-etc=   pre-configure
                     25: SUBST_MESSAGE.fix-etc= Fixing /etc path.
                     26: SUBST_FILES.fix-etc=   *.pl README
                     27: SUBST_SED.fix-etc=     -e 's,"/etc,"${PKG_SYSCONFDIR},g'
                     28: SUBST_SED.fix-etc+=    -e 's, /etc , ${PKG_SYSCONFDIR} ,g'
                     29:
                     30: SUBST_CLASSES+=         unzip
                     31: SUBST_STAGE.unzip=      pre-configure
                     32: SUBST_MESSAGE.unzip=    Hardcoding unzip path
                     33: SUBST_FILES.unzip=      *.pl *.config
                     34: SUBST_SED.unzip=        -e 's,/usr/bin/unzip,${TOOLS_PATH.unzip},'
                     35:
                     36: SUBST_CLASSES+=                suffix
                     37: SUBST_STAGE.suffix=    pre-configure
                     38: SUBST_MESSAGE.suffix=  removing .pl suffix
                     39: SUBST_FILES.suffix=    README
                     40: SUBST_SED.suffix=      -e 's,docx2txt.pl,docx2txt,'
                     41:
                     42:
                     43:
                     44: do-build:
                     45:        mv ${WRKSRC}/docx2txt.pl ${WRKSRC}/docx2txt
                     46:
                     47: do-install:
                     48:        ${INSTALL_PROGRAM_DIR}                          ${DESTDIR}${BINDIR}
                     49:        ${INSTALL_SCRIPT} ${WRKSRC}/docx2txt            ${DESTDIR}${BINDIR}
                     50:        ${INSTALL_DATA_DIR}                             ${DESTDIR}${EGDIR}
                     51:        ${INSTALL_DATA} ${WRKSRC}/docx2txt.config       ${DESTDIR}${EGDIR}
                     52:        ${INSTALL_DATA} ${WRKSRC}/README                ${DESTDIR}${EGDIR}
                     53:
                     54: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>