aboutsummaryrefslogtreecommitdiffstats
path: root/print/acroreadwrapper/Makefile
blob: fb7782fe6b37bf77497bcc4b8dd4f4a161e106af (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
# Created by: hrs
# $FreeBSD$

PORTNAME=   acroreadwrapper
PORTVERSION=    0.0.20130208
CATEGORIES= print
MASTER_SITES=   http://people.allbsd.org/~hrs/FreeBSD/
DISTNAME=   linux_adobe_kmod-${PORTVERSION:E}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Wrapper for Adobe Reader

LICENSE=    BSD2CLAUSE

USES=       kmod uidfix

RUN_DEPENDS=    ${LOCALBASE}/lib/linux-libgtkembedmoz/libgtkembedmoz.so:${PORTSDIR}/www/linux-libgtkembedmoz

ONLY_FOR_ARCHS= amd64 i386
PLIST_FILES=    bin/acroread8 bin/acroread9 bin/acroread \
        ${RELKMODDIR}/linux_adobe.ko
PLIST_DIRS= ${RELKMODDIR}
SUB_FILES=  acroread
SUB_LIST=   ACROBASE8=${ACROBASE8} \
        ACROBASE9=${ACROBASE9} \
        ADOBE_LANG=${ADOBE_LANG:U} \
        INSTALLDIR=${INSTALLDIR} \
        LINUXBASE=${LINUXBASE} \
        LINUXSH=${LINUXBASE}/bin/sh \
        PLUGINDIR=${PLUGINDIR} \
        KMODDIR=${RELKMODDIR}
USE_RC_SUBR=    linux_adobe

MAKE_ENV=   DESTDIR=${PREFIX}/

ADOBEBASE=  Adobe
ACROBASE8=  ${ADOBEBASE}/Reader8
ACROBASE9=  ${ADOBEBASE}/Reader9
PLUGINDIR=  lib/npapi/linux-acroread
KMODDIR=    ${PREFIX}/libexec/linux_adobe
RELKMODDIR= libexec/linux_adobe

post-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/acroread ${STAGEDIR}${PREFIX}/bin/acroread
    cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s -f acroread acroread8
    cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s -f acroread acroread9

.include <bsd.port.mk>