- Add stage support

This commit is contained in:
Danilo Egea Gondolfo 2014-07-24 23:19:54 +00:00
parent 6cd9b0ad02
commit 2facf3a6ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362859

View file

@ -13,8 +13,10 @@ COMMENT= GUI to view, search, print, and convert PostScript and PDF documents
USE_GNOME= gtk12 USE_GNOME= gtk12
USE_GHOSTSCRIPT= yes USE_GHOSTSCRIPT= yes
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \ OPTIONS_DEFINE= DOCS
pstotext:${PORTSDIR}/print/pstotext
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \
pstotext:${PORTSDIR}/print/pstotext
NO_CDROM= Can only be distributed for free 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 MAKE_JOBS_UNSAFE= yes
MAN1= gsview.1
PLIST_FILES= bin/gsview \ PLIST_FILES= bin/gsview \
bin/gsview-help \ bin/gsview-help \
etc/gsview/printer.ini etc/gsview/printer.ini \
man/man1/gsview.1.gz
PLIST_DIRS= etc/gsview PLIST_DIRS= etc/gsview
PORTDOCS= gsview.css cdorder.txt regorder.txt Readme.htm LICENCE \ PORTDOCS= gsview.css cdorder.txt regorder.txt Readme.htm LICENCE \
gvxct.htm gvxde.htm gvxen.htm gvxes.htm gvxfr.htm gvxgr.htm \ gvxct.htm gvxde.htm gvxen.htm gvxes.htm gvxfr.htm gvxgr.htm \
gvxit.htm gvxnl.htm gvxru.htm gvxse.htm gvxsk.htm gvxit.htm gvxnl.htm gvxru.htm gvxse.htm gvxsk.htm
SUB_FILES= pkg-message SUB_FILES= pkg-message
NO_STAGE= yes
post-patch: post-patch:
${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile ${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \ ${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \
@ -42,19 +43,14 @@ post-patch:
${WRKSRC}/srcunx/gvxhelp.txt ${WRKSRC}/srcunx/gvxhelp.txt
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/bin/gsview ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt ${PREFIX}/bin/gsview-help ${INSTALL_SCRIPT} ${WRKSRC}/srcunx/gvxhelp.txt ${STAGEDIR}${PREFIX}/bin/gsview-help
${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${PREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/srcunx/gsview.1 ${STAGEDIR}${PREFIX}/man/man1
${MKDIR} ${PREFIX}/etc/gsview/ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/gsview/
${INSTALL_DATA} ${WRKSRC}/src/printer.ini ${PREFIX}/etc/gsview/ ${INSTALL_DATA} ${WRKSRC}/src/printer.ini ${STAGEDIR}${PREFIX}/etc/gsview/
.ifndef(NOPORTDOCS) ${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_MAN} gsview.css cdorder.txt regorder.txt \ (cd ${WRKSRC} && ${INSTALL_MAN} gsview.css cdorder.txt regorder.txt \
Readme.htm LICENCE ${DOCSDIR} ) Readme.htm LICENCE ${STAGEDIR}${DOCSDIR} )
${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${STAGEDIR}${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk> .include <bsd.port.mk>