- Add stage support
This commit is contained in:
parent
6cd9b0ad02
commit
2facf3a6ae
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362859
1 changed files with 14 additions and 18 deletions
|
@ -13,8 +13,10 @@ COMMENT= GUI to view, search, print, and convert PostScript and PDF documents
|
|||
USE_GNOME= gtk12
|
||||
USE_GHOSTSCRIPT= yes
|
||||
|
||||
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \
|
||||
pstotext:${PORTSDIR}/print/pstotext
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \
|
||||
pstotext:${PORTSDIR}/print/pstotext
|
||||
|
||||
NO_CDROM= Can only be distributed for free
|
||||
|
||||
|
@ -22,17 +24,16 @@ MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS}
|
|||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAN1= gsview.1
|
||||
PLIST_FILES= bin/gsview \
|
||||
bin/gsview-help \
|
||||
etc/gsview/printer.ini
|
||||
etc/gsview/printer.ini \
|
||||
man/man1/gsview.1.gz
|
||||
PLIST_DIRS= etc/gsview
|
||||
PORTDOCS= gsview.css cdorder.txt regorder.txt Readme.htm LICENCE \
|
||||
gvxct.htm gvxde.htm gvxen.htm gvxes.htm gvxfr.htm gvxgr.htm \
|
||||
gvxit.htm gvxnl.htm gvxru.htm gvxse.htm gvxsk.htm
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile
|
||||
${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \
|
||||
|
@ -42,19 +43,14 @@ post-patch:
|
|||
${WRKSRC}/srcunx/gvxhelp.txt
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt ${PREFIX}/bin/gsview-help
|
||||
${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${PREFIX}/man/man1
|
||||
${MKDIR} ${PREFIX}/etc/gsview/
|
||||
${INSTALL_DATA} ${WRKSRC}/src/printer.ini ${PREFIX}/etc/gsview/
|
||||
.ifndef(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt ${STAGEDIR}${PREFIX}/bin/gsview-help
|
||||
${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/gsview/
|
||||
${INSTALL_DATA} ${WRKSRC}/src/printer.ini ${STAGEDIR}${PREFIX}/etc/gsview/
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_MAN} gsview.css cdorder.txt regorder.txt \
|
||||
Readme.htm LICENCE ${DOCSDIR} )
|
||||
${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
Readme.htm LICENCE ${STAGEDIR}${DOCSDIR} )
|
||||
${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue