aboutsummaryrefslogtreecommitdiffstats
path: root/www/wb0
diff options
context:
space:
mode:
Diffstat (limited to 'www/wb0')
-rw-r--r--www/wb0/Makefile38
-rw-r--r--www/wb0/pkg-plist11
2 files changed, 20 insertions, 29 deletions
diff --git a/www/wb0/Makefile b/www/wb0/Makefile
index 9c1786e19335..f445c78633ef 100644
--- a/www/wb0/Makefile
+++ b/www/wb0/Makefile
@@ -15,48 +15,28 @@ EXTRACT_SUFX= .tgz
MAINTAINER= trevor@FreeBSD.org
COMMENT= Web browser for svgalib which can show pictures
-BROKEN= incorrect packing list
-EXPIRATION_DATE=2004-08-20
-DEPRECATED= ${BROKEN}
RUN_DEPENDS= lynx:${PORTSDIR}/www/lynx-current
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
vga.1:${PORTSDIR}/graphics/svgalib \
png.5:${PORTSDIR}/graphics/png
-DOCDIR= share/doc/${PORTNAME}
-DOCS= AUTHORS Changelog README
+USE_REINPLACE= yes
+
+PORTDOCS= AUTHORS Changelog README
ONLY_FOR_ARCHS= i386
-PLIST= ${WRKDIR}/pkg-plist
post-patch:
- @${MV} ${WRKSRC}/wb0.c ${WRKSRC}/wb0.c.orig
- @${SED} -e 's|/etc/wb0|${LOCALBASE}/etc|g ; \
+ @${REINPLACE_CMD} -e 's|/etc/wb0|${LOCALBASE}/etc|g ; \
s|/usr/local/src/wb0/font/bit|${LOCALBASE}/share/wb0/|g' \
- < ${WRKSRC}/wb0.c.orig > ${WRKSRC}/wb0.c
-
-pre-install:
- ${ECHO_CMD} bin/wb0 > ${PLIST}
-.if !defined(NOPORTDOCS)
-.for i in ${DOCS}
- ${ECHO_CMD} ${DOCDIR}/${i} >> ${PLIST}
-.endfor
- ${ECHO_CMD} ${DOCDIR}/wb0.config.README >> ${PLIST}
- ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
-.endif
- ${ECHO_CMD} etc/wb0.config >> ${PLIST}
- for i in `${FIND} ${PREFIX}/share/wb0 -type f`; \
- do ${ECHO_CMD} share/wb0/`${BASENAME} $${i}` >> ${PLIST}; \
- done
- ${ECHO_CMD} @dirrm share/wb0 >> ${PLIST}
+ ${WRKSRC}/wb0.c
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/${DOCDIR}
-.for i in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
+ ${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
- ${INSTALL_DATA} ${WRKSRC}/etc/wb0/wb0.config.README ${PREFIX}/${DOCDIR}
- ${ECHO} ${DOCDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/etc/wb0/wb0.config.README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/www/wb0/pkg-plist b/www/wb0/pkg-plist
new file mode 100644
index 000000000000..e592e1f3c2a9
--- /dev/null
+++ b/www/wb0/pkg-plist
@@ -0,0 +1,11 @@
+bin/wb0
+etc/wb0.config
+share/wb0/iso_8859-2.bit
+share/wb0/kamen.encoding
+share/wb0/iso_8859-2.encoding
+share/wb0/pc-latin-2.encoding
+share/wb0/iso_8859-1.encoding
+share/wb0/cp1250.encoding
+share/wb0/cork.encoding
+@dirrm share/wb0
+%%PORTDOCS%%%%DOCSDIR%%/wb0.config.README