1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

lang/gnatdroid-armv(5,7): Fix build on FreeBSD 10+

Reported by pkg-fallout
Cause: Bad gcc makefile, doesn't properly support cross-compiler build
Workaround: duplicate *-cross executables to the base names so that the
            install target doesn't try to rebuild them
This commit is contained in:
John Marino 2014-02-03 13:37:19 +00:00
parent a5b3d04981
commit 6776e8937d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342434
4 changed files with 40 additions and 26 deletions
lang
gnatdroid-armv5
gnatdroid-armv7

View File

@ -59,6 +59,8 @@ PLIST_SUB+= TARGET="${DROID_TARGET}"
PLIST_SUB+= GCCVERS="${GCC_VERSION}"
SUB_FILES= pkg-message
SUB_LIST= TARGET="${DROID_TARGET}"
CROSS= gnat gnatbind gnatchop gnatclean gnatfind gnatkr \
gnatlink gnatls gnatmake gnatprep gnatxref
ALL_TARGET= all
@ -144,8 +146,13 @@ do-configure:
${CFG_SCRIPT} ${CONFIGURE_ARGS}
pre-install:
# The "native tools" won't install unless a directory exists
${MKDIR} ${STAGEDIR}${PREFIX}/${DROID_TARGET}/bin
# The "native tools" won't install unless a directory exists
${MKDIR} ${STAGEDIR}${PREFIX}/${DROID_TARGET}/bin
# Buggy makefile; seems to have forgotten this is a cross compiler
# Manually rename products so it doesn't rebuild them with new name
.for X in ${CROSS}
${CP} -a ${BUILD_WRKSRC}/gcc/${X}-cross ${BUILD_WRKSRC}/gcc/${X}
.endfor
do-install:
cd ${BUILD_WRKSRC} && ${GMAKE} install-strip DESTDIR=${STAGEDIR}

View File

@ -1,6 +1,13 @@
bin/%%TARGET%%-cpp
bin/%%TARGET%%-gcc-%%GCCVERS%%
bin/%%TARGET%%-gcov
bin/%%TARGET%%-gnat
bin/%%TARGET%%-gnatbind
bin/%%TARGET%%-gnatchop
bin/%%TARGET%%-gnat
bin/%%TARGET%%-gnatclean
bin/%%TARGET%%-gnatfind
bin/%%TARGET%%-gnatgcc
%%FORT%%bin/%%TARGET%%-gnatgfortran
bin/%%TARGET%%-gnatkr
bin/%%TARGET%%-gnatlink
bin/%%TARGET%%-gnatls
@ -8,20 +15,13 @@ bin/%%TARGET%%-gnatmake
bin/%%TARGET%%-gnatname
bin/%%TARGET%%-gnatprep
bin/%%TARGET%%-gnatxref
bin/%%TARGET%%-gnatfind
bin/%%TARGET%%-gnatclean
bin/%%TARGET%%-gcov
bin/%%TARGET%%-cpp
bin/%%TARGET%%-gnatgcc
bin/%%TARGET%%-gcc-%%GCCVERS%%
%%FORT%%bin/%%TARGET%%-gnatgfortran
%%TARGET%%/bin/gnat
%%TARGET%%/bin/gnatbind
%%TARGET%%/bin/gnatchop
%%TARGET%%/bin/gnat
%%TARGET%%/bin/gnatgcc
%%FORT%%%%TARGET%%/bin/gnatgfortran
%%TARGET%%/bin/gnatkr
%%TARGET%%/bin/gnatlink
%%TARGET%%/bin/gnatls
%%TARGET%%/bin/gnatmake
%%TARGET%%/bin/gnatprep
%%TARGET%%/bin/gnatgcc
%%FORT%%%%TARGET%%/bin/gnatgfortran

View File

@ -59,6 +59,8 @@ PLIST_SUB+= TARGET="${DROID_TARGET}"
PLIST_SUB+= GCCVERS="${GCC_VERSION}"
SUB_FILES= pkg-message
SUB_LIST= TARGET="${DROID_TARGET}"
CROSS= gnat gnatbind gnatchop gnatclean gnatfind gnatkr \
gnatlink gnatls gnatmake gnatprep gnatxref
ALL_TARGET= all
@ -144,8 +146,13 @@ do-configure:
${CFG_SCRIPT} ${CONFIGURE_ARGS}
pre-install:
# The "native tools" won't install unless a directory exists
${MKDIR} ${STAGEDIR}${PREFIX}/${DROID_TARGET}/bin
# The "native tools" won't install unless a directory exists
${MKDIR} ${STAGEDIR}${PREFIX}/${DROID_TARGET}/bin
# Buggy makefile; seems to have forgotten this is a cross compiler
# Manually rename products so it doesn't rebuild them with new name
.for X in ${CROSS}
${CP} -a ${BUILD_WRKSRC}/gcc/${X}-cross ${BUILD_WRKSRC}/gcc/${X}
.endfor
do-install:
cd ${BUILD_WRKSRC} && ${GMAKE} install-strip DESTDIR=${STAGEDIR}

View File

@ -1,6 +1,13 @@
bin/%%TARGET%%-cpp
bin/%%TARGET%%-gcc-%%GCCVERS%%
bin/%%TARGET%%-gcov
bin/%%TARGET%%-gnat
bin/%%TARGET%%-gnatbind
bin/%%TARGET%%-gnatchop
bin/%%TARGET%%-gnat
bin/%%TARGET%%-gnatclean
bin/%%TARGET%%-gnatfind
bin/%%TARGET%%-gnatgcc
%%FORT%%bin/%%TARGET%%-gnatgfortran
bin/%%TARGET%%-gnatkr
bin/%%TARGET%%-gnatlink
bin/%%TARGET%%-gnatls
@ -8,20 +15,13 @@ bin/%%TARGET%%-gnatmake
bin/%%TARGET%%-gnatname
bin/%%TARGET%%-gnatprep
bin/%%TARGET%%-gnatxref
bin/%%TARGET%%-gnatfind
bin/%%TARGET%%-gnatclean
bin/%%TARGET%%-gcov
bin/%%TARGET%%-cpp
bin/%%TARGET%%-gnatgcc
bin/%%TARGET%%-gcc-%%GCCVERS%%
%%FORT%%bin/%%TARGET%%-gnatgfortran
%%TARGET%%/bin/gnat
%%TARGET%%/bin/gnatbind
%%TARGET%%/bin/gnatchop
%%TARGET%%/bin/gnat
%%TARGET%%/bin/gnatgcc
%%FORT%%%%TARGET%%/bin/gnatgfortran
%%TARGET%%/bin/gnatkr
%%TARGET%%/bin/gnatlink
%%TARGET%%/bin/gnatls
%%TARGET%%/bin/gnatmake
%%TARGET%%/bin/gnatprep
%%TARGET%%/bin/gnatgcc
%%FORT%%%%TARGET%%/bin/gnatgfortran