summaryrefslogtreecommitdiff
path: root/misc/compat15x/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/compat15x/Makefile')
-rw-r--r--misc/compat15x/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/misc/compat15x/Makefile b/misc/compat15x/Makefile
new file mode 100644
index 000000000000..65ce7d37ca21
--- /dev/null
+++ b/misc/compat15x/Makefile
@@ -0,0 +1,55 @@
+PORTNAME= compat15x
+PORTVERSION= 15.0.1500068.20251213
+CATEGORIES= misc
+MASTER_SITES= LOCAL/arrowd
+PKGNAMESUFFIX= -${ARCH}
+DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Convenience package to install the compat15x libraries
+
+LICENSE= BSD2CLAUSE
+
+USES= tar:xz
+NO_BUILD= yes
+ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
+PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+TARGET_DIR= ${PREFIX}/lib/compat
+TARGET32_DIR= ${PREFIX}/lib32/compat
+USE_LDCONFIG= ${TARGET_DIR}
+
+COMPAT_LIBS= libtpool.so.2 \
+ libuutil.so.2
+
+OPTIONS_DEFINE= COMPAT32
+OPTIONS_DEFAULT=COMPAT32
+OPTIONS_EXCLUDE_aarch64=COMPAT32
+OPTIONS_EXCLUDE_i386=COMPAT32
+OPTIONS_EXCLUDE_powerpc=COMPAT32
+OPTIONS_EXCLUDE_powerpc64le=COMPAT32
+COMPAT32_DESC= Install 32-bit compat libraries
+OPTIONS_SUB= yes
+
+.include "${.CURDIR}/../compat4x/Makefile.makedist"
+
+.include <bsd.port.pre.mk>
+
+.if ${OSREL:R} < 15
+IGNORE= is for FreeBSD 15.x and newer
+.endif
+
+.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})
+
+do-install-COMPAT32-on:
+ @${MKDIR} ${STAGEDIR}${TARGET32_DIR}
+ (cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
+
+.include <bsd.port.post.mk>