pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gcc10-libjit: install libraries and header files, improve buildlink3.mk



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Wed Apr 5 22:05:04 2023 +0200
Changeset:	c0d5879629043814b27701bd53ef6bb1f74a84c1

Modified Files:
	gcc10-libjit/Makefile
	gcc10-libjit/PLIST
	gcc10-libjit/buildlink3.mk

Log Message:
gcc10-libjit: install libraries and header files, improve buildlink3.mk

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c0d5879629043814b27701bd53ef6bb1f74a84c1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gcc10-libjit/Makefile      | 6 +++---
 gcc10-libjit/PLIST         | 9 ++++++---
 gcc10-libjit/buildlink3.mk | 4 ++++
 3 files changed, 13 insertions(+), 6 deletions(-)

diffs:
diff --git a/gcc10-libjit/Makefile b/gcc10-libjit/Makefile
index c325006347..18e836bba5 100644
--- a/gcc10-libjit/Makefile
+++ b/gcc10-libjit/Makefile
@@ -87,12 +87,12 @@ MAKE_FLAGS+=		CXXFLAGS=${CXXFLAGS:Q}
 
 BUILD_TARGET=		all-gcc
 
+INSTALL_DIRS=		${WRKSRC}/${OBJDIR}/gcc
+INSTALL_TARGET=		jit.install-common jit.install-info
+
 pre-configure:
 	${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
 
-do-install:
-	${INSTALL_LIB} ${WRKSRC}/${OBJDIR}/gcc/libgccjit.so* ${DESTDIR}${PREFIX}/lib
-
 CHECK_BUILTIN.zlib:= yes
 .include "../../devel/zlib/builtin.mk"
 CHECK_BUILTIN.zlib:= no
diff --git a/gcc10-libjit/PLIST b/gcc10-libjit/PLIST
index 36a05aee98..8b891794f9 100644
--- a/gcc10-libjit/PLIST
+++ b/gcc10-libjit/PLIST
@@ -1,4 +1,7 @@
 @comment $NetBSD$
-lib/libgccjit.so
-lib/libgccjit.so.0
-lib/libgccjit.so.0.0.1
+gcc10/include/libgccjit++.h
+gcc10/include/libgccjit.h
+gcc10/info/libgccjit.info
+gcc10/lib/libgccjit.so
+gcc10/lib/libgccjit.so.0
+gcc10/lib/libgccjit.so.0.0.1
diff --git a/gcc10-libjit/buildlink3.mk b/gcc10-libjit/buildlink3.mk
index a636ec6fa0..95c6919f8f 100644
--- a/gcc10-libjit/buildlink3.mk
+++ b/gcc10-libjit/buildlink3.mk
@@ -7,6 +7,10 @@ GCC10_LIBJIT_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.gcc10-libjit+=	gcc10-libjit>=10.4.0
 BUILDLINK_PKGSRCDIR.gcc10-libjit?=	../../wip/gcc10-libjit
+
+BUILDLINK_PASSTHRU_DIRS+=			${BUILDLINK_PREFIX.gcc10-libjit}/gcc10
+BUILDLINK_FNAME_TRANSFORM.gcc10-libjit+=	-e s,gcc10/lib,lib,
+BUILDLINK_FNAME_TRANSFORM.gcc10-libjit+=	-e s,gcc10/include,include,
 .endif	# GCC10_LIBJIT_BUILDLINK3_MK
 
 BUILDLINK_TREE+=	-gcc10-libjit


Home | Main Index | Thread Index | Old Index