c40258cb28
Adobe Reader is part of the Adobe Acrobat family of software, which lets you view, distribute, and print documents in Portable Document Format (PDF)--regardless of the computer, operating system, fonts, or application used to create the original file. PDF files retain all the formatting, fonts, and graphics of the original document, and virtually any PostScript(TM) document can be converted into a PDF file.
69 lines
2 KiB
Makefile
69 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2008/04/06 01:43:32 toshii Exp $
|
|
|
|
DISTNAME= acroread8 # overridden below
|
|
PKGNAME= acroread8-8.1.2
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.2/enu/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.adobe.com/products/acrobat/readstep2.html
|
|
COMMENT= View, distribute and print PDF documents
|
|
|
|
CONFLICTS+= acroread-5.*
|
|
# conflict with acroread5 due to bin/acroread
|
|
# maybe should do ALTERNATIVES?
|
|
CONFLICTS+= acroread5-5.*
|
|
CONFLICTS+= acroread7-7.*
|
|
|
|
RESTRICTED= Original installer required to redistribute.
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
LICENSE= adobe-acrobat-license
|
|
|
|
WRKSRC= ${WRKDIR}/AdobeReader
|
|
BUILD_DIRS= # empty
|
|
|
|
EMUL_PLATFORMS= linux-i386
|
|
EMUL_MODULES.linux= compat cups gtk2 locale
|
|
EMUL_REQD= suse>=10.0
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${EMUL_PLATFORM} == "linux-i386"
|
|
DISTNAME= AdobeReader_enu-8.1.2-1.i486
|
|
PLATFORM= intellinux
|
|
.else
|
|
PLATFORM= unknown
|
|
.endif
|
|
|
|
PLIST_SUBST+= PLATFORM=${PLATFORM:Q}
|
|
|
|
BIN_PATCH= ${PATCH} --quiet ${_PATCH_BACKUP_ARG} .orig
|
|
|
|
# Additional directories to search for fonts
|
|
BUILD_DEFS+= ACROREAD_FONTPATH
|
|
ACROREAD_FONTPATH?= ${PREFIX}/lib/X11/fonts/TTF
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
do-install:
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/Acrobat8
|
|
@( ${ECHO} n; ${ECHO} n ) | InstallDir=${PREFIX}/Acrobat8 ${WRKSRC}/INSTALL
|
|
|
|
post-install:
|
|
@cd ${PREFIX}/Acrobat8/Adobe/Reader8/bin && \
|
|
${BIN_PATCH} <${FILESDIR}/acroread.diff && \
|
|
${SED} -e 's:@PREFIX@:${PREFIX}:' \
|
|
-e 's|@ACROREAD_FONTPATH@|${ACROREAD_FONTPATH}|' \
|
|
<acroread >acroread.tmp && \
|
|
${MV} acroread.tmp acroread && \
|
|
${LN} -sf ${PREFIX}/Acrobat8/Adobe/Reader8/bin/acroread \
|
|
${PREFIX}/bin/acroread8 && ${RM} -f acroread.orig acroread.tmp
|
|
${CHMOD} +x ${PREFIX}/bin/acroread8
|
|
@${ECHO_MSG} "Be sure to read the license agreement in"
|
|
@${ECHO_MSG} "${PREFIX}/Acrobat8/Reader/Legal/ENU/License.html"
|
|
${LN} -sf ${PREFIX}/bin/acroread8 ${PREFIX}/bin/acroread
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|