blob: de563a90426df47e50e37e2c2fbc6459486f45cc (
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
|
# New ports collection makefile for: acroread
# Date created: 16 November 1996
# Whom: Thomas Gellekum <tg@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= acroread
PORTVERSION= 5.05
CATEGORIES= print linux
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
DISTNAME= linux-505
.endif
MAINTAINER= trevor@FreeBSD.org
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
NO_FILTER_SHLIBS= yes
.if ${ARCH} == "i386"
PLIST_SUB= "ARCHDIR=intellinux"
.endif
WRKSRC= ${WRKDIR}
pre-configure:
@${PERL} -pi.fbsd -e 's:Linux\):FreeBSD|Linux):g' ${WRKDIR}/INSTALL
do-build:
@${ECHO_MSG} "Do a \`make install' as root."
do-install:
@${MKDIR} ${PREFIX}/Acrobat5
@ReadInstallDir=${PREFIX}/Acrobat5 ${WRKDIR}/INSTALL
post-install:
@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat5/bin/acroread
-@/compat/linux/usr/bin/strip ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
@brandelf -t Linux ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat5/bin/acroread
@cd ${PREFIX}/Acrobat5/bin && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat5/bin/acroread \
${PREFIX}/bin/acroread5
@${CHOWN} -R -h root:wheel ${PREFIX}/Acrobat5
@${CHMOD} +x ${PREFIX}/bin/acroread5
[ -e ${PREFIX}/bin/acroread ] \
|| (cd ${PREFIX}/bin ; ${LN} -s acroread5 acroread)
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat5/Reader/license.txt"
.include <bsd.port.post.mk>
|