summaryrefslogtreecommitdiff
path: root/misc/compat14x/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/compat14x/Makefile')
-rw-r--r--misc/compat14x/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/misc/compat14x/Makefile b/misc/compat14x/Makefile
new file mode 100644
index 000000000000..8b25f38d7f4a
--- /dev/null
+++ b/misc/compat14x/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= compat14x
+PORTVERSION= 14.2.1402000.20250430
+CATEGORIES= misc
+MASTER_SITES= LOCAL/arrowd
+PKGNAMESUFFIX= -${ARCH}
+DISTNAME= ${PORTNAME}-${ARCH}-${PORTVERSION}
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Convenience package to install the compat13x libraries
+
+LICENSE= BSD2CLAUSE
+
+USES= tar:xz
+NO_BUILD= yes
+ONLY_FOR_ARCHS= aarch64 amd64 i386
+PLIST= ${PKGDIR}/pkg-plist.${ARCH}
+TARGET_DIR= ${PREFIX}/lib/compat
+TARGET32_DIR= ${PREFIX}/lib32/compat
+USE_LDCONFIG= ${TARGET_DIR}
+
+.include <bsd.port.pre.mk>
+
+.if ${OSREL:R} < 14
+IGNORE= is for FreeBSD 14.x and newer
+.endif
+
+.if ${ARCH} == amd64
+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
+ @${MKDIR} ${STAGEDIR}${TARGET32_DIR}
+ (cd ${WRKSRC}/lib32 && ${INSTALL_LIB} *.so.* ${STAGEDIR}${TARGET32_DIR})
+.endif
+
+.include <bsd.port.post.mk>