pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Added systemc version 2.3.3 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%NetBSD.org@localhost>
Pushed By:	nros
Date:		Fri Sep 20 17:19:32 2019 +0000
Changeset:	6df7a4342f94ac47806c8b75fa2497930ac2038d

Modified Files:
	Makefile
Added Files:
	systemc/DESCR
	systemc/Makefile
	systemc/PLIST
	systemc/distinfo
	systemc/patches/patch-CMakeLists.txt
	systemc/patches/patch-src_CMakeLists.txt

Log Message:
Added systemc version 2.3.3 to pkgsrc-wip

SystemC is a language for system design and verifiction based on C++.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6df7a4342f94ac47806c8b75fa2497930ac2038d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                 |   1 +
 systemc/DESCR                            |   1 +
 systemc/Makefile                         |  23 +++
 systemc/PLIST                            | 315 +++++++++++++++++++++++++++++++
 systemc/distinfo                         |   8 +
 systemc/patches/patch-CMakeLists.txt     |  15 ++
 systemc/patches/patch-src_CMakeLists.txt |  42 +++++
 7 files changed, 405 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 59e472f1fb..bfe4e90b11 100644
--- a/Makefile
+++ b/Makefile
@@ -4639,6 +4639,7 @@ SUBDIR+=	sysklogd
 SUBDIR+=	sysstat
 SUBDIR+=	system-config-printer
 SUBDIR+=	system-tools-backends
+SUBDIR+=	systemc
 SUBDIR+=	systemsettings
 SUBDIR+=	sysvinit
 SUBDIR+=	syx
