misc/compat14x: Add COMPAT32 option
PR: 287699
This commit is contained in:
+14
-4
@@ -1,12 +1,13 @@
|
||||
PORTNAME= compat14x
|
||||
PORTVERSION= 14.2.1402000.20250430
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= LOCAL/arrowd
|
||||
PKGNAMESUFFIX= -${ARCH}
|
||||
DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= arrowd@FreeBSD.org
|
||||
COMMENT= Convenience package to install the compat13x libraries
|
||||
COMMENT= Convenience package to install the compat14x libraries
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
@@ -18,22 +19,31 @@ TARGET_DIR= ${PREFIX}/lib/compat
|
||||
TARGET32_DIR= ${PREFIX}/lib32/compat
|
||||
USE_LDCONFIG= ${TARGET_DIR}
|
||||
|
||||
OPTIONS_DEFINE= COMPAT32
|
||||
OPTIONS_DEFAULT=COMPAT32
|
||||
OPTIONS_EXCLUDE_aarch64=COMPAT32
|
||||
OPTIONS_EXCLUDE_i386=COMPAT32
|
||||
COMPAT32_DESC= Install 32-bit compat libraries
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSREL:R} < 14
|
||||
IGNORE= is for FreeBSD 14.x and newer
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == amd64
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MCOMPAT32}
|
||||
USE_LDCONFIG32= ${TARGET32_DIR}
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} -m 0755 ${STAGEDIR}${TARGET_DIR}
|
||||
(cd ${WRKSRC}/lib && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET_DIR})
|
||||
.if ${ARCH} == amd64
|
||||
|
||||
do-install-COMPAT32-on:
|
||||
@${MKDIR} ${STAGEDIR}${TARGET32_DIR}
|
||||
(cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
lib/compat/libmd.so.6
|
||||
lib32/compat/libmd.so.6
|
||||
%%COMPAT32%%lib32/compat/libmd.so.6
|
||||
|
||||
Reference in New Issue
Block a user