aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-07-24 23:19:54 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2014-07-24 23:19:54 +0000
commit2facf3a6aea07f6cb63737113bcdc05332aa9f0c (patch)
tree5e722ecf9620026b431e36d4e4028dd52d702de6 /print
parent6cd9b0ad02d612d86c912f859f5b599046e51c30 (diff)
downloadports-2facf3a6aea07f6cb63737113bcdc05332aa9f0c.tar.gz
ports-2facf3a6aea07f6cb63737113bcdc05332aa9f0c.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/gsview/Makefile32
1 files changed, 14 insertions, 18 deletions
diff --git a/print/gsview/Makefile b/print/gsview/Makefile
index 71bee1c7ee85..bbd8d1e1aaff 100644
--- a/print/gsview/Makefile
+++ b/print/gsview/Makefile
@@ -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>