aboutsummaryrefslogtreecommitdiffstats
path: root/misc/compat4x/Makefile
diff options
context:
space:
mode:
authorlesi <lesi@FreeBSD.org>2005-12-08 10:14:30 +0800
committerlesi <lesi@FreeBSD.org>2005-12-08 10:14:30 +0800
commit1f9dff9fec0735ba99984fb584e7837decebaafe (patch)
treea3403b6d437c33630067e5083861f470e3321e05 /misc/compat4x/Makefile
parent744a5f4e33e573d131086b4932b7962d3a194086 (diff)
downloadfreebsd-ports-gnome-1f9dff9fec0735ba99984fb584e7837decebaafe.tar.gz
freebsd-ports-gnome-1f9dff9fec0735ba99984fb584e7837decebaafe.tar.zst
freebsd-ports-gnome-1f9dff9fec0735ba99984fb584e7837decebaafe.zip
Add support for installing i386 4.x libraries on the amd64 architecture.
PR: ports/87525 Submitted by: Simun Mikecin (numisemis at yahoo dot com)
Diffstat (limited to 'misc/compat4x/Makefile')
-rw-r--r--misc/compat4x/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/misc/compat4x/Makefile b/misc/compat4x/Makefile
index d29fe17aa65b..b647e2364af6 100644
--- a/misc/compat4x/Makefile
+++ b/misc/compat4x/Makefile
@@ -35,9 +35,17 @@ RUN_DEPENDS= ${LOCALBASE}/share/compat/locale/UTF-8/LC_CTYPE:${PORTSDIR}/misc/l
COMPAT4X_OSVERSION= 5.3
PLIST= ${.CURDIR}/pkg-plist.freebsd5
.if ${ARCH} == i386
+PLIST_SUB+= LIBDIR="lib"
+COMPAT4X_DISTFILES= ${PORTNAME}.aa \
+ ${PORTNAME}.ab
+.elif ${ARCH} == amd64
+ARCH= i386
+TARGET_DIR= ${PREFIX}/lib32/compat
+PLIST_SUB+= LIBDIR="lib32"
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab
.elif ${ARCH} == alpha
+PLIST_SUB+= LIBDIR="lib"
COMPAT4X_DISTFILES= ${PORTNAME}.aa \
${PORTNAME}.ab
.else
@@ -66,6 +74,12 @@ PLIST_SUB+= I386_ONLY=""
.else
PLIST_SUB+= I386_ONLY="@comment "
.endif
+.if ${ARCH} == amd64
+PLIST_SUB+= AMD64_ONLY=""
+PLIST_SUB+= LDCONFIG_LIB32="${LDCONFIG} -32"
+.else
+PLIST_SUB+= AMD64_ONLY="@comment "
+.endif
OPENSSL_LIBS= libcrypto.so.1 libcrypto.so.2 libssl.so.1 libssl.so.2
.if defined(FORCE_VULNERABLE_OPENSSL)
@@ -109,6 +123,9 @@ do-extract:
do-build:
@( ${ECHO_CMD} '#!/bin/sh'; ${ECHO_CMD} '${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
) > ${WRKDIR}/000.${PORTNAME}.sh
+.if ${TARGET_DIR} == ${PREFIX}/lib32/compat
+ @${ECHO_CMD} '${LDCONFIG} -32 -m ${TARGET_DIR}' >> ${WRKDIR}/000.${PORTNAME}.sh
+.endif
do-install:
${MKDIR} ${TARGET_DIR} ${PREFIX}/etc/rc.d
@@ -118,6 +135,9 @@ do-install:
${LN} -sf ${lib}.compat4x ${TARGET_DIR}/${lib}
.endfor
.endif
+.if ${ARCH} == amd64
+ ${LDCONFIG} -32 -m ${TARGET32_DIR}
+.endif
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/
post-install: