diff options
author | drochner <drochner@pkgsrc.org> | 2011-02-03 19:04:02 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2011-02-03 19:04:02 +0000 |
commit | d1dc42144e9b1e224dd645674eff21443f70f1ef (patch) | |
tree | 269a1e2248ba90639e15d027f0d7dd8dc624774b /devel | |
parent | ca0771307588472f5238de2595ea24d5f4bf83dc (diff) | |
download | pkgsrc-d1dc42144e9b1e224dd645674eff21443f70f1ef.tar.gz |
add gprbuild-aux-20101120, a Multi-language project builder,
from John Marino per PR pkg/44438
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gprbuild-aux/DESCR | 12 | ||||
-rw-r--r-- | devel/gprbuild-aux/Makefile | 34 | ||||
-rw-r--r-- | devel/gprbuild-aux/PLIST | 157 | ||||
-rw-r--r-- | devel/gprbuild-aux/buildlink3.mk | 14 | ||||
-rw-r--r-- | devel/gprbuild-aux/distinfo | 6 | ||||
-rw-r--r-- | devel/gprbuild-aux/patches/patch-aa | 60 |
6 files changed, 283 insertions, 0 deletions
diff --git a/devel/gprbuild-aux/DESCR b/devel/gprbuild-aux/DESCR new file mode 100644 index 00000000000..40e4e16179e --- /dev/null +++ b/devel/gprbuild-aux/DESCR @@ -0,0 +1,12 @@ +GPRbuild is an advanced software tool designed to help automate the +construction of multi-language systems. It removes the complexity from +multi-language development by allowing developers to quickly and easily +compile and link software written in a combination of languages including +Ada, Assembler, C, C++, and Fortran. Easily extendable by users to cover +new toolchains and languages it is primarily aimed at projects of all sizes +organized into subsystems and libraries and is particularly well suited for +compiled languages. + +GPRbuild-AUX is a customized version of GPRbuild that exists solely for the +use with the GNAT AUX compiler, and not with the FSF or GPL versions of the +GNAT compiler. diff --git a/devel/gprbuild-aux/Makefile b/devel/gprbuild-aux/Makefile new file mode 100644 index 00000000000..cffc9f410ec --- /dev/null +++ b/devel/gprbuild-aux/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ +# + +DISTNAME= gprbuild-aux-${SNAPSHOT} +CATEGORIES= devel +MASTER_SITES= http://downloads.dragonlace.net/src/ \ + http://dragonlace.mirrors.ada.cx/src/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= draco@marino.st +HOMEPAGE= http://www.adacore.com/home/products/gnatpro/toolsuite/gprbuild/ +COMMENT= Adacore multi-language software build tool +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir +SNAPSHOT= 20101120 +GNU_CONFIGURE= yes +USE_LANGUAGES= c # Ada is not option. +USE_TOOLS= gmake +MAKE_ENV+= ADA_PROJECT_PATH=${PREFIX}/lib/gnat +#CONFIGURE_ENV+= CC=gnatgcc + +# no special configuration options necessary +pre-configure: + # explicitly request GNAT-AUX compiler (required by XML/Ada too) + # It is done here to fool tough pkgsrc compiler checks + ${SETENV} CC=gnatgcc + +do-wrapper: + # GPRbuild has a linkage problem while using standard wrappers + ${ECHO} "## Wrappers are intentionally disabled ##" + +.include "../../textproc/xmlada/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/gprbuild-aux/PLIST b/devel/gprbuild-aux/PLIST new file mode 100644 index 00000000000..b623af278e3 --- /dev/null +++ b/devel/gprbuild-aux/PLIST @@ -0,0 +1,157 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ +bin/gprbuild +bin/gprclean +bin/gprconfig +libexec/gprbuild/gprbind +libexec/gprbuild/gprlib +share/doc/gprbuild/html/gnat_style.css +share/doc/gprbuild/html/gprbuild.css +share/doc/gprbuild/html/gprbuild_ug.html +share/doc/gprbuild/html/gps_index.xml +share/doc/gprbuild/html/important.png +share/doc/gprbuild/html/note.png +share/doc/gprbuild/html/tip.png +share/doc/gprbuild/info/gprbuild_ug.info +share/doc/gprbuild/pdf/gprbuild_ug.pdf +share/doc/gprbuild/txt/gprbuild_ug.txt +share/examples/gprbuild/Makefile +share/examples/gprbuild/ada_cpp/Makefile +share/examples/gprbuild/ada_cpp/animals.gpr +share/examples/gprbuild/ada_cpp/except.gpr +share/examples/gprbuild/ada_cpp/src1/ada_main.adb +share/examples/gprbuild/ada_cpp/src1/call_cpp.adb +share/examples/gprbuild/ada_cpp/src1/call_cpp.ads +share/examples/gprbuild/ada_cpp/src1/cpp_main.cpp +share/examples/gprbuild/ada_cpp/src1/cpp_routine.cpp +share/examples/gprbuild/ada_cpp/src1/cpp_routine.h +share/examples/gprbuild/ada_cpp/src2/animals.adb +share/examples/gprbuild/ada_cpp/src2/animals.ads +share/examples/gprbuild/ada_cpp/src2/animals.h +share/examples/gprbuild/ada_cpp/src2/animals_c.cc +share/examples/gprbuild/ada_cpp/src2/main.adb +share/examples/gprbuild/ada_f77/Makefile +share/examples/gprbuild/ada_f77/ess.f +share/examples/gprbuild/ada_f77/fm.gpr +share/examples/gprbuild/ada_f77/ft.gpr +share/examples/gprbuild/ada_f77/src/fm-interfac.adb +share/examples/gprbuild/ada_f77/src/fm-interfac.ads +share/examples/gprbuild/ada_f77/src/fm-locks.adb +share/examples/gprbuild/ada_f77/src/fm-locks.ads +share/examples/gprbuild/ada_f77/src/fm-protected_queue.adb +share/examples/gprbuild/ada_f77/src/fm-protected_queue.ads +share/examples/gprbuild/ada_f77/src/fm-system_dependant.adb +share/examples/gprbuild/ada_f77/src/fm-system_dependant.ads +share/examples/gprbuild/ada_f77/src/fm-tuple_manager.adb +share/examples/gprbuild/ada_f77/src/fm-tuple_manager.ads +share/examples/gprbuild/ada_f77/src/fm-types.ads +share/examples/gprbuild/ada_f77/src/fm.adb +share/examples/gprbuild/ada_f77/src/fm.ads +share/examples/gprbuild/extended_projects/Makefile +share/examples/gprbuild/extended_projects/new_ada_main.gpr +share/examples/gprbuild/extended_projects/new_ada_src/ada_main.adb +share/examples/gprbuild/extended_projects/new_common_subsystem.gpr +share/examples/gprbuild/extended_projects/new_util_src/c_lib.ads +share/examples/gprbuild/extended_projects/new_util_src/lib2.c +share/examples/gprbuild/first_steps/Makefile +share/examples/gprbuild/first_steps/ada_main.gpr +share/examples/gprbuild/first_steps/ada_src/ada_main.adb +share/examples/gprbuild/first_steps/c_main.gpr +share/examples/gprbuild/first_steps/c_src/c_main.c +share/examples/gprbuild/first_steps/util_src/ada_lib.adb +share/examples/gprbuild/first_steps/util_src/ada_lib.ads +share/examples/gprbuild/first_steps/util_src/c_lib.ads +share/examples/gprbuild/first_steps/util_src/lib.c +share/examples/gprbuild/first_steps/util_src/lib.h +share/examples/gprbuild/libraries/Makefile +share/examples/gprbuild/libraries/Makefile2 +share/examples/gprbuild/libraries/ada_main.adb +share/examples/gprbuild/libraries/c_main.c +share/examples/gprbuild/libraries/dynamic_lib.gpr +share/examples/gprbuild/libraries/extern_lib.gpr +share/examples/gprbuild/libraries/lib_src/ada_lib.adb +share/examples/gprbuild/libraries/lib_src/ada_lib.ads +share/examples/gprbuild/libraries/lib_src/c_lib.ads +share/examples/gprbuild/libraries/lib_src/lib.c +share/examples/gprbuild/libraries/lib_src/lib.h +share/examples/gprbuild/libraries/main0.gpr +share/examples/gprbuild/libraries/main1.gpr +share/examples/gprbuild/libraries/main2.gpr +share/examples/gprbuild/libraries/main3.gpr +share/examples/gprbuild/libraries/main4.gpr +share/examples/gprbuild/libraries/sa_lib.gpr +share/examples/gprbuild/libraries/static_lib.gpr +share/examples/gprbuild/matrix/Makefile +share/examples/gprbuild/matrix/matrix.gpr +share/examples/gprbuild/matrix/src/initmat.c +share/examples/gprbuild/matrix/src/main.adb +share/examples/gprbuild/matrix/src/multmat.f +share/examples/gprbuild/namings/Makefile +share/examples/gprbuild/namings/_print2.ada +share/examples/gprbuild/namings/_print3.adb +share/examples/gprbuild/namings/main.adb +share/examples/gprbuild/namings/my_routine.c1 +share/examples/gprbuild/namings/my_routine2.c1 +share/examples/gprbuild/namings/namings.gpr +share/examples/gprbuild/namings/src1/main.adb +share/examples/gprbuild/namings/util-case1.ada +share/examples/gprbuild/namings/util-case2.ada +share/examples/gprbuild/namings/util.ads +share/examples/gprbuild/ppc-elf/Makefile +share/examples/gprbuild/ppc-elf/gdb.run +share/examples/gprbuild/ppc-elf/hello.gpr +share/examples/gprbuild/ppc-elf/srcs/c_io.c +share/examples/gprbuild/ppc-elf/srcs/hello.adb +share/examples/gprbuild/ppc-elf/srcs/ppc_start.s +share/examples/gprbuild/ppc-elf/srcs/textio.adb +share/examples/gprbuild/ppc-elf/srcs/textio.ads +share/examples/gprbuild/scenarios/Makefile +share/examples/gprbuild/scenarios/general_lib.gpr +share/examples/gprbuild/scenarios/main.gpr +share/examples/gprbuild/subsystems/Makefile +share/examples/gprbuild/subsystems/ada_main.gpr +share/examples/gprbuild/subsystems/ada_src/ada_main.adb +share/examples/gprbuild/subsystems/attribute_sharing.gpr +share/examples/gprbuild/subsystems/c_main.gpr +share/examples/gprbuild/subsystems/c_src/c_main.c +share/examples/gprbuild/subsystems/common_subsystem.gpr +share/examples/gprbuild/subsystems/util_src/ada_lib.adb +share/examples/gprbuild/subsystems/util_src/ada_lib.ads +share/examples/gprbuild/subsystems/util_src/c_lib.ads +share/examples/gprbuild/subsystems/util_src/lib.c +share/examples/gprbuild/subsystems/util_src/lib.h +share/gprconfig/asm.xml +share/gprconfig/c.xml +share/gprconfig/compilers.xml +share/gprconfig/cpp.xml +share/gprconfig/cross.xml +share/gprconfig/fortran.xml +share/gprconfig/gnat.xml +share/gprconfig/linker.xml +share/gprconfig/nocompiler.xml +share/gprconfig/targetset.xml +@pkgdir share/gpr +@pkgdir share/examples/gprbuild/subsystems/obj_util +@pkgdir share/examples/gprbuild/subsystems/obj1 +@pkgdir share/examples/gprbuild/subsystems/obj +@pkgdir share/examples/gprbuild/scenarios/obj1 +@pkgdir share/examples/gprbuild/scenarios/obj +@pkgdir share/examples/gprbuild/ppc-elf/objs +@pkgdir share/examples/gprbuild/namings/obj-case3 +@pkgdir share/examples/gprbuild/namings/obj-case2 +@pkgdir share/examples/gprbuild/namings/obj-case1 +@pkgdir share/examples/gprbuild/matrix/obj +@pkgdir share/examples/gprbuild/libraries/obj2 +@pkgdir share/examples/gprbuild/libraries/obj1 +@pkgdir share/examples/gprbuild/libraries/obj +@pkgdir share/examples/gprbuild/libraries/lib3 +@pkgdir share/examples/gprbuild/libraries/lib2 +@pkgdir share/examples/gprbuild/libraries/lib +@pkgdir share/examples/gprbuild/first_steps/obj1 +@pkgdir share/examples/gprbuild/first_steps/obj +@pkgdir share/examples/gprbuild/extended_projects/new_obj_util +@pkgdir share/examples/gprbuild/extended_projects/new_obj +@pkgdir share/examples/gprbuild/ada_f77/obj +@pkgdir share/examples/gprbuild/ada_f77/lib +@pkgdir share/examples/gprbuild/ada_f77/fobj +@pkgdir share/examples/gprbuild/ada_f77/dobj +@pkgdir share/examples/gprbuild/ada_f77/dlib diff --git a/devel/gprbuild-aux/buildlink3.mk b/devel/gprbuild-aux/buildlink3.mk new file mode 100644 index 00000000000..08f55466d16 --- /dev/null +++ b/devel/gprbuild-aux/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ + +BUILDLINK_TREE+= gprbuild-aux + +.if !defined(GPRBUILD_AUX_BUILDLINK3_MK) +GPRBUILD_AUX_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.gprbuild-aux+= gprbuild-aux>=20101120 +BUILDLINK_PKGSRCDIR.gprbuild-aux?= ../../devel/gprbuild-aux + +.include "../../textproc/xmlada/buildlink3.mk" +.endif # GPRBUILD_AUX_BUILDLINK3_MK + +BUILDLINK_TREE+= -gprbuild-aux diff --git a/devel/gprbuild-aux/distinfo b/devel/gprbuild-aux/distinfo new file mode 100644 index 00000000000..a5485609c10 --- /dev/null +++ b/devel/gprbuild-aux/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ + +SHA1 (gprbuild-aux-20101120.tar.bz2) = 84629d790c4f9479fdce6ec6e6f732fa60089afb +RMD160 (gprbuild-aux-20101120.tar.bz2) = 560185e9733af77c4a6e9c37e510765e30b438ad +Size (gprbuild-aux-20101120.tar.bz2) = 1470482 bytes +SHA1 (patch-aa) = 1fe9a3055551696ad5b090b661a2ed3a3b66ddee diff --git a/devel/gprbuild-aux/patches/patch-aa b/devel/gprbuild-aux/patches/patch-aa new file mode 100644 index 00000000000..600e95199da --- /dev/null +++ b/devel/gprbuild-aux/patches/patch-aa @@ -0,0 +1,60 @@ +$NetBSD: patch-aa,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ + +support DESTDIR + +--- Makefile.in.orig 2010-11-20 13:28:35.000000000 +0000 ++++ Makefile.in +@@ -89,36 +89,34 @@ bootstrap-clean: + -XBUILD_TOOL=gprbuild + + install: install.data install.bin +- -${MKDIR} ${datadir}/gpr +- $(RM) -r ${datadir}/examples/gprbuild +- -${MKDIR} ${datadir}/examples/gprbuild +- ${CP} -r examples/* ${datadir}/examples/gprbuild +- ${RM} -r ${datadir}/doc/gprbuild +- -${MKDIR} ${datadir}/doc/gprbuild ++ -${MKDIR} $(DESTDIR)${datadir}/gpr ++ -${MKDIR} $(DESTDIR)${datadir}/examples/gprbuild ++ ${CP} -r examples/* $(DESTDIR)${datadir}/examples/gprbuild ++ -${MKDIR} $(DESTDIR)${datadir}/doc/gprbuild + for format in html txt pdf info; do \ + if [ -d doc/$$format ] ; then \ +- ${MKDIR} ${datadir}/doc/gprbuild/$$format; \ +- ${CP} doc/$$format/* ${datadir}/doc/gprbuild/$$format; \ ++ ${MKDIR} $(DESTDIR)${datadir}/doc/gprbuild/$$format; \ ++ ${CP} doc/$$format/* $(DESTDIR)${datadir}/doc/gprbuild/$$format; \ + if [ $$format = html ] ; then \ +- ${CP} doc/*.png ${datadir}/doc/gprbuild/html; \ ++ ${CP} doc/*.png $(DESTDIR)${datadir}/doc/gprbuild/html; \ + sed -e "s/<doc_path>.*//" doc/gprbuild_gps.xml \ +- > ${datadir}/doc/gprbuild/html/gps_index.xml; \ ++ > $(DESTDIR)${datadir}/doc/gprbuild/html/gps_index.xml; \ + fi; \ + fi; \ + done + + install.data: force +- -${MKDIR} ${datadir}/gprconfig +- ${CP} share/gprconfig/*.xml ${datadir}/gprconfig ++ -${MKDIR} $(DESTDIR)${datadir}/gprconfig ++ ${CP} share/gprconfig/*.xml $(DESTDIR)${datadir}/gprconfig + + install.bin: force +- -${MKDIR} ${bindir} +- ${INSTALL_PROGRAM} gprconfig${EXEXT} ${bindir} +- ${INSTALL_PROGRAM} gprbuild${EXEXT} ${bindir} +- ${INSTALL_PROGRAM} gprclean${EXEXT} ${bindir} +- -${MKDIR} ${libexecdir}/gprbuild +- ${INSTALL_PROGRAM} gprbind${EXEXT} ${libexecdir}/gprbuild/ +- ${INSTALL_PROGRAM} gprlib${EXEXT} ${libexecdir}/gprbuild/ ++ -${MKDIR} $(DESTDIR)${bindir} ++ ${INSTALL_PROGRAM} gprconfig${EXEXT} $(DESTDIR)${bindir} ++ ${INSTALL_PROGRAM} gprbuild${EXEXT} $(DESTDIR)${bindir} ++ ${INSTALL_PROGRAM} gprclean${EXEXT} $(DESTDIR)${bindir} ++ -${MKDIR} $(DESTDIR)${libexecdir}/gprbuild ++ ${INSTALL_PROGRAM} gprbind${EXEXT} $(DESTDIR)${libexecdir}/gprbuild/ ++ ${INSTALL_PROGRAM} gprlib${EXEXT} $(DESTDIR)${libexecdir}/gprbuild/ + + $(objdir)/gprbuild_dummies.o: src/gprbuild_dummies.c + gnatgcc -c -o $@ $< |