pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gprbuild-aux devel/gprbuild-aux: Commit forgotte...
details: https://anonhg.NetBSD.org/pkgsrc/rev/33a6b8b21035
branches: trunk
changeset: 355222:33a6b8b21035
user: marino <marino%pkgsrc.org@localhost>
date: Sat Nov 26 03:37:25 2016 +0000
description:
devel/gprbuild-aux: Commit forgotten file
User-error on CVS, the file didn't get successfully added the first time.
While here, correct the localbase on the xml data file.
diffstat:
devel/gprbuild-aux/Makefile | 9 +++-
devel/gprbuild-aux/files/Makefile.BSD | 82 +++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+), 1 deletions(-)
diffs (109 lines):
diff -r 0c7b3aec5483 -r 33a6b8b21035 devel/gprbuild-aux/Makefile
--- a/devel/gprbuild-aux/Makefile Fri Nov 25 22:46:40 2016 +0000
+++ b/devel/gprbuild-aux/Makefile Sat Nov 26 03:37:25 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2016/11/25 20:36:49 marino Exp $
+# $NetBSD: Makefile,v 1.8 2016/11/26 03:37:25 marino Exp $
#
DISTNAME= gprbuild-aux-${SNAPSHOT}
@@ -20,6 +20,13 @@
WRKSRC= ${WRKDIR}/gprbuild-${TAGNAME}
BUILD_DIRS= ${WRKSRC}/construction
+SUBST_CLASSES= lbase
+
+SUBST_STAGE.lbase= post-patch
+SUBST_FILES.lbase= share/gprconfig/compilers.xml
+SUBST_SED.lbase= -e "s|/usr/local|${LOCALBASE}|"
+SUBST_MESSAGE.lbase= Ensure pkgsrc localbase is used
+
post-patch:
${MKDIR} ${WRKDIR}/trash ${BUILD_DIRS}
${CP} ${FILESDIR}/Makefile.BSD ${BUILD_DIRS}/Makefile
diff -r 0c7b3aec5483 -r 33a6b8b21035 devel/gprbuild-aux/files/Makefile.BSD
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gprbuild-aux/files/Makefile.BSD Sat Nov 26 03:37:25 2016 +0000
@@ -0,0 +1,82 @@
+.PATH: ../src
+.PATH: ../gpr/src
+
+STATIC_FLAGS= -gnat12 -gnaty -gnatQ -O2 -gnatpn -gnatws -g1
+
+PREFIX?= /usr/local
+GPRLIB_INC= -I${PREFIX}/include/xmlada -I../gpr/src
+LOOK= -aL${PREFIX}/lib/xmlada/static -aI${PREFIX}/include/xmlada
+
+libgpr_csrc= gprbuild_dummies.c \
+ gpr_imports.c
+
+LARGS= ${libgpr_csrc:S/^/-largs /:.c=.o} \
+ -largs ${PREFIX}/lib/xmlada/static/libxmlada_dom.a \
+ -largs ${PREFIX}/lib/xmlada/static/libxmlada_input_sources.a \
+ -largs ${PREFIX}/lib/xmlada/static/libxmlada_sax.a \
+ -largs ${PREFIX}/lib/xmlada/static/libxmlada_schema.a \
+ -largs ${PREFIX}/lib/xmlada/static/libxmlada_unicode.a
+
+APPS= gprclean/gprclean-main.adb \
+ gprconfig/gprconfig-main.adb \
+ gprbuild/gprbuild-main.adb \
+ gprbind/gprbind.adb \
+ gprlib/gprlib.adb \
+ gprinstall/gprinstall-main.adb \
+ gprname/gprname-main.adb \
+ gprls/gprls-main.adb
+# gprslave needs gcc6-aux to build
+# gprslave/gprslave.adb
+
+all: ${APPS:H}
+
+gprclean: gprclean-main.adb ${libgpr_csrc:.c=.o}
+ gnatmake -o ${.TARGET} -j${PROCESSORS} \
+ ${STATIC_FLAGS} ${GPRLIB_INC} ${LOOK} \
+ ${.ALLSRC:M*adb} ${LARGS}
+
+.for app in ${APPS:Ngprclean*}
+${app:H}: gprclean ${app:T} ${libgpr_csrc:.c=.o}
+ gnatmake -o ${.TARGET} ${STATIC_FLAGS} ${GPRLIB_INC} ${LOOK} \
+ ${.ALLSRC:M*adb} ${LARGS}
+.endfor
+
+clean:
+ rm -f *.o *.ali b~* ${APP:H}
+
+gen-docs:
+ ${MAKE} -e -C ${.CURDIR:H}/doc html txt
+
+install:
+ mkdir -p ${DESTDIR}${PREFIX}/bin \
+ ${DESTDIR}${PREFIX}/libexec/gprbuild \
+ ${DESTDIR}${PREFIX}/share/gpr \
+ ${DESTDIR}${PREFIX}/share/gprconfig
+ ${BSD_INSTALL_PROGRAM} \
+ ${.CURDIR}/gprclean \
+ ${.CURDIR}/gprinstall \
+ ${.CURDIR}/gprconfig \
+ ${.CURDIR}/gprls \
+ ${.CURDIR}/gprname \
+ ${.CURDIR}/gprbuild \
+ ${DESTDIR}${PREFIX}/bin
+# ${.CURDIR}/gprslave
+
+ ${BSD_INSTALL_PROGRAM} \
+ ${.CURDIR}/gprbind \
+ ${.CURDIR}/gprlib \
+ ${DESTDIR}${PREFIX}/libexec/gprbuild
+ ${BSD_INSTALL_DATA} \
+ ${.CURDIR}/../share/_default.gpr \
+ ${DESTDIR}${PREFIX}/share/gpr
+ ${BSD_INSTALL_DATA} \
+ ${.CURDIR}/../share/gprconfig/*.x[sm][dl] \
+ ${DESTDIR}${PREFIX}/share/gprconfig
+
+install-docs:
+ mkdir -p ${DESTDIR}${PREFIX}/share/doc/gprbuild/txt
+ ${BSD_INSTALL_DATA} ${.CURDIR}/../doc/txt/gprbuild_ug.txt \
+ ${DESTDIR}${PREFIX}/share/doc/gprbuild/txt
+ rm -rf ${.CURDIR}/../doc/html/_sources
+ rm -f ${.CURDIR}/../doc/html/.buildinfo
+ cp -a ${.CURDIR}/../doc/html ${DESTDIR}${PREFIX}/share/doc/gprbuild
Home |
Main Index |
Thread Index |
Old Index