diff --git a/systemc/DESCR b/systemc/DESCR
new file mode 100644
index 0000000000..02321e6a74
--- /dev/null
+++ b/systemc/DESCR
@@ -0,0 +1 @@
+SystemC is language for system design and verification based on C++.
diff --git a/systemc/Makefile b/systemc/Makefile
new file mode 100644
index 0000000000..906c795d58
--- /dev/null
+++ b/systemc/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	systemc-2.3.3
+CATEGORIES=	lang
+MASTER_SITES=	https://accellera.org/images/downloads/standards/systemc/
+EXTRACT_USING=	bsdtar
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://accellera.org/community/systemc/
+COMMENT=	C language for system design
+LICENSE=	apache-2.0
+
+#GNU_CONFIGURE=	yes
+USE_CMAKE=	yes
+USE_TOOLS+=	pkg-config
+USE_LANGUAGES=	c c++
+
+CMAKE_ARGS+=	-DENABLE_PTHREADS=ON
+
+PKGCONFIG_OVERRIDE+=	src/systemc.pc.in
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/systemc/PLIST b/systemc/PLIST
new file mode 100644
index 0000000000..2bc57808bb
--- /dev/null
+++ b/systemc/PLIST
@@ -0,0 +1,315 @@
+@comment $NetBSD$
+include/sysc/communication/sc_buffer.h
+include/sysc/communication/sc_clock.h
+include/sysc/communication/sc_clock_ports.h
+include/sysc/communication/sc_communication_ids.h
+include/sysc/communication/sc_event_finder.h
+include/sysc/communication/sc_event_queue.h
+include/sysc/communication/sc_export.h
+include/sysc/communication/sc_fifo.h
+include/sysc/communication/sc_fifo_ifs.h
+include/sysc/communication/sc_fifo_ports.h
+include/sysc/communication/sc_host_mutex.h
+include/sysc/communication/sc_host_semaphore.h
+include/sysc/communication/sc_interface.h
+include/sysc/communication/sc_mutex.h
+include/sysc/communication/sc_mutex_if.h
+include/sysc/communication/sc_port.h
+include/sysc/communication/sc_prim_channel.h
+include/sysc/communication/sc_semaphore.h
+include/sysc/communication/sc_semaphore_if.h
+include/sysc/communication/sc_signal.h
+include/sysc/communication/sc_signal_ifs.h
+include/sysc/communication/sc_signal_ports.h
+include/sysc/communication/sc_signal_resolved.h
+include/sysc/communication/sc_signal_resolved_ports.h
+include/sysc/communication/sc_signal_rv.h
+include/sysc/communication/sc_signal_rv_ports.h
+include/sysc/communication/sc_writer_policy.h
+include/sysc/datatypes/bit/sc_bit.h
+include/sysc/datatypes/bit/sc_bit_ids.h
+include/sysc/datatypes/bit/sc_bit_proxies.h
+include/sysc/datatypes/bit/sc_bv.h
+include/sysc/datatypes/bit/sc_bv_base.h
+include/sysc/datatypes/bit/sc_logic.h
+include/sysc/datatypes/bit/sc_lv.h
+include/sysc/datatypes/bit/sc_lv_base.h
+include/sysc/datatypes/bit/sc_proxy.h
+include/sysc/datatypes/fx/fx.h
+include/sysc/datatypes/fx/sc_context.h
+include/sysc/datatypes/fx/sc_fix.h
+include/sysc/datatypes/fx/sc_fixed.h
+include/sysc/datatypes/fx/sc_fx_ids.h
+include/sysc/datatypes/fx/sc_fxcast_switch.h
+include/sysc/datatypes/fx/sc_fxdefs.h
+include/sysc/datatypes/fx/sc_fxnum.h
+include/sysc/datatypes/fx/sc_fxnum_observer.h
+include/sysc/datatypes/fx/sc_fxtype_params.h
+include/sysc/datatypes/fx/sc_fxval.h
+include/sysc/datatypes/fx/sc_fxval_observer.h
+include/sysc/datatypes/fx/sc_ufix.h
+include/sysc/datatypes/fx/sc_ufixed.h
+include/sysc/datatypes/fx/scfx_ieee.h
+include/sysc/datatypes/fx/scfx_mant.h
+include/sysc/datatypes/fx/scfx_other_defs.h
+include/sysc/datatypes/fx/scfx_params.h
+include/sysc/datatypes/fx/scfx_pow10.h
+include/sysc/datatypes/fx/scfx_rep.h
+include/sysc/datatypes/fx/scfx_string.h
+include/sysc/datatypes/fx/scfx_utils.h
+include/sysc/datatypes/int/sc_bigint.h
+include/sysc/datatypes/int/sc_biguint.h
+include/sysc/datatypes/int/sc_int.h
+include/sysc/datatypes/int/sc_int_base.h
+include/sysc/datatypes/int/sc_int_ids.h
+include/sysc/datatypes/int/sc_length_param.h
+include/sysc/datatypes/int/sc_nbdefs.h
+include/sysc/datatypes/int/sc_nbexterns.h
+include/sysc/datatypes/int/sc_nbutils.h
+include/sysc/datatypes/int/sc_signed.h
+include/sysc/datatypes/int/sc_uint.h
+include/sysc/datatypes/int/sc_uint_base.h
+include/sysc/datatypes/int/sc_unsigned.h
+include/sysc/datatypes/misc/sc_concatref.h
+include/sysc/datatypes/misc/sc_value_base.h
+include/sysc/kernel/sc_attribute.h
+include/sysc/kernel/sc_cmnhdr.h
+include/sysc/kernel/sc_constants.h
+include/sysc/kernel/sc_cor.h
+include/sysc/kernel/sc_cor_fiber.h
+include/sysc/kernel/sc_cor_pthread.h
+include/sysc/kernel/sc_cor_qt.h
+include/sysc/kernel/sc_cthread_process.h
+include/sysc/kernel/sc_dynamic_processes.h
+include/sysc/kernel/sc_event.h
+include/sysc/kernel/sc_except.h
+include/sysc/kernel/sc_externs.h
+include/sysc/kernel/sc_join.h
+include/sysc/kernel/sc_kernel_ids.h
+include/sysc/kernel/sc_macros.h
+include/sysc/kernel/sc_method_process.h
+include/sysc/kernel/sc_module.h
+include/sysc/kernel/sc_module_name.h
+include/sysc/kernel/sc_module_registry.h
+include/sysc/kernel/sc_name_gen.h
+include/sysc/kernel/sc_object.h
+include/sysc/kernel/sc_object_int.h
+include/sysc/kernel/sc_object_manager.h
+include/sysc/kernel/sc_phase_callback_registry.h
+include/sysc/kernel/sc_process.h
+include/sysc/kernel/sc_process_handle.h
+include/sysc/kernel/sc_reset.h
+include/sysc/kernel/sc_runnable.h
+include/sysc/kernel/sc_runnable_int.h
+include/sysc/kernel/sc_sensitive.h
+include/sysc/kernel/sc_simcontext.h
+include/sysc/kernel/sc_simcontext_int.h
+include/sysc/kernel/sc_spawn.h
+include/sysc/kernel/sc_spawn_options.h
+include/sysc/kernel/sc_status.h
+include/sysc/kernel/sc_thread_process.h
+include/sysc/kernel/sc_time.h
+include/sysc/kernel/sc_ver.h
+include/sysc/kernel/sc_wait.h
+include/sysc/kernel/sc_wait_cthread.h
+include/sysc/packages/boost/bind.hpp
+include/sysc/packages/boost/bind/apply.hpp
+include/sysc/packages/boost/bind/arg.hpp
+include/sysc/packages/boost/bind/bind_cc.hpp
+include/sysc/packages/boost/bind/bind_mf_cc.hpp
+include/sysc/packages/boost/bind/bind_template.hpp
+include/sysc/packages/boost/bind/make_adaptable.hpp
+include/sysc/packages/boost/bind/mem_fn_cc.hpp
+include/sysc/packages/boost/bind/mem_fn_template.hpp
+include/sysc/packages/boost/bind/mem_fn_vw.hpp
+include/sysc/packages/boost/bind/placeholders.hpp
+include/sysc/packages/boost/bind/protect.hpp
+include/sysc/packages/boost/config.hpp
+include/sysc/packages/boost/config/compiler/borland.hpp
+include/sysc/packages/boost/config/compiler/comeau.hpp
+include/sysc/packages/boost/config/compiler/common_edg.hpp
+include/sysc/packages/boost/config/compiler/compaq_cxx.hpp
+include/sysc/packages/boost/config/compiler/digitalmars.hpp
+include/sysc/packages/boost/config/compiler/gcc.hpp
+include/sysc/packages/boost/config/compiler/greenhills.hpp
+include/sysc/packages/boost/config/compiler/hp_acc.hpp
+include/sysc/packages/boost/config/compiler/intel.hpp
+include/sysc/packages/boost/config/compiler/kai.hpp
+include/sysc/packages/boost/config/compiler/metrowerks.hpp
+include/sysc/packages/boost/config/compiler/mpw.hpp
+include/sysc/packages/boost/config/compiler/sgi_mipspro.hpp
+include/sysc/packages/boost/config/compiler/sunpro_cc.hpp
+include/sysc/packages/boost/config/compiler/vacpp.hpp
+include/sysc/packages/boost/config/compiler/visualc.hpp
+include/sysc/packages/boost/config/platform/aix.hpp
+include/sysc/packages/boost/config/platform/amigaos.hpp
+include/sysc/packages/boost/config/platform/beos.hpp
+include/sysc/packages/boost/config/platform/bsd.hpp
+include/sysc/packages/boost/config/platform/cygwin.hpp
+include/sysc/packages/boost/config/platform/hpux.hpp
+include/sysc/packages/boost/config/platform/irix.hpp
+include/sysc/packages/boost/config/platform/linux.hpp
+include/sysc/packages/boost/config/platform/macos.hpp
+include/sysc/packages/boost/config/platform/solaris.hpp
+include/sysc/packages/boost/config/platform/win32.hpp
+include/sysc/packages/boost/config/posix_features.hpp
+include/sysc/packages/boost/config/select_compiler_config.hpp
+include/sysc/packages/boost/config/select_platform_config.hpp
+include/sysc/packages/boost/config/select_stdlib_config.hpp
+include/sysc/packages/boost/config/stdlib/dinkumware.hpp
+include/sysc/packages/boost/config/stdlib/libcomo.hpp
+include/sysc/packages/boost/config/stdlib/libstdcpp3.hpp
+include/sysc/packages/boost/config/stdlib/modena.hpp
+include/sysc/packages/boost/config/stdlib/msl.hpp
+include/sysc/packages/boost/config/stdlib/roguewave.hpp
+include/sysc/packages/boost/config/stdlib/sgi.hpp
+include/sysc/packages/boost/config/stdlib/stlport.hpp
+include/sysc/packages/boost/config/stdlib/vacpp.hpp
+include/sysc/packages/boost/config/suffix.hpp
+include/sysc/packages/boost/config/user.hpp
+include/sysc/packages/boost/detail/endian.hpp
+include/sysc/packages/boost/detail/workaround.hpp
+include/sysc/packages/boost/get_pointer.hpp
+include/sysc/packages/boost/mem_fn.hpp
+include/sysc/packages/boost/mpl/aux_/adl_barrier.hpp
+include/sysc/packages/boost/mpl/aux_/config/adl.hpp
+include/sysc/packages/boost/mpl/aux_/config/gcc.hpp
+include/sysc/packages/boost/mpl/aux_/config/intel.hpp
+include/sysc/packages/boost/mpl/aux_/config/msvc.hpp
+include/sysc/packages/boost/mpl/aux_/config/static_constant.hpp
+include/sysc/packages/boost/mpl/aux_/config/workaround.hpp
+include/sysc/packages/boost/mpl/bool.hpp
+include/sysc/packages/boost/mpl/bool_fwd.hpp
+include/sysc/packages/boost/mpl/integral_c_tag.hpp
+include/sysc/packages/boost/non_type.hpp
+include/sysc/packages/boost/ref.hpp
+include/sysc/packages/boost/type.hpp
+include/sysc/packages/boost/utility/addressof.hpp
+include/sysc/packages/boost/utility/enable_if.hpp
+include/sysc/packages/boost/utility/string_view.hpp
+include/sysc/packages/boost/utility/string_view_fwd.hpp
+include/sysc/packages/qt/b.h
+include/sysc/packages/qt/copyright.h
+include/sysc/packages/qt/md/aarch64.h
+include/sysc/packages/qt/md/axp.h
+include/sysc/packages/qt/md/hppa.h
+include/sysc/packages/qt/md/i386.h
+include/sysc/packages/qt/md/iX86_64.h
+include/sysc/packages/qt/md/ksr1.h
+include/sysc/packages/qt/md/m88k.h
+include/sysc/packages/qt/md/mips.h
+include/sysc/packages/qt/md/powerpc_mach.h
+include/sysc/packages/qt/md/powerpc_sys5.h
+include/sysc/packages/qt/md/sparc.h
+include/sysc/packages/qt/md/vax.h
+include/sysc/packages/qt/qt.h
+include/sysc/packages/qt/qtmd.h
+include/sysc/packages/qt/stp.h
+include/sysc/tracing/sc_trace.h
+include/sysc/tracing/sc_trace_file_base.h
+include/sysc/tracing/sc_tracing_ids.h
+include/sysc/tracing/sc_vcd_trace.h
+include/sysc/tracing/sc_wif_trace.h
+include/sysc/utils/sc_hash.h
+include/sysc/utils/sc_list.h
+include/sysc/utils/sc_machine.h
+include/sysc/utils/sc_mempool.h
+include/sysc/utils/sc_pq.h
+include/sysc/utils/sc_pvector.h
+include/sysc/utils/sc_report.h
+include/sysc/utils/sc_report_handler.h
+include/sysc/utils/sc_stop_here.h
+include/sysc/utils/sc_string.h
+include/sysc/utils/sc_string_view.h
+include/sysc/utils/sc_temporary.h
+include/sysc/utils/sc_typeindex.h
+include/sysc/utils/sc_utils_ids.h
+include/sysc/utils/sc_vector.h
+include/systemc
+include/systemc.h
+include/tlm
+include/tlm.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_analysis.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_analysis_fifo.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_analysis_if.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_analysis_port.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_analysis_triple.h
+include/tlm_core/tlm_1/tlm_analysis/tlm_write_if.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_core_ifs.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_fifo_ifs.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_master_slave_ifs.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_1_interfaces/tlm_tag.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_adapters/tlm_adapters.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/circular_buffer.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_peek.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_put_get.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/tlm_fifo_resize.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_req_rsp_channels/tlm_put_get_imp.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_req_rsp_channels/tlm_req_rsp_channels.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_ports/tlm_event_finder.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_ports/tlm_nonblocking_port.h
+include/tlm_core/tlm_1/tlm_req_rsp/tlm_req_rsp.h
+include/tlm_core/tlm_2/tlm_2_interfaces/tlm_2_interfaces.h
+include/tlm_core/tlm_2/tlm_2_interfaces/tlm_dmi.h
+include/tlm_core/tlm_2/tlm_2_interfaces/tlm_fw_bw_ifs.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_array.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_endian_conv.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_generic_payload.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_gp.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_helpers.h
+include/tlm_core/tlm_2/tlm_generic_payload/tlm_phase.h
+include/tlm_core/tlm_2/tlm_quantum/tlm_global_quantum.h
+include/tlm_core/tlm_2/tlm_quantum/tlm_quantum.h
+include/tlm_core/tlm_2/tlm_sockets/tlm_base_socket_if.h
+include/tlm_core/tlm_2/tlm_sockets/tlm_initiator_socket.h
+include/tlm_core/tlm_2/tlm_sockets/tlm_sockets.h
+include/tlm_core/tlm_2/tlm_sockets/tlm_target_socket.h
+include/tlm_core/tlm_2/tlm_version.h
+include/tlm_utils/convenience_socket_bases.h
+include/tlm_utils/instance_specific_extensions.h
+include/tlm_utils/instance_specific_extensions_int.h
+include/tlm_utils/multi_passthrough_initiator_socket.h
+include/tlm_utils/multi_passthrough_target_socket.h
+include/tlm_utils/multi_socket_bases.h
+include/tlm_utils/passthrough_target_socket.h
+include/tlm_utils/peq_with_cb_and_phase.h
+include/tlm_utils/peq_with_get.h
+include/tlm_utils/simple_initiator_socket.h
+include/tlm_utils/simple_target_socket.h
+include/tlm_utils/tlm_quantumkeeper.h
+lib/cmake/SystemCLanguage/SystemCLanguageConfig.cmake
+lib/cmake/SystemCLanguage/SystemCLanguageConfigVersion.cmake
+lib/cmake/SystemCLanguage/SystemCLanguageTargets-release.cmake
+lib/cmake/SystemCLanguage/SystemCLanguageTargets.cmake
+lib/cmake/SystemCTLM/SystemCTLMConfig.cmake
+lib/cmake/SystemCTLM/SystemCTLMConfigVersion.cmake
+lib/libsystemc.so
+lib/libsystemc.so.2.3
+lib/libsystemc.so.${PKGVERSION}
+lib/pkgconfig/systemc.pc
+lib/pkgconfig/tlm.pc
+share/doc/systemc/AUTHORS
+share/doc/systemc/ChangeLog
+share/doc/systemc/INSTALL
+share/doc/systemc/INSTALL_USING_CMAKE
+share/doc/systemc/LICENSE
+share/doc/systemc/NEWS
+share/doc/systemc/NOTICE
+share/doc/systemc/README
+share/doc/systemc/RELEASENOTES
+share/doc/systemc/sysc/README
+share/doc/systemc/sysc/SystemC_2011_New_Features.pdf
+share/doc/systemc/sysc/archived/FuncSpec20.pdf
+share/doc/systemc/sysc/archived/README
+share/doc/systemc/sysc/archived/SystemC_2_1_features.pdf
+share/doc/systemc/sysc/archived/SystemC_2_1_overview.pdf
+share/doc/systemc/sysc/archived/UserGuide20.pdf
+share/doc/systemc/sysc/archived/WhitePaper20.pdf
+share/doc/systemc/tlm/ChangeLog
+share/doc/systemc/tlm/release/README.txt
+share/doc/systemc/tlm/release/TLM_2_0_presentation.pdf
+share/doc/systemc/tlm/release/TLM_2_0_presentation.ppt
+share/doc/systemc/tlm/release/TLM_2_0_requirements.pdf
+share/doc/systemc/tlm/release/TLM_2_0_white_paper.pdf
+share/doc/systemc/tlm/tlm_README
diff --git a/systemc/distinfo b/systemc/distinfo
new file mode 100644
index 0000000000..2cd2964525
--- /dev/null
+++ b/systemc/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (systemc-2.3.3.tar.gz) = f861e02ba3a89cc000b62a21cecabaae910b7ef9
+RMD160 (systemc-2.3.3.tar.gz) = be83b5d7825bf64fdf08a44ff16ceaf4e1ecf476
+SHA512 (systemc-2.3.3.tar.gz) = 831255f8e76e1cf776e0407c92c7a0b70ba63cf6b1785a2df372a6394440944540a8ae62264ef5293a7b951bd8b37de089ef0dbc0ee2d0354e69ce552c020ca2
+Size (systemc-2.3.3.tar.gz) = 7133464 bytes
+SHA1 (patch-CMakeLists.txt) = 7f5ffd79d3e45e8b53dff980fe63692dd99860d0
+SHA1 (patch-src_CMakeLists.txt) = 50660545f348f7973ffc5c3f9f523235b0123d48
diff --git a/systemc/patches/patch-CMakeLists.txt b/systemc/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..ab56bfc85b
--- /dev/null
+++ b/systemc/patches/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+* don't write data into the home directories
+--- CMakeLists.txt.orig	2019-09-20 12:29:50.730145682 +0000
++++ CMakeLists.txt
+@@ -749,8 +749,8 @@ install (EXPORT SystemCLanguageTargets
+ 
+ # Register the SystemCLanguage and SystemCTLM packages for use from the
+ # build tree. (This registers the build tree with the global CMake-registry.)
+-export (PACKAGE SystemCLanguage)
+-export (PACKAGE SystemCTLM)
++#export (PACKAGE SystemCLanguage)
++#export (PACKAGE SystemCTLM)
+ 
+ # Create the <Package>Config.cmake and <Package>ConfigVersion files
+ include(CMakePackageConfigHelpers)
diff --git a/systemc/patches/patch-src_CMakeLists.txt b/systemc/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000000..49b2c77972
--- /dev/null
+++ b/systemc/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,42 @@
+$NetBSD$
+* Don't install build generated files and empty dirs.
+* Generate and install pkg-config files.
+--- src/CMakeLists.txt.orig	2018-10-13 08:19:07.000000000 +0000
++++ src/CMakeLists.txt
+@@ -524,8 +524,34 @@ install (FILES systemc tlm
+ install (DIRECTORY ./
+          DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+          COMPONENT dev
+-         FILES_MATCHING PATTERN "*.h")
++         FILES_MATCHING PATTERN "*.h"
++         PATTERN "qt/time" EXCLUDE
++         PATTERN "CMakeFiles" EXCLUDE)
+ install (DIRECTORY ./
+          DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
+          COMPONENT dev
+-         FILES_MATCHING PATTERN "*.hpp")
++         FILES_MATCHING PATTERN "*.hpp"
++         PATTERN "qt/time" EXCLUDE
++         PATTERN "CMakeFiles" EXCLUDE)
++
++# setup pkgconfig
++set(PACKAGE "systemc")
++set(PACKAGE_NAME "SystemC")
++set(PACKAGE_VERSION "${SystemCLanguage_VERSION}")
++set(PACKAGE_URL "http://accellera.org/";)
++set(TLM_PACKAGE_VERSION "${SystemCTLM_VERSION}")
++set(prefix "${CMAKE_INSTALL_PREFIX}")
++set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
++set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
++set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
++set(PKGCONFIG_LDPRIV "${CMAKE_THREAD_LIBS_INIT}")
++if (DISABLE_VIRTUAL_BIND)
++   set (PKGCONFIG_DEFINES "-DSC_DISABLE_VIRTUAL_BIND")
++endif (DISABLE_VIRTUAL_BIND)
++if (DEFINED THREADS_HAVE_PTHREAD_ARG)
++   set (PKGCONFIG_CFLAGS "-pthread ")
++endif (DEFINED THREADS_HAVE_PTHREAD_ARG)
++configure_file (systemc.pc.in systemc.pc @ONLY)
++configure_file (tlm.pc.in tlm.pc @ONLY)
++install (FILES systemc.pc tlm.pc 
++         DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig)


Home | Main Index | Thread Index | Old Index