1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Adacore multi-language software build tool
9 HOMEPAGE= http://docs.adacore.com/live/wave/gprbuild/html/gprbuild_ug/gprbuild_ug.html
10 CONTACT= John_Marino[draco@marino.st]
12 DOWNLOAD_GROUPS= main adacore
13 SITES[main]= http://downloads.dragonlace.net/src/
14 SITES[adacore]= GITHUB/AdaCore:gprbuild:2841033
15 DISTFILE[1]= generated:adacore
16 DISTFILE[2]= xmlada-2019-20190429-19B9D-src.tar.gz:main
18 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
26 BUILD_DEPENDS= xmlada:primary:standard
27 EXRUN[gprlib]= xmlada:primary:standard
31 DISTNAME= gprbuild-2841033
33 LICENSE= GPLv3+:primary
34 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
35 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING3
36 LICENSE_AWK= TERMS:"^$$"
37 LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/gprbuild.ads
40 BUILD_TARGET= all libgpr.build
41 MAKE_ARGS= prefix={{STAGEDIR}}{{PREFIX}}
44 PROCESSORS={{MAKE_JOBS_NUMBER}}
45 TARGET={{CONFIGURE_TARGET}}
47 INSTALL_TARGET= install libgpr.install
48 INSTALL_REQ_TOOLCHAIN= yes
52 -e "s|@LOCALBASE@|${LOCALBASE}|" \
54 ${WRKSRC}/share/gprconfig/compilers.xml
55 # the relocatable library fails to build, limit to static(-pic)
57 -e '/^LIB_INSTALLER=/ s|$$| --project-subdir=lib/gnat|' \
59 ${RM} ${WRKSRC}/share/gprconfig/*.orig
60 ${REINPLACE_CMD} -e 's|"-gnatwe", ||' ${WRKSRC}/gprbuild.gpr
61 ${FIND} ${WRKSRC}/examples -name '.cvsignore' -delete
62 # fix bashism on /bin/sh
63 ${REINPLACE_CMD} -e 's|==|=|g' ${WRKSRC}/bootstrap.sh
66 # dragonfly has different install program than freebsd, linux (!)
67 ${REINPLACE_CMD} -e 's| -t||' ${WRKSRC}/bootstrap.sh
70 ${RM} ${STAGEDIR}${PREFIX}/doinstall
71 ${RM} -r ${STAGEDIR}${STD_DOCDIR}/html/_sources
72 ${RM} -r ${STAGEDIR}${PREFIX}/lib/gnat/manifests
73 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
74 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/gprbuild/*
75 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gpr/relocatable/gpr/libgpr.so
78 # create bootstrap version of gprbuild
79 ${MKDIR} ${WRKDIR}/bootstrap_construction
80 (cd ${WRKDIR}/bootstrap_construction && ${WRKSRC}/bootstrap.sh \
81 --with-xmlada=${WRKDIR}/xmlada-2019-20190429-19B9D-src \
83 --prefix=${WRKDIR}/bootstrap)
84 # establish setup variables
85 (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} setup)
87 [FILE:532:descriptions/desc.primary]
88 GPRbuild is an advanced software tool designed to help automate the
89 construction of multi-language systems. It removes the complexity from
90 multi-language development by allowing developers to quickly and easily
91 compile and link software written in a combination of languages including
92 Ada, Assembler, C, C++, and Fortran. Easily extendable by users to cover
93 new toolchains and languages it is primarily aimed at projects of all
94 sizes organized into subsystems and libraries and is particularly well
95 suited for compiled languages.
98 [FILE:190:descriptions/desc.gprlib]
99 GPRbuild is an advanced software tool designed to help automate the
100 construction of multi-language systems.
102 This package contains a standalone library to accomplish the same
107 f2678989e47f2057224b495fceb3d5e706961bfbe03295c19b52efc9f00ee054 957203 AdaCore-gprbuild-2841033.tar.gz
108 4fdd0a37e2385048ec2391ad41e96d58a7c3417817fb6974866b3b9da3ff1538 1582603 xmlada-2019-20190429-19B9D-src.tar.gz
111 [FILE:1189:manifests/plist.primary]
123 share/gpr/_default.gpr
135 compilers-arm-vx7.xml
136 compilers-baselined.xml
137 compilers-e500v2-vx6.xml
138 compilers-e500v2-vx653.xml
139 compilers-e500v2-vx7.xml
140 compilers-e500v2-vx7r2.xml
141 compilers-ppc-vx653.xml
142 compilers-ppc-vx7.xml
143 compilers-ppc-vx7r2.xml
144 compilers-ppc64-vx7.xml
145 compilers-ppc64-vx7r2.xml
146 compilers-vxworks.xml
147 compilers-x86-vx7.xml
148 compilers-x86_64-vx7.xml
172 tricore-compilers.xml
173 tricore-configuration.xml
188 [FILE:6383:manifests/plist.gprlib]
189 include/gpr/gpr.relocatable/
197 gpr-compilation-process-waiter.adb
198 gpr-compilation-process-waiter.ads
199 gpr-compilation-process.adb
200 gpr-compilation-process.ads
201 gpr-compilation-protocol.adb
202 gpr-compilation-protocol.ads
203 gpr-compilation-slave.adb
204 gpr-compilation-slave.ads
205 gpr-compilation-sync.adb
206 gpr-compilation-sync.ads
261 gpr-util-knowledge.adb
271 include/gpr/gpr.static/
279 gpr-compilation-process-waiter.adb
280 gpr-compilation-process-waiter.ads
281 gpr-compilation-process.adb
282 gpr-compilation-process.ads
283 gpr-compilation-protocol.adb
284 gpr-compilation-protocol.ads
285 gpr-compilation-slave.adb
286 gpr-compilation-slave.ads
287 gpr-compilation-sync.adb
288 gpr-compilation-sync.ads
343 gpr-util-knowledge.adb
353 include/gpr/gpr.static-pic/
361 gpr-compilation-process-waiter.adb
362 gpr-compilation-process-waiter.ads
363 gpr-compilation-process.adb
364 gpr-compilation-process.ads
365 gpr-compilation-protocol.adb
366 gpr-compilation-protocol.ads
367 gpr-compilation-slave.adb
368 gpr-compilation-slave.ads
369 gpr-compilation-sync.adb
370 gpr-compilation-sync.ads
425 gpr-util-knowledge.adb
437 lib/gpr/relocatable/gpr/
442 gpr-compilation-process-waiter.ali
443 gpr-compilation-process.ali
444 gpr-compilation-protocol.ali
445 gpr-compilation-slave.ali
446 gpr-compilation-sync.ali
479 lib/gpr/static-pic/gpr/
484 gpr-compilation-process-waiter.ali
485 gpr-compilation-process.ali
486 gpr-compilation-protocol.ali
487 gpr-compilation-slave.ali
488 gpr-compilation-sync.ali
526 gpr-compilation-process-waiter.ali
527 gpr-compilation-process.ali
528 gpr-compilation-protocol.ali
529 gpr-compilation-slave.ali
530 gpr-compilation-sync.ali
565 [FILE:2218:manifests/plist.examples]
566 share/examples/gprbuild/Makefile
567 share/examples/gprbuild/ada_cpp/
571 share/examples/gprbuild/ada_cpp/src1/
578 share/examples/gprbuild/ada_cpp/src2/
583 animals_interfaces.ads
585 share/examples/gprbuild/ada_f77/
590 share/examples/gprbuild/ada_f77/src/
595 fm-protected_queue.adb
596 fm-protected_queue.ads
597 fm-system_dependant.adb
598 fm-system_dependant.ads
604 share/examples/gprbuild/extended_projects/
607 new_common_subsystem.gpr
608 share/examples/gprbuild/extended_projects/new_ada_src/ada_main.adb
609 share/examples/gprbuild/extended_projects/new_util_src/
612 share/examples/gprbuild/first_steps/
616 share/examples/gprbuild/first_steps/ada_src/ada_main.adb
617 share/examples/gprbuild/first_steps/c_src/c_main.c
618 share/examples/gprbuild/first_steps/util_src/
624 share/examples/gprbuild/libraries/
638 share/examples/gprbuild/libraries/lib_src/
644 share/examples/gprbuild/matrix/
647 share/examples/gprbuild/matrix/src/
651 share/examples/gprbuild/namings/
662 share/examples/gprbuild/namings/src1/main.adb
663 share/examples/gprbuild/scenarios/
667 share/examples/gprbuild/subsystems/
670 attribute_sharing.gpr
673 share/examples/gprbuild/subsystems/ada_src/ada_main.adb
674 share/examples/gprbuild/subsystems/c_src/c_main.c
675 share/examples/gprbuild/subsystems/util_src/
683 [FILE:591:patches/patch-gpr_gpr.gpr]
684 --- gpr/gpr.gpr.orig 2019-11-24 03:02:47 UTC
688 ------------------------------------------------------------------------------
691 +with "xmlada_schema";
693 library project GPR is
695 @@ -37,6 +37,8 @@ library project GPR is
696 for Object_Dir use "libobj/" & Bld & "/" & Gnat_Lib_Type;
697 for Library_Dir use "lib/" & Bld & "/" & Gnat_Lib_Type;
699 + for Library_Options use Xmlada_schema'Library_options;
706 [FILE:1202:patches/patch-share_gprconfig_compilers.xml]
707 --- share/gprconfig/compilers.xml.orig 2019-11-24 03:02:47 UTC
708 +++ share/gprconfig/compilers.xml
709 @@ -177,17 +177,15 @@
711 <languages>Ada</languages>
712 <variable name="gcc_version">
713 - <external>${PREFIX}gcc -v</external>
714 + <external>ada -v</external>
715 <grep regexp="^[-\w]*gcc \S+ (\S+)" group="1"></grep>
717 <runtimes default="default,kernel,native">
718 - <directory group="default" >\.\./lib/gcc(-lib)?/$TARGET/$gcc_version/adalib/</directory>
719 - <directory group="default" contents="^rts-">\.\./lib/gcc(-lib)?/$TARGET/$gcc_version/ada_object_path</directory>
720 - <directory group="2" >\.\./lib/gcc(-lib)?/$TARGET/$gcc_version/rts-(.*)/adalib/</directory>
721 - <directory group="1" >\.\./$TARGET/lib/gnat/(.*)/adalib/</directory>
722 + <directory group="default">\.\./lib/gcc/$TARGET/$gcc_version/adalib</directory>
723 + <directory group="0">/raven/toolchain/@GCCX@/lib/gcc/$TARGET/$gcc_version/adalib</directory>
726 - <external>${PREFIX}gcc -dumpmachine</external>
727 + <external>ada -dumpmachine</external>
728 <grep regexp="[^\r\n]+"></grep>
730 </compiler_description>
733 [FILE:486:patches/patch-share_gprconfig_gnat.xml]
734 --- share/gprconfig/gnat.xml.orig 2019-11-24 03:02:47 UTC
735 +++ share/gprconfig/gnat.xml
740 - for Driver ("Ada") use "${PATH(ada)}${PREFIX(ada)}gcc";
741 + for Driver ("Ada") use "${PATH(ada)}ada";
742 for Language_Kind ("Ada") use "unit_based";
743 for Dependency_Kind ("Ada") use "ALI_File";
744 for Leading_Required_Switches ("Ada") use
747 [FILE:2233:patches/patch-share_gprconfig_linker.xml]
748 --- share/gprconfig/linker.xml.orig 2019-11-24 03:02:47 UTC
749 +++ share/gprconfig/linker.xml
750 @@ -965,11 +965,14 @@
754 - <!-- linux, freebsd, Irix, QNX -->
755 + <!-- linux, bsd, Irix, QNX -->
758 <target name="^.*linux.*$" />
759 <target name="^.*freebsd.*$" />
760 + <target name="^.*dragonfly.*$" />
761 + <target name="^.*openbsd.*$" />
762 + <target name="^.*netbsd.*$" />
763 <target name="^.*irix.*$" />
764 <target name="^.*qnx[0-9]*$" />
766 @@ -985,12 +988,15 @@
770 - <!-- linux, freebsd, QNX -->
771 + <!-- linux, bsd, QNX -->
774 <target name="^.*linux.*$" />
775 <target name="^.*qnx[0-9]*$" />
776 <target name="^.*freebsd.*$" />
777 + <target name="^.*dragonfly.*$" />
778 + <target name="^.*openbsd.*$" />
779 + <target name="^.*netbsd.*$" />
782 for Run_Path_Option use ("-Wl,-z,origin,-rpath,");
783 @@ -1003,13 +1009,33 @@
787 + <!-- linux and bsd -->
790 + <compiler language="Ada" />
793 + <target name="^.*freebsd.*$" />
794 + <target name="^.*dragonfly.*$" />
795 + <target name="^.*openbsd.*$" />
796 + <target name="^.*netbsd.*$" />
797 + <target name="^.*linux.*$" />
801 + for Required_Switches use
802 + Linker'Required_Switches
803 + & ("-Wl,-rpath,${RUNTIME_DIR(ada)}adalib");
808 <!-- Cross linux, QNX: add rpath-link to the runtime -->
811 <compiler language="Ada" />
814 - <target name="^.*-linux.*$" />
815 <target name="^.*-qnx[0-9]*"/>
818 @@ -1473,6 +1499,9 @@
819 <target name="^.*mingw.*$" />
820 <target name="^.*linux.*$" />
821 <target name="^.*freebsd.*$" />
822 + <target name="^.*dragonfly.*$" />
823 + <target name="^.*openbsd.*$" />
824 + <target name="^.*netbsd.*$" />
830 [FILE:1188:patches/patch-share_gprconfig_targetset.xml]
831 --- share/gprconfig/targetset.xml.orig 2019-11-24 03:02:47 UTC
832 +++ share/gprconfig/targetset.xml
837 - <targetset canonical="x86-solaris">
838 - <target>x86-solaris</target>
839 - <target>i.86-(pc-)?solaris.*</target>
840 + <targetset canonical="x86_64-solaris">
841 + <target>x86_64-solaris</target>
842 + <target>x86_64-.*solaris.*</target>
843 + <target>i.86-.*solaris.*</target>
846 <!-- x86-windows (mingw) -->
848 <target>amd64-.*freebsd.*</target>
851 + <!-- x86_64 DragonFly -->
852 + <targetset canonical="x86_64-dragonfly">
853 + <target>x86_64-dragonfly</target>
854 + <target>x86_64-.*dragonfly.*</target>
857 + <!-- x86_64 NetBSD -->
858 + <targetset canonical="x86_64-netbsd">
859 + <target>x86_64-netbsd</target>
860 + <target>x86_64-.*netbsd.*</target>
861 + <target>amd64-.*netbsd.*</target>
864 + <!-- x86_64 OpenBSD -->
865 + <targetset canonical="x86_64-openbsd">
866 + <target>x86_64-openbsd</target>
867 + <target>x86_64-.*openbsd.*</target>
868 + <target>amd64-.*openbsd.*</target>
876 [FILE:452:patches/patch-src_gprbuild-link.adb]
877 --- src/gprbuild-link.adb.orig 2019-11-24 03:02:47 UTC
878 +++ src/gprbuild-link.adb
879 @@ -3010,8 +3010,6 @@ package body Gprbuild.Link is
880 if Opt.Run_Path_Option
881 and then Main_Proj.Config.Run_Path_Option /= No_Name_List
883 - Add_Rpath_From_Arguments (Rpaths, Arguments, Main_Proj);
884 - Add_Rpath_From_Arguments (Rpaths, Other_Arguments, Main_Proj);
885 Add_Run_Path_Options;
890 [FILE:1679:patches/patch-src_gprlib.adb]
891 --- src/gprlib.adb.orig 2019-11-24 03:02:47 UTC
893 @@ -754,9 +754,6 @@ procedure Gprlib is
895 for Dir of Imported_Library_Directories loop
896 Library_Switches_Table.Append ("-L" & Dir);
897 - if Path_Option /= null then
902 for Libname of Imported_Library_Names loop
903 @@ -951,12 +948,6 @@ procedure Gprlib is
904 Shared_Lib_Suffix.all);
907 - if Path_Option /= null then
908 - for Path of Library_Rpath_Options_Table loop
913 if Path_Option /= null and then not Rpath.Is_Empty then
914 if Separate_Run_Path_Options then
915 for J in 1 .. Rpath.Last_Index loop
916 @@ -1489,9 +1480,7 @@ procedure Gprlib is
917 Object_Files.Append (Opt);
919 if Partial_Linker_Path = null then
922 - "unknown object file """ & Opt & """");
923 + Put_Line ("WARNING: unknown object '" & Opt & "'");
925 Trailing_PL_Options.Append (Opt);
927 @@ -2150,10 +2139,10 @@ procedure Gprlib is
931 - ("-lgnat-" & Line (6 .. Last));
932 + ("-lgnat-" & Line (6));
935 - ("-lgnarl-" & Line (6 .. Last));
936 + ("-lgnarl-" & Line (6));
942 [FILE:38:files/special.mk]
943 PREPEND_PATH= ${WRKDIR}/bootstrap/bin