freebsd-ports/print/acrobatviewer/Makefile
Maxim Sobolev 1b69e27a4e Initial import of Adobe AcrobatViewer(r) - a new Adobe's free PDF viewer written
entirely in Java

PR:		16606
Submitted by:	sobomax
2000-05-29 08:34:03 +00:00

75 lines
2.3 KiB
Makefile

# New ports collection makefile for: Adobe Acrobar Viewer Version 1.1
# Date created: 4 Febrary 2000
# Whom: Maxim Sobolev
#
# $FreeBSD$
#
PORTNAME= acrobatviewer
PORTVERSION= 1.1
CATEGORIES= print java
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/magic/acrobatviewer/unix/1.x/
DISTNAME= viewer.bin
EXTRACT_SUFX=
MAINTAINER= sobomax@FreeBSD.org
RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/jdk
USE_ZIP= yes
USE_XLIB= yes
NO_BUILD= yes
JDK_VERSION= 1.1.8
JAVAVM= ${LOCALBASE}/jdk${JDK_VERSION}/bin/java
.if defined(WITH_JIT)
RUN_DEPENDS+= ${LOCALBASE}/jdk${JDK_VERSION}/lib/${ARCH}/green_threads/libshujit.so:${PORTSDIR}/java/shujit
JAVAJIT= shujit
.else
JAVAJIT=
.endif
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>