mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
1aeb25a580
PR: ports/61674 Submitted by: Maxim Tuliuk <mt@primats.org.ua> (maintainer)
82 lines
2.6 KiB
Makefile
82 lines
2.6 KiB
Makefile
# New ports collection makefile for: plucker
|
|
# Date created: 30th May 2001
|
|
# Whom: Jose Marques <noway@nohow.demon.co.uk>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= plucker
|
|
PORTVERSION= 1.6.2
|
|
CATEGORIES= palm www
|
|
MASTER_SITES= http://downloads.plkr.org/${PORTVERSION}/ \
|
|
http://downloads.hideho.org/${PORTNAME}/${PORTVERSION}/
|
|
DISTFILES= ${PORTNAME}_viewer-${PORTVERSION}.tar.bz2 \
|
|
${PORTNAME}_parser-${PORTVERSION}.tar.bz2 \
|
|
${PORTNAME}_docs-${PORTVERSION}.tar.bz2
|
|
|
|
MAINTAINER= mt@primats.org.ua
|
|
COMMENT= An offline HTML viewer for PalmOS devices
|
|
|
|
BUILD_DEPENDS= ppmtoTbmp:${PORTSDIR}/palm/ppmtoTbmp \
|
|
convert:${PORTSDIR}/graphics/ImageMagick \
|
|
ppmtogif:${PORTSDIR}/graphics/netpbm \
|
|
cjpeg:${PORTSDIR}/graphics/jpeg \
|
|
${LOCALBASE}/bin/pilot-xfer:${PORTSDIR}/palm/pilot-link
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_PYTHON= yes
|
|
USE_BZIP2= yes
|
|
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
MAN1= plucker-build.1 plucker-decode.1 plucker-dump.1
|
|
FIND?= find
|
|
NO_BUILD= yes
|
|
|
|
MYPORTDOCS= AUTHORS BUGREPORT CREDITS ChangeLog FAQ NEWS README REQUIREMENTS TODO
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-build:
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
${WRKSRC}/parser/PyPlucker
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
${WRKSRC}/parser/PyPlucker
|
|
|
|
do-install:
|
|
${MKDIR} ${PYTHON_SITELIBDIR}/PyPlucker/helper
|
|
cd ${WRKSRC}/parser; ${FIND} PyPlucker \
|
|
\( -name "*.py" -or -name "*.py?" \) \
|
|
-exec ${INSTALL_DATA} {} ${PYTHON_SITELIBDIR}/{} \;
|
|
.for F in Spider.py PluckerDocs.py Decode.py
|
|
${INSTALL_SCRIPT} ${WRKSRC}/parser/PyPlucker/${F} \
|
|
${PYTHON_SITELIBDIR}/PyPlucker
|
|
.endfor
|
|
${LN} -sf ${PYTHON_SITELIBDIR}/PyPlucker/Spider.py \
|
|
${PREFIX}/bin/plucker-build
|
|
${LN} -sf ${PYTHON_SITELIBDIR}/PyPlucker/PluckerDocs.py \
|
|
${PREFIX}/bin/plucker-decode
|
|
${LN} -sf ${PYTHON_SITELIBDIR}/PyPlucker/Decode.py \
|
|
${PREFIX}/bin/plucker-dump
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/viewer/PluckerUserGuide.pdb \
|
|
${WRKSRC}/viewer/*.prc ${DATADIR}
|
|
${MKDIR} ${PREFIX}/etc/plucker
|
|
${INSTALL_DATA} ${WRKSRC}/parser/exclusionlist.txt \
|
|
${PREFIX}/etc/plucker/exclusionlist.txt.sample
|
|
${INSTALL_DATA} ${WRKSRC}/parser/home.html \
|
|
${PREFIX}/etc/plucker/home.html.sample
|
|
${INSTALL_DATA} ${WRKSRC}/parser/pluckerrc.sample \
|
|
${PREFIX}/etc/plucker
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}/manual
|
|
.for F in ${MAN1}
|
|
${INSTALL_MAN} ${WRKSRC}/parser/${F} ${MAN1PREFIX}/man/man1
|
|
.endfor
|
|
.for F in ${MYPORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/manual
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|