2001-01-31 18:14:09 -05:00
|
|
|
# New ports collection makefile for: wb0
|
|
|
|
# Date created: 2001-01-31
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wb0
|
|
|
|
PORTVERSION= 000324
|
2001-04-10 03:34:54 -04:00
|
|
|
CATEGORIES= www graphics
|
2001-01-31 18:14:09 -05:00
|
|
|
MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/local/clock/wb0/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
|
|
|
|
RUN_DEPENDS= lynx:${PORTSDIR}/www/lynx-current
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
vga.1:${PORTSDIR}/graphics/svgalib \
|
2001-09-10 22:38:25 -04:00
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2001-01-31 18:14:09 -05:00
|
|
|
|
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
2001-02-23 19:04:51 -05:00
|
|
|
DOCS= AUTHORS Changelog README
|
2001-01-31 18:14:09 -05:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${PERL} -pi -e 's|/etc/wb0|${LOCALBASE}/etc|g ; \
|
|
|
|
s|/usr/local/src/wb0/font/bit|${LOCALBASE}/share/wb0/|g' \
|
|
|
|
${WRKSRC}/wb0.c
|
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 07:08:37 -05:00
|
|
|
${ECHO_CMD} bin/wb0 > ${PLIST}
|
2001-01-31 18:14:09 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-02-23 19:04:51 -05:00
|
|
|
.for i in ${DOCS}
|
2002-01-29 07:08:37 -05:00
|
|
|
${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST}
|
2001-02-23 19:04:51 -05:00
|
|
|
.endfor
|
2002-01-29 07:08:37 -05:00
|
|
|
${ECHO_CMD} ${DOCDIR}/wb0.config.README >> ${PLIST}
|
|
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
2001-01-31 18:14:09 -05:00
|
|
|
.endif
|
2002-01-29 07:08:37 -05:00
|
|
|
${ECHO_CMD} etc/wb0.config >> ${PLIST}
|
2001-01-31 18:14:09 -05:00
|
|
|
for i in `find ${PREFIX}/share/wb0 -type f`; \
|
2002-01-29 07:08:37 -05:00
|
|
|
do ${ECHO_CMD} share/wb0/`${BASENAME} $${i}` >> ${PLIST}; \
|
2001-01-31 18:14:09 -05:00
|
|
|
done
|
2002-01-29 07:08:37 -05:00
|
|
|
${ECHO_CMD} @dirrm share/wb0 >> ${PLIST}
|
2001-01-31 18:14:09 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-02-23 19:04:51 -05:00
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/wb0/wb0.config.README ${PREFIX}/${DOCDIR}
|
|
|
|
${ECHO} ${DOCDIR}/
|
2001-01-31 18:14:09 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|