aboutsummaryrefslogtreecommitdiffstats
path: root/print/acroread8/Makefile
blob: a1cb11eb1f395b9d5dfc60b3ecc6d9fe435fbb18 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
# New ports collection makefile for:    acroread8
# Date created:     20 October 2007
# Whom:         hrs
#
# $FreeBSD$
#

PORTNAME=   acroread8
PORTVERSION?=   8.1.1
CATEGORIES?=    print linux
MASTER_SITES?=  http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PORTVERSION}/${ADOBE_LANG:L}/ \
        ftp://ftp.adobe.com/pub/adobe/reader/unix/8.x/${PORTVERSION}/${ADOBE_LANG:L}/
DISTNAME=   AdobeReader_${ADOBE_LANG:L}-${PORTVERSION}-1.i486
DIST_SUBDIR=    acroread

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Adobe Reader for view, print, and search PDF documents (${ADOBE_LANG})

RUN_DEPENDS=    acroreadwrapper>=0.0.20071020:${PORTSDIR}/print/acroreadwrapper \
        ${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \
        ${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango \
        ${LOCALBASE}/lib/linux-nvu/libgtkembedmoz.so:${PORTSDIR}/www/linux-nvu

RESTRICTED= Must fill out redistribution form at http://www.adobe.com/products/acrobat/distribute.html
ONLY_FOR_ARCHS= amd64 i386
USE_LINUX=  yes
USE_X_PREFIX=   yes
#USE_GNOME= desktopfileutils
NO_BUILD=   yes
PLIST_SUB=  ACRODIR=${ACRODIR} \
        ACROBASE=${ACROBASE} \
        ADOBEBASE=${ADOBEBASE} \
        PLUGINDIR=${PLUGINDIR} \
        ADOBE_LANG=${ADOBE_LANG:U} \
        LOCALE_NAME=${LOCALE_NAME}
SUB_FILES=  ln mv rm pkg-message
SUB_LIST=   ADOBE_LANG=${ADOBE_LANG:U}
PKGMESSAGE= ${WRKDIR}/pkg-message
WRKSRC=     ${WRKDIR}/AdobeReader

LANGCODE=   chs:zh_CN cht:zh_TW dan:da_DK deu:de_DE enu:en_US \
        esp:es_ES fra:fr_FR ita:it_IT jpn:ja_JP kor:ko_KR \
        nld:nl_NL nor:nb_NO ptb:pt_BR suo:fi_FI sve:sv_SE

ADOBE_LANG?=    ENU
.for L in ${ADOBE_LANG:L}
LOCALE_NAME=    ${LANGCODE:M${L}\:*:C/.*\://}
LANG_${L:U}=    ""
LANG_NON${L:U}= "@comment "
.endfor
.for L in ${LANGCODE:C/\:.*//:U}
LANG_${L}?= "@comment "
LANG_NON${L}?=  ""
PLIST_SUB+= LANG_${L}=${LANG_${L}}
PLIST_SUB+= LANG_NON${L}=${LANG_NON${L}}
.endfor

ADOBEBASE=  Adobe
ACROBASE=   ${ADOBEBASE}/Reader8
ACRODIR=    ${ACROBASE}/${ADOBE_LANG:U}
PLUGINDIR=  lib/browser_linux_plugins
INSTALLDIR= ${PREFIX}/${ACRODIR}
INSTALLEXEC=    ${SETENV} UNAME_s=Linux \
            InstallDir=${INSTALLDIR} \
            UNAME_r="Linux Compatibility on FreeBSD" \
            ${SH} ./INSTALL --install_path=${INSTALLDIR} > /dev/null

pre-install:
    @${MKDIR} ${WRKDIR}/bin
    @${INSTALL_SCRIPT} \
        ${WRKDIR}/ln ${WRKDIR}/rm ${WRKDIR}/mv \
        ${WRKDIR}/bin
do-install:
    @${ECHO_CMD} Installing...
    @${MKDIR} ${INSTALLDIR}
    @cd ${WRKSRC} && ${SETENV} PATH=${WRKDIR}/bin:${PATH} ${INSTALLEXEC} > /dev/null

.if ${ADOBE_LANG:U} != ENU
post-install:
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>