mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- 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
2 changed files with 23 additions and 13 deletions
|
@ -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>
|
||||||
|
|
|
@ -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%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue