pkgsrc-WIP-changes archive

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

Import gcc46-libs-4.6.4nb6 as wip/gcc46-libs.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Dec 22 15:00:58 2016 +0100
Changeset:	38d3b597cf968652a795e33e25a90066cf2f69d3

Added Files:
	gcc46-libs/DESCR
	gcc46-libs/Makefile
	gcc46-libs/buildlink3.mk

Log Message:
Import gcc46-libs-4.6.4nb6 as wip/gcc46-libs.

The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, and Go, as well as libraries for these languages (libstdc++,
libgfortran, ...).

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

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

diffstat:
 gcc46-libs/DESCR         |  3 +++
 gcc46-libs/Makefile      | 63 ++++++++++++++++++++++++++++++++++++++++++++++++
 gcc46-libs/buildlink3.mk | 46 +++++++++++++++++++++++++++++++++++
 3 files changed, 112 insertions(+)

diffs:
diff --git a/gcc46-libs/DESCR b/gcc46-libs/DESCR
new file mode 100644
index 0000000..6739606
--- /dev/null
+++ b/gcc46-libs/DESCR
@@ -0,0 +1,3 @@
+The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
+Fortran, and Go, as well as libraries for these languages (libstdc++,
+libgfortran, ...).
diff --git a/gcc46-libs/Makefile b/gcc46-libs/Makefile
new file mode 100644
index 0000000..767d662
--- /dev/null
+++ b/gcc46-libs/Makefile
@@ -0,0 +1,63 @@
+# $NetBSD: Makefile,v 1.3 2016/09/06 14:01:20 maya Exp $
+
+GCC_PKGNAME=	gcc46
+GCC46_DIST_VERSION:=	4.6.4
+
+DISTNAME=	gcc-${GCC46_DIST_VERSION}
+PKGNAME=	${GCC_PKGNAME}-libs-${GCC46_DIST_VERSION}
+## The PKGREVISION of this package needs to be at least 1 more than the
+## PKGREVISION of the lang/gcc46 package so that with the dependence pattern
+## '{gcc46,gcc46-libs}>=4.6.*' pkg_all will choose gcc46-libs over gcc46.
+PKGREVISION=	6
+CATEGORIES=	lang
+MASTER_SITES=	# empty
+DISTFILES=	# empty
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://gcc.gnu.org/
+COMMENT=	The GNU Compiler Collection (GCC) support shared libraries
+LICENSE=	gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
+
+USE_TOOLS+=	pax
+
+NO_BUILD=		yes
+
+## Depend on exactly ${GCC46_DIST_VERSION}.
+BUILD_DEPENDS+=		${GCC_PKGNAME}-${GCC46_DIST_VERSION}{,nb[0-9]*}:../../lang/gcc46
+
+.include "../../mk/bsd.prefs.mk"
+
+LIBGCC_SUBPREFIX=	${GCC_PKGNAME}
+LIBGCC_PREFIX=		${LOCALBASE}/${LIBGCC_SUBPREFIX}
+GCC_TARGET_MACHINE?=	${MACHINE_GNU_PLATFORM}
+BUILD_DEFS+=		GCC_TARGET_MACHINE
+
+.include "../../mk/bsd.prefs.mk"
+.if ${_OPSYS_SHLIB_TYPE} == "dylib"
+SHLIB_EXT=	dylib
+.else
+SHLIB_EXT=	so
+.endif
+
+LIBRARY_FILES=	${WRKDIR}/lib_files
+
+GENERATE_PLIST+= ${SED} -e 's,^,${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/,' \
+			${LIBRARY_FILES};
+GENERATE_PLIST+= ${GREP} -q 'lib/' ${LIBRARY_FILES} || \
+	   ${ECHO} '@pkgdir ${LIBGCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/lib' ;
+
+${LIBRARY_FILES}:
+	${PKG_INFO} -qL '${GCC_PKGNAME}-${GCC46_DIST_VERSION}*' |		\
+	${SED} -n -e's,^${LIBGCC_PREFIX}/,,' -e'/libexec\//d'		\
+		-e'/libgij/d;/libgcj/d;/libjvm/d'			\
+		-e'/lib.*\.${SHLIB_EXT}/p' 		>${LIBRARY_FILES}
+
+do-install: ${LIBRARY_FILES}
+	${TEST} -d ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib ||	\
+		${MKDIR} ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib
+	cd ${LIBGCC_PREFIX} && 						\
+	  ${PAX} -rw ${DESTDIR}${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE} <${LIBRARY_FILES}
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/gcc46-libs/buildlink3.mk b/gcc46-libs/buildlink3.mk
new file mode 100644
index 0000000..a5e775f
--- /dev/null
+++ b/gcc46-libs/buildlink3.mk
@@ -0,0 +1,46 @@
+# $NetBSD: buildlink3.mk,v 1.2 2015/02/04 14:16:23 jperkin Exp $
+
+BUILDLINK_TREE+=	gcc46-libs
+
+.if !defined(GCC46_LIBS_BUILDLINK3_MK)
+GCC46_LIBS_BUILDLINK3_MK:=
+
+.if !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
+BUILDLINK_API_DEPENDS.gcc46-libs+=	gcc46-libs>=4.6.0
+.else
+BUILDLINK_API_DEPENDS.gcc46-libs+=	{gcc46,gcc46-libs}>=4.6.0
+.endif
+BUILDLINK_PKGSRCDIR.gcc46-libs=		../../lang/gcc46-libs
+BUILDLINK_DEPMETHOD.gcc46-libs?=	full
+
+BUILDLINK_PASSTHRU_DIRS+=	${BUILDLINK_PREFIX.gcc46-libs}/gcc46
+
+BUILDLINK_FILES.gcc46-libs=	#empty
+BUILDLINK_AUTO_VARS.gcc46-libs=	no
+
+.if !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
+# Use custom specs file to ensure we link against pkgsrc libraries.
+SPECS_LIBGCC=		${WRAPPER_DIR}/specs.libgcc
+WRAPPER_TARGETS+=	${SPECS_LIBGCC}
+
+LIBGCC_SUBPREFIX=	gcc46
+LIBGCC_PREFIX=		${BUILDLINK_PREFIX.gcc46-libs}/${LIBGCC_SUBPREFIX}
+GCC_TARGET_MACHINE?=	${MACHINE_GNU_PLATFORM}
+
+# XXX: Using %M requires patched version of gcc (e.g. lang/gcc46)
+${SPECS_LIBGCC}:
+	@${ECHO} "*link_libgcc:" >${SPECS_LIBGCC}
+	@${ECHO} "%D $(LINKER_RPATH_FLAG)${LIBGCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M" >>${SPECS_LIBGCC}
+
+_WRAP_EXTRA_ARGS.CC+=	-specs=${SPECS_LIBGCC}
+_WRAP_EXTRA_ARGS.CXX+=	-specs=${SPECS_LIBGCC}
+_WRAP_EXTRA_ARGS.FC+=	-specs=${SPECS_LIBGCC}
+CWRAPPERS_APPEND.cc+=	-specs=${SPECS_LIBGCC}
+CWRAPPERS_APPEND.cxx+=	-specs=${SPECS_LIBGCC}
+CWRAPPERS_APPEND.f77+=	-specs=${SPECS_LIBGCC}
+.endif
+
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.endif # GCC46_LIBS_BUILDLINK3_MK
+BUILDLINK_TREE+=	-gcc46-libs


Home | Main Index | Thread Index | Old Index