blob: 5aec7aceb877e2049c4395f02f486a86c713c289 (
plain)
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
30
31
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.7 2020/12/04 20:45:03 nia Exp $
DISTNAME= unoconv-0.7
PKGREVISION= 4
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GITHUB:=dagwieers/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/dagwieers/unoconv/
COMMENT= Convert any format supported by LibreOffice/OpenOffice
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
REPLACE_PYTHON+= unoconv
BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
DEPENDS+= libreoffice>=5.3.4.2nb1:../../misc/libreoffice
pre-build:
${SED} -e "s|@PREFIX@|${PREFIX}|; s|@PKG_INFO_CMD@|${PKG_INFO_CMD}|;" \
${FILESDIR}/unoconv.sh > ${WRKDIR}/unoconv.sh
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/bin
${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/libexec
${INSTALL_MAN_DIR} ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
${INSTALL_SCRIPT} ${WRKSRC}/unoconv \
${DESTDIR}${PREFIX}/libexec/unoconv.py
${INSTALL_SCRIPT} ${WRKDIR}/unoconv.sh \
${DESTDIR}${PREFIX}/bin/unoconv
${INSTALL_MAN} ${WRKSRC}/doc/unoconv.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/unoconv.1
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
|