blob: 0d0234534720f70a422d34c06cc1926e81edc987 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# New ports collection makefile for: Adobe Acrobar Viewer Version 1.1
# Date created: 4 Febrary 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= acrobatviewer
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= print java
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/magic/acrobatviewer/unix/1.x/
DISTNAME= viewer.bin
EXTRACT_SUFX=
MAINTAINER= ports@FreeBSD.org
COMMENT= Viewer for the PDF files written in Java(TM)
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre
USE_ZIP= yes
USE_XLIB= yes
USE_PERL5_BUILD=yes
NO_BUILD= yes
JAVAVM= ${LOCALBASE}/bin/javavm
INSTSBDR= ${PREFIX}/share/java/AdobeAcrobatViewer
# For the end-users this "InstallAnywhere" whizard probably is a great step
# toward Windowze-like software installations comparing with traditional
# "make install" enviropment, but for *nix administrator it is a pain to deal
# with. Fortunately, Zero G (author of the InstallAnywhere) does not use
# propiertary format for archiving files, so it was possible for me to make
# following dirty hack. If they will provide better way to centralise
# installations in the next versions of InstallAnywhere than I'll be glad to
# remove all following crap.
BLOCKSIZE= 32768
ARCHSTART= 1
ARCHSIZE= 2749762
ARCHBLOCKS= 84
do-extract:
@${MKDIR} ${WRKSRC} && \
cd ${WRKSRC} && \
dd if=${DISTDIR}/${DISTNAME} of=archive.zip bs=${BLOCKSIZE} skip=${ARCHSTART} count=${ARCHBLOCKS} 2>/dev/null && \
${LOCALBASE}/bin/unzip -o -a -j -qq archive.zip && \
${PERL} -pi -e "s.\x0D.." ${WRKSRC}/AcrobatViewer.lax
do-configure:
@${PERL} -pi -e "s|%INSTDIR%|${INSTSBDR}|g" ${WRKSRC}/AcrobatViewer.lax && \
${PERL} -pi -e "s|%JAVAVM%|${JAVAVM}|g" ${WRKSRC}/AcrobatViewer.lax && \
${PERL} -pi -e "s|%JAVAJIT%|${JAVAJIT}|g" ${WRKSRC}/AcrobatViewer.lax
do-install:
${MKDIR} ${INSTSBDR}
${INSTALL_SCRIPT} ${WRKSRC}/launixgc.sh ${INSTSBDR}/AcrobatViewer
${INSTALL_DATA} ${WRKSRC}/License.pdf ${INSTSBDR}/
${INSTALL_DATA} ${WRKSRC}/help.pdf ${INSTSBDR}/
${INSTALL_DATA} ${WRKSRC}/lax.jar ${INSTSBDR}/
${INSTALL_DATA} ${WRKSRC}/acrobat.jar ${INSTSBDR}/
${INSTALL_DATA} ${WRKSRC}/AcrobatViewer.lax ${INSTSBDR}/
${LN} -sf ${INSTSBDR}/AcrobatViewer ${PREFIX}/bin/AcrobatViewer
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|