aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2007-06-09 12:44:02 +0000
committerHiroki Sato <hrs@FreeBSD.org>2007-06-09 12:44:02 +0000
commit9839ed46e71f3edb16a8eabd4a469b6e8e3fad9c (patch)
tree84396fd017e86f0768c5fcfeb2b471c31176c009 /print
parent01240536d2a3f68f6c88e547fc7a84b839fd50f0 (diff)
downloadports-9839ed46e71f3edb16a8eabd4a469b6e8e3fad9c.tar.gz
ports-9839ed46e71f3edb16a8eabd4a469b6e8e3fad9c.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/acroreadwrapper/Makefile4
-rw-r--r--print/acroreadwrapper/files/acroread.in12
2 files changed, 8 insertions, 8 deletions
diff --git a/print/acroreadwrapper/Makefile b/print/acroreadwrapper/Makefile
index db813c7c448c..8e854fd627ac 100644
--- a/print/acroreadwrapper/Makefile
+++ b/print/acroreadwrapper/Makefile
@@ -21,14 +21,14 @@ NO_BUILD= yes
PLIST_SUB= ACROBASE=${ACROBASE} \
ADOBEBASE=${ADOBEBASE}
SUB_FILES= acroread
-SUB_LIST= ACRODIR=${ACRODIR} \
+SUB_LIST= ACROBASE=${ACROBASE} \
ADOBE_LANG=${ADOBE_LANG:U} \
INSTALLDIR=${INSTALLDIR} \
LINUXBASE=${LINUXBASE} \
PLUGINDIR=${PLUGINDIR}
ADOBEBASE= Adobe
-ACROBASE= ${ADOBEDIR}/Acrobat7.0
+ACROBASE= ${ADOBEBASE}/Acrobat7.0
PLUGINDIR= lib/browser_linux_plugins
do-fetch:
diff --git a/print/acroreadwrapper/files/acroread.in b/print/acroreadwrapper/files/acroread.in
index 73dc120fd770..e49259c66710 100644
--- a/print/acroreadwrapper/files/acroread.in
+++ b/print/acroreadwrapper/files/acroread.in
@@ -57,9 +57,9 @@ esac
case $1 in
--install-plugin)
echo "installing PDF plugin..."
- echo "%%PREFIX%%/%%ACRODIR%%/${ADOBE_LANG}/Browser/intellinux/nppdf.so -> %%PREFIX%%/%%PLUGINDIR%%/nppdf.so"
+ echo "%%PREFIX%%/%%ACROBASE%%/${ADOBE_LANG}/Browser/intellinux/nppdf.so -> %%PREFIX%%/%%PLUGINDIR%%/nppdf.so"
mkdir -p /../%%PREFIX%%/%%PLUGINDIR%%
- ln -s -f %%PREFIX%%/%%ACRODIR%%/${ADOBE_LANG}/Browser/intellinux/nppdf.so \
+ ln -s -f %%PREFIX%%/%%ACROBASE%%/${ADOBE_LANG}/Browser/intellinux/nppdf.so \
/../%%PREFIX%%/%%PLUGINDIR%%/nppdf.so
exit 0
;;
@@ -72,10 +72,10 @@ case $1 in
esac
UNAME_s=Linux; export UNAME_s
-if [ -x %%PREFIX%%/%%ACRODIR%%/${ADOBE_LANG}/bin/acroread ]; then
- exec %%PREFIX%%/%%ACRODIR%%/${ADOBE_LANG}/bin/acroread "$@"
-elif [ -x %%PREFIX%%/%%ACRODIR%%/ENU/bin/acroread ]; then
- exec %%PREFIX%%/%%ACRODIR%%/ENU/bin/acroread "$@"
+if [ -x %%PREFIX%%/%%ACROBASE%%/${ADOBE_LANG}/bin/acroread ]; then
+ exec %%PREFIX%%/%%ACROBASE%%/${ADOBE_LANG}/bin/acroread "$@"
+elif [ -x %%PREFIX%%/%%ACROBASE%%/ENU/bin/acroread ]; then
+ exec %%PREFIX%%/%%ACROBASE%%/ENU/bin/acroread "$@"
else
echo "!fatal: acroread binary not found."
exit 1