aboutsummaryrefslogtreecommitdiffstats
path: root/print/acroread5
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>1998-11-20 18:26:12 +0800
committertg <tg@FreeBSD.org>1998-11-20 18:26:12 +0800
commitc975c4d85a08be418de36098137c3813d9215691 (patch)
tree1f62c2139a575ccc27e792c2c4ec8802ffce2be5 /print/acroread5
parentf87ea5235b5165ef8f488aa61c427fc4f1b5a847 (diff)
downloadfreebsd-ports-gnome-c975c4d85a08be418de36098137c3813d9215691.tar.gz
freebsd-ports-gnome-c975c4d85a08be418de36098137c3813d9215691.tar.zst
freebsd-ports-gnome-c975c4d85a08be418de36098137c3813d9215691.zip
Set LC_CTYPE=C to prevent coredumps in multibyte locales.
Submitted by: CHOI Junho <junker@jazz.snu.ac.kr>
Diffstat (limited to 'print/acroread5')
-rw-r--r--print/acroread5/Makefile11
-rw-r--r--print/acroread5/files/acroread.diff20
2 files changed, 27 insertions, 4 deletions
diff --git a/print/acroread5/Makefile b/print/acroread5/Makefile
index a19e547aa38b..e29f680b2529 100644
--- a/print/acroread5/Makefile
+++ b/print/acroread5/Makefile
@@ -3,7 +3,7 @@
# Date created: 16 November 1996
# Whom: Thomas Gellekum <tg@freebsd.org>
#
-# $Id: Makefile,v 1.6 1998/10/12 12:26:42 jseger Exp $
+# $Id: Makefile,v 1.7 1998/10/13 02:46:56 jseger Exp $
#
DISTNAME= ar302lin
@@ -15,10 +15,10 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= tg@FreeBSD.ORG
-NO_FILTER_SHLIBS= yes
-
RUN_DEPENDS= /compat/linux/lib/libc.so.5:${PORTSDIR}/emulators/linux_lib
+NO_FILTER_SHLIBS= yes
+
WRKSRC= ${WRKDIR}/ILINXR.install
do-build:
@@ -29,7 +29,10 @@ do-install:
@ReadInstallDir=${PREFIX}/Acrobat3 ${WRKSRC}/INSTALL
post-install:
- @sed -e 's/Linux)/FreeBSD\|Linux)/' <${PREFIX}/Acrobat3/bin/acroread >${PREFIX}/bin/acroread
+ @cd ${PREFIX}/Acrobat3/bin && \
+ ${PATCH} --quiet < ${FILESDIR}/acroread.diff && \
+ ${INSTALL_SCRIPT} ${PREFIX}/Acrobat3/bin/acroread ${PREFIX}/bin && \
+ ${RM} acroread.orig
@chmod +x ${PREFIX}/bin/acroread
@${ECHO_MSG} "Be sure to read the license agreement in"
@${ECHO_MSG} "${PREFIX}/Acrobat3/Reader/License.pdf"
diff --git a/print/acroread5/files/acroread.diff b/print/acroread5/files/acroread.diff
new file mode 100644
index 000000000000..7da09ec4606a
--- /dev/null
+++ b/print/acroread5/files/acroread.diff
@@ -0,0 +1,20 @@
+--- acroread.orig Fri Nov 20 17:44:30 1998
++++ acroread Fri Nov 20 17:45:11 1998
+@@ -205,7 +205,7 @@
+ ACRO_CONFIG=intelbsdi
+ export ACRO_CONFIG
+ ;;
+- Linux)
++ FreeBSD|Linux)
+ ACRO_CONFIG=intellinux
+ export ACRO_CONFIG
+ ;;
+@@ -309,6 +309,8 @@
+ intellinux)
+ LD_LIBRARY_PATH="`prepend "$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib:$ACRO_INSTALL_DIR/$ACRO_CONFIG/lib" "$LD_LIBRARY_PATH"`"
+ export LD_LIBRARY_PATH
++ LC_CTYPE="C"
++ export LC_CTYPE
+ ;;
+ intelbsdi)
+ ;;