blob: 4e0685792fafdc06a7e27eaaba2da7ae58d2cd11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: bf <bf2006a@yahoo.com>
# $FreeBSD$
PORTNAME= gsview
PORTVERSION= 4.9
PORTREVISION= 5
CATEGORIES= print
MASTER_SITES= LOCAL/bf
MAINTAINER= ports@FreeBSD.org
COMMENT= GUI to view, search, print, and convert PostScript and PDF documents
USE_GNOME= gtk12
USE_GHOSTSCRIPT= yes
OPTIONS_DEFINE= DOCS
RUN_DEPENDS+= epstool:${PORTSDIR}/graphics/epstool \
pstotext:${PORTSDIR}/print/pstotext
NO_CDROM= Can only be distributed for free
MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS}
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/gsview \
bin/gsview-help \
etc/gsview/printer.ini \
man/man1/gsview.1.gz
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
post-patch:
${CP} ${WRKSRC}/srcunx/unx.mak ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's;malloc\.h;stdlib\.h;g' \
${WRKSRC}/src/doc2html.c ${WRKSRC}/src/doc2ipf.c \
${WRKSRC}/src/doc2xml.c
${REINPLACE_CMD} -e 's;mozilla;firefox3;g' \
${WRKSRC}/srcunx/gvxhelp.txt
do-install:
${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 ${STAGEDIR}${DOCSDIR} )
${INSTALL_MAN} ${WRKSRC}/bin/*.htm ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|