openbsd-ports/print/acroread/Makefile

48 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.27 2005/08/20 09:02:16 sturm Exp $
ONLY_FOR_ARCHS= i386
1998-06-07 22:36:00 -04:00
COMMENT= "view, distribute and print PDF documents"
2005-04-17 03:18:53 -04:00
COMMENT-plugins="further plugins for acrobat reader"
V= 7.0.1
DISTNAME= AdbeRdr701_linux_enu
2005-04-17 03:18:53 -04:00
PKGNAME= acroread-${V}
PKGNAME-plugins=acroread-plugins-${V}
1998-06-07 22:36:00 -04:00
CATEGORIES= print
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
1998-06-07 22:36:00 -04:00
2000-03-22 23:12:04 -05:00
PERMIT_PACKAGE_CDROM= "commercial software"
PERMIT_PACKAGE_FTP= "commercial software"
PERMIT_DISTFILES_CDROM= "commercial software"
2002-06-22 09:45:36 -04:00
PERMIT_DISTFILES_FTP= "Adobe are control freaks"
2000-03-22 23:12:04 -05:00
2005-04-17 03:18:53 -04:00
MULTI_PACKAGES= -plugins
SUBPACKAGE?=
2005-04-17 03:18:53 -04:00
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/
1998-06-07 22:36:00 -04:00
2005-04-17 03:18:53 -04:00
RUN_DEPENDS= :redhat_base->8.0p4:emulators/redhat/base
.if defined(PACKAGING) && ${SUBPACKAGE} == "-plugins"
RUN_DEPENDS+= :${PKGNAME}:print/acroread
.endif
WRKDIST= ${WRKDIR}/AdobeReader
NO_BUILD= Yes
NO_REGRESS= Yes
1998-06-07 22:36:00 -04:00
do-install:
2005-04-17 03:18:53 -04:00
@${INSTALL_DATA_DIR} ${PREFIX}/Acrobat7
@ReadInstallDir=${PREFIX}/Acrobat7 ${WRKSRC}/INSTALL
1998-06-07 22:36:00 -04:00
post-install:
2005-04-17 03:18:53 -04:00
@cd ${PREFIX}/Acrobat7/bin && \
patch --quiet < ${FILESDIR}/acroread.diff && \
2005-04-17 03:18:53 -04:00
perl -pi -e "s,%%TRUEPREFIX%%,${TRUEPREFIX}," acroread && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat7/bin/acroread \
${PREFIX}/bin/acroread && rm acroread.orig
1998-06-07 22:36:00 -04:00
.include <bsd.port.mk>