diff options
author | wiz <wiz@pkgsrc.org> | 2013-04-01 21:06:15 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2013-04-01 21:06:15 +0000 |
commit | 66e327ec209b95be7301c2688cf4d51cac3c3106 (patch) | |
tree | 7876c941c179cf03f89fae3d6f60e54199474f88 /lang/gcc48-libs | |
parent | 6abd26b9dc1d0c62e498c894cd8d6d360690695f (diff) | |
download | pkgsrc-66e327ec209b95be7301c2688cf4d51cac3c3106.tar.gz |
Add gcc48 packages, provided by Kai-Uwe Eckhardt <kuehro@gmx.de>.
New major version of gcc, lots of changes.
For details, look here:
http://gcc.gnu.org/gcc-4.8/changes.html
Diffstat (limited to 'lang/gcc48-libs')
-rw-r--r-- | lang/gcc48-libs/DESCR | 3 | ||||
-rw-r--r-- | lang/gcc48-libs/Makefile | 66 | ||||
-rw-r--r-- | lang/gcc48-libs/buildlink3.mk | 43 |
3 files changed, 112 insertions, 0 deletions
diff --git a/lang/gcc48-libs/DESCR b/lang/gcc48-libs/DESCR new file mode 100644 index 00000000000..67396068e82 --- /dev/null +++ b/lang/gcc48-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/lang/gcc48-libs/Makefile b/lang/gcc48-libs/Makefile new file mode 100644 index 00000000000..1a6164526fd --- /dev/null +++ b/lang/gcc48-libs/Makefile @@ -0,0 +1,66 @@ +# $NetBSD: Makefile,v 1.1 2013/04/01 21:06:18 wiz Exp $ + +GCC_PKGNAME= gcc48 +.include "../../lang/${GCC_PKGNAME}/version.mk" + +DISTNAME= gcc-${GCC_DIST_VERSION} +PKGNAME= ${GCC_PKGNAME}-libs-${GCC_DIST_VERSION} +## The PKGREVISION of this package needs to be at least 1 more than the +## PKGREVISION of the lang/gcc48 package so that with the dependence pattern +## '{gcc48,gcc48-libs}>=4.8.*' pkg_all will choose gcc48-libs over gcc48. +PKGREVISION= 1 +CATEGORIES= lang +MASTER_SITES= # empty +DISTFILES= # empty + +MAINTAINER= sbd@NetBSD.org +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 ${GCC_DIST_VERSION}. +BUILD_DEPENDS+= ${GCC_PKGNAME}-${GCC_DIST_VERSION}{,nb[0-9]*}:../../lang/gcc48 + +.include "../../mk/bsd.prefs.mk" + +FIND_PREFIX:= GCC_PKG_PREFIX=${GCC_PKGNAME}-${GCC_DIST_VERSION}* +.include "../../mk/find-prefix.mk" + +GCC_SUBPREFIX= ${GCC_PKGNAME} +GCC_PREFIX= ${GCC_PKG_PREFIX}/${GCC_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,^,${GCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/,' \ + ${LIBRARY_FILES}; +GENERATE_PLIST+= ${GREP} -q 'lib/' ${LIBRARY_FILES} || \ + ${ECHO} '@pkgdir ${GCC_SUBPREFIX}/${GCC_TARGET_MACHINE}/lib' ; + +${LIBRARY_FILES}: + ${PKG_INFO} -qL '${GCC_PKGNAME}-${GCC_DIST_VERSION}*' | \ + ${SED} -n -e's,^${GCC_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}${GCC_PREFIX}/${GCC_TARGET_MACHINE}/lib || \ + ${MKDIR} ${DESTDIR}${GCC_PREFIX}/${GCC_TARGET_MACHINE}/lib + cd ${GCC_PREFIX} && \ + ${PAX} -rw ${DESTDIR}${GCC_PREFIX}/${GCC_TARGET_MACHINE} <${LIBRARY_FILES} + +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/lang/gcc48-libs/buildlink3.mk b/lang/gcc48-libs/buildlink3.mk new file mode 100644 index 00000000000..73c79a74f9d --- /dev/null +++ b/lang/gcc48-libs/buildlink3.mk @@ -0,0 +1,43 @@ +# $NetBSD: buildlink3.mk,v 1.1 2013/04/01 21:06:18 wiz Exp $ + +BUILDLINK_TREE+= gcc48-libs + +.if !defined(GCC48_LIBS_BUILDLINK3_MK) +GCC48_LIBS_BUILDLINK3_MK:= + +.if !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss]) +BUILDLINK_API_DEPENDS.gcc48-libs+= gcc48-libs>=4.8.0 +.else +BUILDLINK_API_DEPENDS.gcc48-libs+= {gcc48,gcc48-libs}>=4.8.0 +.endif +BUILDLINK_PKGSRCDIR.gcc48-libs= ../../lang/gcc48-libs +BUILDLINK_DEPMETHOD.gcc48-libs?= full + +BUILDLINK_PASSTHRU_DIRS+= ${BUILDLINK_PREFIX.gcc48-libs}/gcc48 + +BUILDLINK_FILES.gcc48-libs= #empty +BUILDLINK_AUTO_VARS.gcc48-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} + +GCC_SUBPREFIX= gcc48 +GCC_PREFIX= ${BUILDLINK_PREFIX.gcc48-libs}/${GCC_SUBPREFIX} +GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} + +# XXX: Using %M requires patched version of gcc (e.g. lang/gcc48) +${SPECS_LIBGCC}: + @${ECHO} "*link_libgcc:" >${SPECS_LIBGCC} + @${ECHO} "%D $(LINKER_RPATH_FLAG)${GCC_PREFIX}/${GCC_TARGET_MACHINE}/lib/%M $(LINKER_RPATH_FLAG)${GCC_PREFIX}/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} +.endif + +.include "../../mk/dlopen.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.endif # GCC48_LIBS_BUILDLINK3_MK +BUILDLINK_TREE+= -gcc48-libs |