Remove sonames so that dlopen works even if -dev package is not installed.
Move DRAW plug-ins into /usr/lib/opencas, these are private plug-ins and
not shared libraries.
Put rpath information into DRAWEXE to make it find plug-ins without
hacking source files.
Gbp-Pq: Name make-draw-libs-private.patch
../TKernel/libTKernel.la \
../TKService/libTKService.la \
$(STLPort_LIB) $(CSF_TclLibs_LIB) $(CSF_TclTkLibs_LIB) $(CSF_gdi32_LIB) $(CSF_advapi32_LIB) $(CSF_user32_LIB) $(CSF_TBB_LIB) $(CSF_SOCKETLibs_LIB) $(CSF_FPELibs_LIB) $(CSF_ThreadLibs_LIB) $(CSF_kernel32_LIB) $(CSF_MotifLibs_LIB) $(CSF_XwLibs_LIB) $(CSF_dpsLibs_LIB) $(CSF_XmuLibs_LIB) $(CSF_FreeImagePlus_LIB)
+ DRAWEXE_LDFLAGS = -rpath /usr/lib/opencas
-I@top_srcdir@/drv/DrawDim -I@top_srcdir@/src/DrawDim
-lib_LTLIBRARIES=libTKDCAF.la
+pkglib_LTLIBRARIES=libTKDCAF.la
libTKDCAF_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/DrawDim/DrawDim_PlanarRadius.cxx \
@top_srcdir@/src/DrawDim/DrawDim_Radius.cxx
-libTKDCAF_la_LDFLAGS = -release 6.5.0
+libTKDCAF_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/DrawTrSurf -I@top_srcdir@/src/DrawTrSurf
-lib_LTLIBRARIES=libTKDraw.la
+pkglib_LTLIBRARIES=libTKDraw.la
libTKDraw_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/DrawTrSurf/DrawTrSurf_Triangulation.cxx \
@top_srcdir@/src/DrawTrSurf/DrawTrSurf_Triangulation2D.cxx
-libTKDraw_la_LDFLAGS = -release 6.5.0
+libTKDraw_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/TObjDRAW -I@top_srcdir@/src/TObjDRAW
-lib_LTLIBRARIES=libTKTObjDRAW.la
+pkglib_LTLIBRARIES=libTKTObjDRAW.la
libTKTObjDRAW_la_LIBADD = \
../TKTObj/libTKTObj.la \
libTKTObjDRAW_la_SOURCES = \
@top_srcdir@/src/TObjDRAW/TObjDRAW.cxx
-libTKTObjDRAW_la_LDFLAGS = -release 6.5.0
+libTKTObjDRAW_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/BOPTest -I@top_srcdir@/src/BOPTest
-lib_LTLIBRARIES=libTKTopTest.la
+pkglib_LTLIBRARIES=libTKTopTest.la
libTKTopTest_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/TestTopOpeTools/TestTopOpeTools_Trace.cxx \
@top_srcdir@/src/TestTopOpeTools/TestTopOpeTools_TraceCommands.cxx
-libTKTopTest_la_LDFLAGS = -release 6.5.0
+libTKTopTest_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/ViewerTest -I@top_srcdir@/src/ViewerTest
-lib_LTLIBRARIES=libTKViewerTest.la
+pkglib_LTLIBRARIES=libTKViewerTest.la
libTKViewerTest_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/ViewerTest/ViewerTest_ViewerCommands.cxx \
@top_srcdir@/src/ViewerTest/ViewerTest_VoxelCommands.cxx
-libTKViewerTest_la_LDFLAGS = -release 6.5.0
+libTKViewerTest_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/XDEDRAW -I@top_srcdir@/src/XDEDRAW
-lib_LTLIBRARIES=libTKXDEDRAW.la
+pkglib_LTLIBRARIES=libTKXDEDRAW.la
libTKXDEDRAW_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/XDEDRAW/XDEDRAW_Props.cxx \
@top_srcdir@/src/XDEDRAW/XDEDRAW_Shapes.cxx
-libTKXDEDRAW_la_LDFLAGS = -release 6.5.0
+libTKXDEDRAW_la_LDFLAGS = -avoid-version
-I@top_srcdir@/drv/XSDRAWSTLVRML -I@top_srcdir@/src/XSDRAWSTLVRML
-lib_LTLIBRARIES=libTKXSDRAW.la
+pkglib_LTLIBRARIES=libTKXSDRAW.la
libTKXSDRAW_la_LIBADD = \
../TKernel/libTKernel.la \
@top_srcdir@/src/XSDRAWSTLVRML/XSDRAWSTLVRML_DataSource.cxx \
@top_srcdir@/src/XSDRAWSTLVRML/XSDRAWSTLVRML_DrawableMesh.cxx
-libTKXSDRAW_la_LDFLAGS = -release 6.5.0
+libTKXSDRAW_la_LDFLAGS = -avoid-version