- Do not overwrite configuration file. Bump PORTREVISION

- Use DATADIR and USE_ICONV
This commit is contained in:
Rong-En Fan 2006-11-14 01:22:36 +00:00
parent 74ef2b0b15
commit 806e16211e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177201
2 changed files with 23 additions and 13 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= wprint PORTNAME= wprint
PORTVERSION= 2.05 PORTVERSION= 2.05
PORTREVISION= 1
CATEGORIES= print CATEGORIES= print
MASTER_SITES= http://mirror2.unixfreunde.de/ \ MASTER_SITES= http://mirror2.unixfreunde.de/ \
http://freebsd.unixfreunde.de/sources/ http://freebsd.unixfreunde.de/sources/
@ -15,9 +16,9 @@ MASTER_SITES= http://mirror2.unixfreunde.de/ \
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Mozilla/HtmlDoc/Netscape Postscript Filter COMMENT= Mozilla/HtmlDoc/Netscape Postscript Filter
LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv \ LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2
freetype:${PORTSDIR}/print/freetype2
USE_ICONV= yes
USE_PERL5= yes USE_PERL5= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@ -30,5 +31,12 @@ post-patch:
@${REINPLACE_CMD} -e "s|/etc/wprint\.conf|${PREFIX}/etc/wprint.conf|g" \ @${REINPLACE_CMD} -e "s|/etc/wprint\.conf|${PREFIX}/etc/wprint.conf|g" \
${WRKSRC}/${file} ${WRKSRC}/${file}
.endfor .endfor
@${REINPLACE_CMD} -e 's,$$(srcdir)/wprint.conf $$(sysconfdir),$$(srcdir)/wprint.conf $$(sysconfdir)/wprint.conf.dist,g' \
${WRKSRC}/etc/Makefile.in
post-install:
@if [ ! -f ${PREFIX}/etc/wprint.conf ]; then \
${CP} -p ${PREFIX}/etc/wprint.conf.dist ${PREFIX}/etc/wprint.conf ; \
fi
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,12 +1,14 @@
bin/wprint bin/wprint
etc/wprint.conf @unexec if cmp -s %D/etc/wprint.conf.dist %D/etc/wprint.conf; then rm -f %D/etc/wprint.conf; fi
share/wprint/COURR_SE.TTF etc/wprint.conf.dist
share/wprint/COURR_SE.TXT @exec if [ ! -f %D/etc/wprint.conf ] ; then cp -p %D/%F %B/wprint.conf; fi
share/wprint/README.test %%DATADIR%%/COURR_SE.TTF
share/wprint/netscape.ps %%DATADIR%%/COURR_SE.TXT
share/wprint/news.eo.gif %%DATADIR%%/README.test
share/wprint/search.eo.gif %%DATADIR%%/netscape.ps
share/wprint/test.html %%DATADIR%%/news.eo.gif
share/wprint/test.sh %%DATADIR%%/search.eo.gif
share/wprint/wprint-test.conf %%DATADIR%%/test.html
@dirrm share/wprint %%DATADIR%%/test.sh
%%DATADIR%%/wprint-test.conf
@dirrm %%DATADIR%%