ports/net/polyorb/files/patch-Makefile.in
John Marino 033ef6ffa2 net/polyorb: convert to pkg-plist, support testsuite, plus
The pkg-plist isn't absurdly long, especially when docs are omitted, so
convert port from using generated plist to a static one with PORTDOCS
defined.  While here, allow the possibility of not installing docs
although this saves no effort and is not recommended since it removes
polyorb from GPS (Gnat Programming Studio IDE) menus.

Also import Makefile.in patch to properly strip binaries.

The main reason for the update was to support the ability to run the
testsuite.  When selected (off by default), the "run-testsuite" target
is available, and is intended to be executed after "make install".  The
testsuite target will build the examples along with the tests to be run,
but the examples are not installed.  However, additional .ali files are
installed as a result (before only their source files were installed).
2015-05-28 08:12:47 +00:00

44 lines
2.2 KiB
Text

--- Makefile.in.orig 2013-11-20 14:58:55 UTC
+++ Makefile.in
@@ -824,10 +824,10 @@ host=@host@
target=@target@
ifeq (${target}, ${host})
- target_prefix=${prefix}
- host_exe_dir=${prefix}/bin
+ target_prefix=${DESTDIR}${prefix}
+ host_exe_dir=${DESTDIR}${prefix}/bin
host_cmdprefix=
- target_exe_dir=${prefix}/bin
+ target_exe_dir=${DESTDIR}${prefix}/bin
else
target_prefix=${prefix}/${target}
@@ -851,11 +851,11 @@ install:
${RM} -fr "${target_prefix}/include/polyorb"
${PINSTALL} -d ${target_prefix}/include/polyorb
for comp in ${COMPILER_EXES}; do \
- ${INSTALL_BIN} ${top_builddir}/compilers/$${comp}${HOST_EXE_SUFFIX} ${host_exe_dir}/${host_cmdprefix}`basename $${comp}`${HOST_EXE_SUFFIX}; \
+ ${BSD_INSTALL_PROGRAM} ${top_builddir}/compilers/$${comp}${HOST_EXE_SUFFIX} ${host_exe_dir}/${host_cmdprefix}`basename $${comp}`${HOST_EXE_SUFFIX}; \
done
- ${INSTALL_SCRIPT} ${top_builddir}/polyorb-config ${host_exe_dir}/${host_cmdprefix}polyorb-config
+ ${BSD_INSTALL_SCRIPT} ${top_builddir}/polyorb-config ${host_exe_dir}/${host_cmdprefix}polyorb-config
for tool in po_cos_naming/po_cos_naming po_cos_naming/po_cos_naming_shell po_cos_naming/ir_ab_names po_ir/po_ir po_catref/po_catref po_createref/po_createref po_names/po_names po_dumpir/po_dumpir; do \
- ${INSTALL_BIN} ${top_builddir}/tools/$$tool${TARGET_EXE_SUFFIX} ${target_exe_dir}/`basename $$tool`${TARGET_EXE_SUFFIX}; \
+ ${BSD_INSTALL_PROGRAM} ${top_builddir}/tools/$$tool${TARGET_EXE_SUFFIX} ${target_exe_dir}/`basename $$tool`${TARGET_EXE_SUFFIX}; \
done
ls ${top_builddir}/lib/*.a | ${PINSTALL} -m 444 - ${target_prefix}/lib/polyorb/static
ls ${top_builddir}/lib/*.so | ${PINSTALL} -m 555 - ${target_prefix}/lib
@@ -884,10 +884,10 @@ install:
# pre-built and packaged with sources.
if [ -r docs/polyorb_ug.html ]; \
then \
- (cd docs && ${MAKE} install prefix="${prefix}"); \
+ (cd docs && ${MAKE} install prefix="${target_prefix}"); \
elif [ -r $(top_srcdir)/docs/polyorb_ug.html ]; \
then \
- (cd docs && ${MAKE} install prefix="${prefix}" doc_build_dir="$(top_srcdir)/docs/"); \
+ (cd docs && ${MAKE} install prefix="${target_prefix}" doc_build_dir="$(top_srcdir)/docs/"); \
fi
# polyorb-dsa_p-partitions.ali is a special case above.