- Do not overwrite configuration file. Bump PORTREVISION
- Use DATADIR and USE_ICONV
This commit is contained in:
parent
74ef2b0b15
commit
806e16211e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177201
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= wprint
|
||||
PORTVERSION= 2.05
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= http://mirror2.unixfreunde.de/ \
|
||||
http://freebsd.unixfreunde.de/sources/
|
||||
@ -15,9 +16,9 @@ MASTER_SITES= http://mirror2.unixfreunde.de/ \
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Mozilla/HtmlDoc/Netscape Postscript Filter
|
||||
|
||||
LIB_DEPENDS= iconv:${PORTSDIR}/converters/libiconv \
|
||||
freetype:${PORTSDIR}/print/freetype2
|
||||
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2
|
||||
|
||||
USE_ICONV= yes
|
||||
USE_PERL5= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
@ -30,5 +31,12 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e "s|/etc/wprint\.conf|${PREFIX}/etc/wprint.conf|g" \
|
||||
${WRKSRC}/${file}
|
||||
.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>
|
||||
|
@ -1,12 +1,14 @@
|
||||
bin/wprint
|
||||
etc/wprint.conf
|
||||
share/wprint/COURR_SE.TTF
|
||||
share/wprint/COURR_SE.TXT
|
||||
share/wprint/README.test
|
||||
share/wprint/netscape.ps
|
||||
share/wprint/news.eo.gif
|
||||
share/wprint/search.eo.gif
|
||||
share/wprint/test.html
|
||||
share/wprint/test.sh
|
||||
share/wprint/wprint-test.conf
|
||||
@dirrm share/wprint
|
||||
@unexec if cmp -s %D/etc/wprint.conf.dist %D/etc/wprint.conf; then rm -f %D/etc/wprint.conf; fi
|
||||
etc/wprint.conf.dist
|
||||
@exec if [ ! -f %D/etc/wprint.conf ] ; then cp -p %D/%F %B/wprint.conf; fi
|
||||
%%DATADIR%%/COURR_SE.TTF
|
||||
%%DATADIR%%/COURR_SE.TXT
|
||||
%%DATADIR%%/README.test
|
||||
%%DATADIR%%/netscape.ps
|
||||
%%DATADIR%%/news.eo.gif
|
||||
%%DATADIR%%/search.eo.gif
|
||||
%%DATADIR%%/test.html
|
||||
%%DATADIR%%/test.sh
|
||||
%%DATADIR%%/wprint-test.conf
|
||||
@dirrm %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user