ports/devel/libspark2012/files/patch-Makefile
John Marino bdd2b41345 devel/spark2012: Build the static library to stop ironsides leftovers
Without a static library present, gnatmake will build the objects it
needs in the base system -- that's not legal.

The original issue I had with this was using BSD_INSTALL_LIB which
stripped out the symbols in the static library, but I didn't realize
what was happening.  Now I know and the library is installed intact
with BSD_INSTALL_DATA.
2014-02-19 02:19:43 +00:00

29 lines
781 B
Text

--- Makefile.orig 2014-02-17 05:26:40.000000000 -0500
+++ Makefile
@@ -1,23 +1,13 @@
-all: nada
+all: build
-nada:
-
-build-orig:
+build:
gnatmake -p -P build_spark2012
install:
mkdir -p ${DESTDIR}${PREFIX}/lib/gnat \
- ${DESTDIR}${PREFIX}/include/spark2012
- ${BSD_INSTALL_DATA} spark2012.gpr \
- ${DESTDIR}${PREFIX}/lib/gnat
- ${BSD_INSTALL_DATA} src/*.ad[bs] \
- ${DESTDIR}${PREFIX}/include/spark2012
-
-install-orig:
- mkdir -p ${DESTDIR}${PREFIX}/lib/gnat \
${DESTDIR}${PREFIX}/lib/spark2012 \
${DESTDIR}${PREFIX}/include/spark2012
- ${BSD_INSTALL_LIB} src/build/lib/libspark2012.a \
+ ${BSD_INSTALL_DATA} src/build/lib/libspark2012.a \
${DESTDIR}${PREFIX}/lib/spark2012
${BSD_INSTALL_DATA} src/build/lib/*.ali \
${DESTDIR}${PREFIX}/lib/spark2012