pkgsrc-WIP-changes archive

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

din: imported from audio (tests necessary for Darwin)



Module Name:	pkgsrc-wip
Committed By:	Manuel Kuklinski <mk%asdfghasdfgh.de@localhost>
Pushed By:	mk
Date:		Sun Nov 5 19:37:40 2023 +0100
Changeset:	4d38be89d1eb8ba299037257583822ed18570771

Added Files:
	din/DESCR
	din/Makefile
	din/PLIST
	din/distinfo
	din/options.mk
	din/patches/patch-src_Makefile.am
	din/patches/patch-src_Makefile.in
	din/patches/patch-src_RtMidi.cpp

Log Message:
din: imported from audio (tests necessary for Darwin)

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

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

diffstat:
 din/DESCR                         |   7 +
 din/Makefile                      |  31 +++
 din/PLIST                         | 504 ++++++++++++++++++++++++++++++++++++++
 din/distinfo                      |   8 +
 din/options.mk                    |  34 +++
 din/patches/patch-src_Makefile.am |  18 ++
 din/patches/patch-src_Makefile.in |  68 +++++
 din/patches/patch-src_RtMidi.cpp  |  17 ++
 8 files changed, 687 insertions(+)

diffs:
diff --git a/din/DESCR b/din/DESCR
new file mode 100644
index 0000000000..05be7c50fc
--- /dev/null
+++ b/din/DESCR
@@ -0,0 +1,7 @@
+DIN Is Noise is a program for making sound, music and noise. Use
+bezier curves to edit waveforms, envelopes, modulators and FX
+components; use the keyboard (computer and MIDI) to trigger notes (or
+noise), use the mouse to sound like the theremin, create drones on
+microtones, launch, orbit and drag them around; bounce balls on walls
+to trigger notes in a mondrian inspired drawing and also make binaural
+beats. Supports MIDI input and scripting through TCL.
diff --git a/din/Makefile b/din/Makefile
new file mode 100644
index 0000000000..faffed35e9
--- /dev/null
+++ b/din/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.47 2023/09/12 07:55:11 fox Exp $
+
+DISTNAME=	din-57
+CATEGORIES=	audio
+MASTER_SITES=	https://archive.org/download/dinisnoise_source_code/
+
+MAINTAINER=	fox%NetBSD.org@localhost
+HOMEPAGE=	https://dinisnoise.org/
+COMMENT=	Open source cross-platform sound synthesizer
+LICENSE=	gnu-gpl-v2
+
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	autoconf autoreconf automake pkg-config gmake
+GNU_CONFIGURE=	yes
+CXXFLAGS+=	-std=c++11 -E
+
+LIBS+=		-ltcl -lSDL -lGL -lpthread
+LIBS.Darwin+=	-lSDLmain -lSDL -Wl,-framework,Cocoa
+
+pre-configure:
+	${RUN} cd ${WRKSRC} && autoreconf -fvi || ${ECHO} Ignore the warnings from autoreconf
+
+.include "options.mk"
+
+#.include "../../devel/boost-libs/buildlink3.mk"
+#.include "../../wip/rtaudio/buildlink3.mk"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../wip/sdl12-compat/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/din/PLIST b/din/PLIST
new file mode 100644
index 0000000000..8ce842514d
--- /dev/null
+++ b/din/PLIST
@@ -0,0 +1,504 @@
+@comment $NetBSD$
+share/applications/din.desktop
+share/din/factory/2600
+share/din/factory/2600.help.tcl
+share/din/factory/2600.patch.tcl
+share/din/factory/Makefile.am
+share/din/factory/Sine_Mixer
+share/din/factory/all_notes
+share/din/factory/am.crv
+share/din/factory/attack.crv
+share/din/factory/attack.ed
+share/din/factory/attack.lib
+share/din/factory/audio_prefs
+share/din/factory/bd.ins
+share/din/factory/binaural-drone.help.tcl
+share/din/factory/binaural-drones-waveform.crv
+share/din/factory/binaural-drones-waveform.ed
+share/din/factory/binaural-drones.hlp
+share/din/factory/binaural-drones.tcl
+share/din/factory/binaural_drones
+share/din/factory/blues
+share/din/factory/blues.drone
+share/din/factory/blues.intervals
+share/din/factory/blues.ranges
+share/din/factory/changer.help.tcl
+share/din/factory/changer.patch.tcl
+share/din/factory/chord.help.tcl
+share/din/factory/circler.scr
+share/din/factory/circler_cos.crv
+share/din/factory/circler_cos.ed
+share/din/factory/circler_radius.crv
+share/din/factory/circler_radius.ed
+share/din/factory/circler_sin.crv
+share/din/factory/circler_sin.ed
+share/din/factory/color-sliders
+share/din/factory/coml.crv
+share/din/factory/compressor.ed
+share/din/factory/comr.crv
+share/din/factory/cos.lib
+share/din/factory/country/afghanistan
+share/din/factory/country/albania
+share/din/factory/country/algeria
+share/din/factory/country/american_samoa
+share/din/factory/country/andorra
+share/din/factory/country/angola
+share/din/factory/country/anguilla
+share/din/factory/country/antarctica
+share/din/factory/country/antigua_and_barbuda
+share/din/factory/country/argentina
+share/din/factory/country/armenia
+share/din/factory/country/aruba
+share/din/factory/country/australia
+share/din/factory/country/austria
+share/din/factory/country/azerbaijan
+share/din/factory/country/bahamas
+share/din/factory/country/bahrain
+share/din/factory/country/bangladesh
+share/din/factory/country/barbados
+share/din/factory/country/belarus
+share/din/factory/country/belgium
+share/din/factory/country/belize
+share/din/factory/country/benin
+share/din/factory/country/bermuda
+share/din/factory/country/bhutan
+share/din/factory/country/bolivia
+share/din/factory/country/bosnia_and_herzegovina
+share/din/factory/country/botswana
+share/din/factory/country/bouvet_island
+share/din/factory/country/brazil
+share/din/factory/country/british_indian_ocean_territory
+share/din/factory/country/british_virgin_islands
+share/din/factory/country/brunei_darussalam
+share/din/factory/country/bulgaria
+share/din/factory/country/burkina_faso
+share/din/factory/country/burma
+share/din/factory/country/burundi
+share/din/factory/country/cambodia
+share/din/factory/country/cameroon
+share/din/factory/country/canada
+share/din/factory/country/cape_verde
+share/din/factory/country/cayman_islands
+share/din/factory/country/central_african_republic
+share/din/factory/country/chad
+share/din/factory/country/chile
+share/din/factory/country/china
+share/din/factory/country/christmas_island
+share/din/factory/country/cocos__keeling__islands
+share/din/factory/country/colombia
+share/din/factory/country/comoros
+share/din/factory/country/congo
+share/din/factory/country/cook_islands
+share/din/factory/country/costa_rica
+share/din/factory/country/cote_d_ivoire
+share/din/factory/country/croatia
+share/din/factory/country/cuba
+share/din/factory/country/cyprus
+share/din/factory/country/czech_republic
+share/din/factory/country/democratic_republic_of_the_congo
+share/din/factory/country/denmark
+share/din/factory/country/djibouti
+share/din/factory/country/dominica
+share/din/factory/country/dominican_republic
+share/din/factory/country/ecuador
+share/din/factory/country/egypt
+share/din/factory/country/el_salvador
+share/din/factory/country/equatorial_guinea
+share/din/factory/country/eritrea
+share/din/factory/country/estonia
+share/din/factory/country/ethiopia
+share/din/factory/country/falkland_islands__malvinas_
+share/din/factory/country/faroe_islands
+share/din/factory/country/fiji
+share/din/factory/country/finland
+share/din/factory/country/france
+share/din/factory/country/french_guiana
+share/din/factory/country/french_polynesia
+share/din/factory/country/french_southern_and_antarctic_lands
+share/din/factory/country/gabon
+share/din/factory/country/gambia
+share/din/factory/country/georgia
+share/din/factory/country/germany
+share/din/factory/country/ghana
+share/din/factory/country/gibraltar
+share/din/factory/country/greece
+share/din/factory/country/greenland
+share/din/factory/country/grenada
+share/din/factory/country/guadeloupe
+share/din/factory/country/guam
+share/din/factory/country/guatemala
+share/din/factory/country/guernsey
+share/din/factory/country/guinea
+share/din/factory/country/guinea-bissau
+share/din/factory/country/guyana
+share/din/factory/country/haiti
+share/din/factory/country/heard_island_and_mcdonald_islands
+share/din/factory/country/holy_see__vatican_city_
+share/din/factory/country/honduras
+share/din/factory/country/hong_kong
+share/din/factory/country/hungary
+share/din/factory/country/iceland
+share/din/factory/country/index
+share/din/factory/country/india
+share/din/factory/country/indonesia
+share/din/factory/country/iran
+share/din/factory/country/iraq
+share/din/factory/country/ireland
+share/din/factory/country/isle_of_man
+share/din/factory/country/israel
+share/din/factory/country/italy
+share/din/factory/country/jamaica
+share/din/factory/country/japan
+share/din/factory/country/jersey
+share/din/factory/country/jordan
+share/din/factory/country/kazakhstan
+share/din/factory/country/kenya
+share/din/factory/country/kiribati
+share/din/factory/country/kuwait
+share/din/factory/country/kyrgyzstan
+share/din/factory/country/lao_people_s_democratic_republic
+share/din/factory/country/laos
+share/din/factory/country/latvia
+share/din/factory/country/lebanon
+share/din/factory/country/lesotho
+share/din/factory/country/liberia
+share/din/factory/country/libya
+share/din/factory/country/libyan_arab_jamahiriya
+share/din/factory/country/liechtenstein
+share/din/factory/country/lithuania
+share/din/factory/country/luxembourg
+share/din/factory/country/macau
+share/din/factory/country/macedonia
+share/din/factory/country/madagascar
+share/din/factory/country/malawi
+share/din/factory/country/malaysia
+share/din/factory/country/maldives
+share/din/factory/country/mali
+share/din/factory/country/malta
+share/din/factory/country/marshall_islands
+share/din/factory/country/martinique
+share/din/factory/country/mauritania
+share/din/factory/country/mauritius
+share/din/factory/country/mayotte
+share/din/factory/country/mexico
+share/din/factory/country/micronesia
+share/din/factory/country/micronesia__federated_states_of
+share/din/factory/country/monaco
+share/din/factory/country/mongolia
+share/din/factory/country/montenegro
+share/din/factory/country/montserrat
+share/din/factory/country/morocco
+share/din/factory/country/mozambique
+share/din/factory/country/namibia
+share/din/factory/country/nauru
+share/din/factory/country/nepal
+share/din/factory/country/netherlands
+share/din/factory/country/netherlands_antilles
+share/din/factory/country/new_caledonia
+share/din/factory/country/new_zealand
+share/din/factory/country/nicaragua
+share/din/factory/country/niger
+share/din/factory/country/nigeria
+share/din/factory/country/niue
+share/din/factory/country/norfolk_island
+share/din/factory/country/north_korea
+share/din/factory/country/northern_mariana_islands
+share/din/factory/country/norway
+share/din/factory/country/oman
+share/din/factory/country/pakistan
+share/din/factory/country/palau
+share/din/factory/country/palestine
+share/din/factory/country/panama
+share/din/factory/country/papua_new_guinea
+share/din/factory/country/paraguay
+share/din/factory/country/peru
+share/din/factory/country/philippines
+share/din/factory/country/pitcairn_islands
+share/din/factory/country/poland
+share/din/factory/country/portugal
+share/din/factory/country/puerto_rico
+share/din/factory/country/qatar
+share/din/factory/country/republic_of_moldova
+share/din/factory/country/reunion
+share/din/factory/country/romania
+share/din/factory/country/russia
+share/din/factory/country/rwanda
+share/din/factory/country/saint_barthelemy
+share/din/factory/country/saint_helena
+share/din/factory/country/saint_kitts_and_nevis
+share/din/factory/country/saint_lucia
+share/din/factory/country/saint_martin
+share/din/factory/country/saint_pierre_and_miquelon
+share/din/factory/country/saint_vincent_and_the_grenadines
+share/din/factory/country/samoa
+share/din/factory/country/san_marino
+share/din/factory/country/sao_tome_and_principe
+share/din/factory/country/saudi_arabia
+share/din/factory/country/senegal
+share/din/factory/country/serbia
+share/din/factory/country/seychelles
+share/din/factory/country/sierra_leone
+share/din/factory/country/singapore
+share/din/factory/country/slovakia
+share/din/factory/country/slovenia
+share/din/factory/country/solomon_islands
+share/din/factory/country/somalia
+share/din/factory/country/south_africa
+share/din/factory/country/south_georgia_south_sandwich_islands
+share/din/factory/country/south_korea
+share/din/factory/country/spain
+share/din/factory/country/sri_lanka
+share/din/factory/country/sudan
+share/din/factory/country/suriname
+share/din/factory/country/svalbard
+share/din/factory/country/swaziland
+share/din/factory/country/sweden
+share/din/factory/country/switzerland
+share/din/factory/country/syrian_arab_republic
+share/din/factory/country/taiwan
+share/din/factory/country/tajikistan
+share/din/factory/country/thailand
+share/din/factory/country/the_former_yugoslav_republic_of_macedonia
+share/din/factory/country/timor-leste
+share/din/factory/country/togo
+share/din/factory/country/tokelau
+share/din/factory/country/tonga
+share/din/factory/country/trinidad_and_tobago
+share/din/factory/country/tunisia
+share/din/factory/country/turkey
+share/din/factory/country/turkmenistan
+share/din/factory/country/turks_and_caicos_islands
+share/din/factory/country/tuvalu
+share/din/factory/country/uganda
+share/din/factory/country/ukraine
+share/din/factory/country/united_arab_emirates
+share/din/factory/country/united_kingdom
+share/din/factory/country/united_republic_of_tanzania
+share/din/factory/country/united_states
+share/din/factory/country/united_states_minor_outlying_islands
+share/din/factory/country/united_states_virgin_islands
+share/din/factory/country/uruguay
+share/din/factory/country/uzbekistan
+share/din/factory/country/vanuatu
+share/din/factory/country/venezuela
+share/din/factory/country/vietnam
+share/din/factory/country/wallis_and_futuna_islands
+share/din/factory/country/western_sahara
+share/din/factory/country/yemen
+share/din/factory/country/zambia
+share/din/factory/country/zimbabwe
+share/din/factory/curve-library.help.tcl
+share/din/factory/curve-name.help.tcl
+share/din/factory/curve-value.help.tcl
+share/din/factory/curve_editor.hlp
+share/din/factory/d_capturer
+share/din/factory/d_circler
+share/din/factory/d_countries
+share/din/factory/d_curve_picker
+share/din/factory/d_dotter
+share/din/factory/d_dpeu
+share/din/factory/d_fft
+share/din/factory/d_fractaliser
+share/din/factory/d_lissajous
+share/din/factory/d_menu
+share/din/factory/d_min_max
+share/din/factory/d_morpher
+share/din/factory/d_number
+share/din/factory/d_octave_shift
+share/din/factory/d_parameters
+share/din/factory/d_plugin_browser
+share/din/factory/d_point_modulator
+share/din/factory/d_rose_milker
+share/din/factory/d_sine_mixer
+share/din/factory/d_spiraler
+share/din/factory/d_starrer
+share/din/factory/d_superformula
+share/din/factory/d_warper
+share/din/factory/dash.crv
+share/din/factory/decay.crv
+share/din/factory/decay.ed
+share/din/factory/decay.lib
+share/din/factory/delay.ed
+share/din/factory/din.hlp
+share/din/factory/din.osc
+share/din/factory/din_info
+share/din/factory/dot.crv
+share/din/factory/dp_bpm.crv
+share/din/factory/dp_depth.crv
+share/din/factory/drone-mod-am.crv
+share/din/factory/drone-mod-fm.crv
+share/din/factory/drone-modulation.ed
+share/din/factory/drone-pend.ed
+share/din/factory/drone.crv
+share/din/factory/drone.ed
+share/din/factory/droner.help.tcl
+share/din/factory/droner.patch.tcl
+share/din/factory/dummy.crv
+share/din/factory/echo.help.tcl
+share/din/factory/equal-temperament.tuning
+share/din/factory/fader.crv
+share/din/factory/feedback-l.crv
+share/din/factory/feedback-r.crv
+share/din/factory/fft_levels
+share/din/factory/fm.crv
+share/din/factory/font.ed
+share/din/factory/font.hlp
+share/din/factory/gater-patterns.lib
+share/din/factory/gater.crv
+share/din/factory/gater.ed
+share/din/factory/get-beat.help.tcl
+share/din/factory/get-bpm.help.tcl
+share/din/factory/get-curve-editor.help.tcl
+share/din/factory/get-delay.help.tcl
+share/din/factory/get-drone.help.tcl
+share/din/factory/get-font-size.help.tcl
+share/din/factory/get-kern.help.tcl
+share/din/factory/get-scope.help.tcl
+share/din/factory/get-selection.help.tcl
+share/din/factory/get-style.help.tcl
+share/din/factory/get-var.help.tcl
+share/din/factory/globals
+share/din/factory/gravmod.crv
+share/din/factory/gravmod.ed
+share/din/factory/harmonics
+share/din/factory/harmonics.help.tcl
+share/din/factory/harmonics.patch.tcl
+share/din/factory/help.tcl
+share/din/factory/i8n_morse_code
+share/din/factory/init.tcl
+share/din/factory/inner.crv
+share/din/factory/inner_space.crv
+share/din/factory/jag.fnt
+share/din/factory/just-intonation.tuning
+share/din/factory/kbkb.ins
+share/din/factory/key.help.tcl
+share/din/factory/keyboard-keyboard-waveform.crv
+share/din/factory/keyboard-keyboard-waveform.ed
+share/din/factory/keyboard-keyboard.hlp
+share/din/factory/keyboard-keyboard.settings
+share/din/factory/laser.fnt
+share/din/factory/letter.crv
+share/din/factory/letter_space.crv
+share/din/factory/list-audio.help.tcl
+share/din/factory/list-patches.help.tcl
+share/din/factory/load-patch.help.tcl
+share/din/factory/load-scale.help.tcl
+share/din/factory/major-chord
+share/din/factory/make-interval-note-vars.tcl
+share/din/factory/microtonal-keyboard-waveform.crv
+share/din/factory/microtonal-keyboard-waveform.ed
+share/din/factory/midimap.help.tcl
+share/din/factory/midimap.patch.tcl
+share/din/factory/mkb.ins
+share/din/factory/modulation.ed
+share/din/factory/modv.crv
+share/din/factory/modv.ed
+share/din/factory/mondrian.ed
+share/din/factory/mondrian.hlp
+share/din/factory/mondrian_attack.crv
+share/din/factory/mondrian_attack.ed
+share/din/factory/mondrian_decay.crv
+share/din/factory/mondrian_decay.ed
+share/din/factory/mondrian_waveform.crv
+share/din/factory/mondrian_waveform.ed
+share/din/factory/morph_source.crv
+share/din/factory/morph_target.crv
+share/din/factory/morse-code.ed
+share/din/factory/morse-code.help.tcl
+share/din/factory/noiser.crv
+share/din/factory/noiser.ed
+share/din/factory/notation.help.tcl
+share/din/factory/note-distance.help.tcl
+share/din/factory/num-octaves.help.tcl
+share/din/factory/octave-shift-patterns.lib
+share/din/factory/octave-shift.crv
+share/din/factory/octave-shift.ed
+share/din/factory/p_Circler
+share/din/factory/p_Countries
+share/din/factory/p_Fractaliser
+share/din/factory/p_Lissajous
+share/din/factory/p_Morpher
+share/din/factory/p_Number
+share/din/factory/p_Rose_Milker
+share/din/factory/p_Sine_Mixer
+share/din/factory/p_Spiraler
+share/din/factory/p_Starrer
+share/din/factory/p_Superformula
+share/din/factory/phases
+share/din/factory/pitch-vol.ed
+share/din/factory/pitch.crv
+share/din/factory/point-modulation.ed
+share/din/factory/pomo-x.crv
+share/din/factory/pomo-y.crv
+share/din/factory/pythagoras.tuning
+share/din/factory/range-height.crv
+share/din/factory/range-height.crv.default
+share/din/factory/range-mod-height.crv
+share/din/factory/range-mod-width.crv
+share/din/factory/range-modulation.ed
+share/din/factory/range-width-height.ed
+share/din/factory/range-width.crv
+share/din/factory/range-width.crv.default
+share/din/factory/rose_milker.scr
+share/din/factory/rose_milker_cos.crv
+share/din/factory/rose_milker_cos.ed
+share/din/factory/rose_milker_radius.crv
+share/din/factory/rose_milker_radius.ed
+share/din/factory/rose_milker_sin.crv
+share/din/factory/rose_milker_sin.ed
+share/din/factory/save_settings.tcl
+share/din/factory/scalelist
+share/din/factory/scope.osc
+share/din/factory/scoper.help.tcl
+share/din/factory/scoper.patch.tcl
+share/din/factory/seed.crv
+share/din/factory/seed.ed
+share/din/factory/seed.lib
+share/din/factory/set-audio.help.tcl
+share/din/factory/set-beat.help.tcl
+share/din/factory/set-bpm.help.tcl
+share/din/factory/set-curve-editor.help.tcl
+share/din/factory/set-delay.help.tcl
+share/din/factory/set-drone.help.tcl
+share/din/factory/set-font-size.help.tcl
+share/din/factory/set-kern.help.tcl
+share/din/factory/set-midi.help.tcl
+share/din/factory/set-scope.help.tcl
+share/din/factory/set-style.help.tcl
+share/din/factory/set-text-color.help.tcl
+share/din/factory/set-var.help.tcl
+share/din/factory/settings.tcl
+share/din/factory/setup-user-dir.tcl
+share/din/factory/sin.lib
+share/din/factory/sine_mixer_sin.crv
+share/din/factory/sine_mixer_sin.ed
+share/din/factory/sounding-board.osc
+share/din/factory/spinners
+share/din/factory/spiraler.scr
+share/din/factory/spiraler_cos.crv
+share/din/factory/spiraler_cos.ed
+share/din/factory/spiraler_radius.crv
+share/din/factory/spiraler_radius.ed
+share/din/factory/spiraler_radius.lib
+share/din/factory/spiraler_sin.crv
+share/din/factory/spiraler_sin.ed
+share/din/factory/start-end.help.tcl
+share/din/factory/start-end.patch.tcl
+share/din/factory/tuning.help.tcl
+share/din/factory/velocity.crv
+share/din/factory/velocity.ed
+share/din/factory/velocity.lib
+share/din/factory/vol.crv
+share/din/factory/volume-l.crv
+share/din/factory/volume-r.crv
+share/din/factory/warper.ed
+share/din/factory/warpx.crv
+share/din/factory/warpy.crv
+share/din/factory/waveforms.lib
+share/din/factory/window
+share/din/factory/word.crv
+share/din/factory/word_space.crv
+share/din/factory/write-svg.help.tcl
+share/icons/hicolor/scalable/apps/din.svg
+share/pixmaps/din.png
+@pkgdir bin
diff --git a/din/distinfo b/din/distinfo
new file mode 100644
index 0000000000..103957f08c
--- /dev/null
+++ b/din/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.32 2023/09/12 07:55:11 fox Exp $
+
+BLAKE2s (din-57.tar.gz) = 22e6611ca0c80ff57133997b4c9a77ce02c1bd31a878597192dcad8e895e124a
+SHA512 (din-57.tar.gz) = 03dfa45fb8c58f3f8dc739ec3c4c31029c544d9f0b1cf3dbae61643e5accd951ad65ebf19c078bfb1d30d3a8ccea7ffec2f1cb44f38bab1b07cfd2071361590c
+Size (din-57.tar.gz) = 3693381 bytes
+SHA1 (patch-src_Makefile.am) = 1668ae59af65ef5c2f7cc762981183fbf5d8a18f
+SHA1 (patch-src_Makefile.in) = 4dac169c38e4184a3046acd381cb4d1744ba6c64
+SHA1 (patch-src_RtMidi.cpp) = d1f0590d72d9775a16c620ffde48f2ad3eabe607
diff --git a/din/options.mk b/din/options.mk
new file mode 100644
index 0000000000..f73c20897b
--- /dev/null
+++ b/din/options.mk
@@ -0,0 +1,34 @@
+# $NetBSD: options.mk,v 1.2 2019/08/07 23:49:02 fox Exp $
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.din
+PKG_OPTIONS_OPTIONAL_GROUPS=	backend
+PKG_OPTIONS_GROUP.backend=	alsa jack coreaudio
+PKG_SUGGESTED_OPTIONS=		jack
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Support ALSA
+###
+.if !empty(PKG_OPTIONS:Malsa)
+CXXFLAGS+=	-D__LINUX_ALSA__
+LIBS+=		-lasound
+.include "../../audio/alsa-lib/buildlink3.mk"
+.endif
+
+###
+### Support JACK
+###
+.if !empty(PKG_OPTIONS:Mjack)
+CXXFLAGS+=	-D__UNIX_JACK__
+LIBS+=		-ljack
+.include "../../audio/jack/buildlink3.mk"
+.endif
+
+### Support MACOSX_CORE
+###
+.if !empty(PKG_OPTIONS:Mcoreaudio)
+CXXFLAGS+=	-D__MACOSX_CORE__
+LIBS+=		-framework CoreAudio -framework CoreFoundation -lpthread
+.include "../../audio/jack/buildlink3.mk"
+.endif
diff --git a/din/patches/patch-src_Makefile.am b/din/patches/patch-src_Makefile.am
new file mode 100644
index 0000000000..e529605057
--- /dev/null
+++ b/din/patches/patch-src_Makefile.am
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_Makefile.am,v 1.14 2022/10/01 09:46:56 fox Exp $
+
+Removed tcl8.6, asound and jack flags, this is now handled in the pkgsrc
+script.
+
+--- src/Makefile.am.orig	2023-07-17 16:36:26.000000000 +0000
++++ src/Makefile.am
+@@ -1,7 +1,8 @@
+ #dinincludedir = $(pkgsrcdir)
+ 
+-AM_CXXFLAGS = -I /usr/include/tcl8.6 -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D__SVG__ -D__GPL20__ -D__BOOST_TIME__ -DPREFIX=\"@prefix@\"
+-LIBS +=  -ltcl8.6 -lSDL -lGL -lpthread -lasound
++
++AM_CXXFLAGS = -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D__SVG__ -D__GPL20__ -DPREFIX=\"@prefix@\"
++LIBS +=  -lSDL -lGL -lpthread
+ 
+ bin_PROGRAMS = din
+ 
diff --git a/din/patches/patch-src_Makefile.in b/din/patches/patch-src_Makefile.in
new file mode 100644
index 0000000000..2850598716
--- /dev/null
+++ b/din/patches/patch-src_Makefile.in
@@ -0,0 +1,68 @@
+$NetBSD: patch-src_Makefile.in,v 1.3 2021/12/12 23:26:01 fox Exp $
+
+Removed linker flags, it is now handled by the pkgsrc script.
+
+--- src/Makefile.in.orig	2023-07-19 20:44:05.000000000 +0000
++++ src/Makefile.in
+@@ -1,7 +1,7 @@
+-# Makefile.in generated by automake 1.16.3 from Makefile.am.
++# Makefile.in generated by automake 1.16.5 from Makefile.am.
+ # @configure_input@
+ 
+-# Copyright (C) 1994-2020 Free Software Foundation, Inc.
++# Copyright (C) 1994-2021 Free Software Foundation, Inc.
+ 
+ # This Makefile.in is free software; the Free Software Foundation
+ # gives unlimited permission to copy and/or distribute it,
+@@ -264,8 +264,6 @@ am__define_uniq_tagged_files = \
+   unique=`for i in $$list; do \
+     if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+   done | $(am__uniquify_input)`
+-ETAGS = etags
+-CTAGS = ctags
+ am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
+ 	$(top_srcdir)/mkinstalldirs
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+@@ -280,6 +278,8 @@ CC = @CC@
+ CCDEPMODE = @CCDEPMODE@
+ CFLAGS = @CFLAGS@
+ CPPFLAGS = @CPPFLAGS@
++CSCOPE = @CSCOPE@
++CTAGS = @CTAGS@
+ CXX = @CXX@
+ CXXDEPMODE = @CXXDEPMODE@
+ CXXFLAGS = @CXXFLAGS@
+@@ -289,6 +289,7 @@ DEPDIR = @DEPDIR@
+ ECHO_C = @ECHO_C@
+ ECHO_N = @ECHO_N@
+ ECHO_T = @ECHO_T@
++ETAGS = @ETAGS@
+ EXEEXT = @EXEEXT@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+@@ -297,7 +298,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+ LDFLAGS = @LDFLAGS@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@ -ltcl8.6 -lSDL -lGL -lpthread -lasound
++LIBS = @LIBS@ -lSDL -lGL -lpthread
+ LTLIBOBJS = @LTLIBOBJS@
+ MAKEINFO = @MAKEINFO@
+ MKDIR_P = @MKDIR_P@
+@@ -362,7 +363,7 @@ target_alias = @target_alias@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-AM_CXXFLAGS = -I /usr/include/tcl8.6 -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D__SVG__ -D__GPL20__ -D__BOOST_TIME__ -DPREFIX=\"@prefix@\"
++AM_CXXFLAGS = -Wall -D_THREAD_SAFE -DHAVE_OPENGL -D__LICENSED__ -D__SVG__ -D__GPL20__ -DPREFIX=\"@prefix@\"
+ din_SOURCES = alarm.cc arrow_button.cc audio.cc authors_note.cc \
+ 	autoflip.cc autopause.cc autorotator.cc ball.cc ball_ops.cc \
+ 	basic_editor.cc beat2value.cc binaural_drone.cc \
+@@ -717,7 +718,6 @@ cscopelist-am: $(am__tagged_files)
+ 
+ distclean-tags:
+ 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+-
+ distdir: $(BUILT_SOURCES)
+ 	$(MAKE) $(AM_MAKEFLAGS) distdir-am
+ 
diff --git a/din/patches/patch-src_RtMidi.cpp b/din/patches/patch-src_RtMidi.cpp
new file mode 100644
index 0000000000..6b62a84b53
--- /dev/null
+++ b/din/patches/patch-src_RtMidi.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_RtMidi.cpp,v 1.1 2023/09/12 07:55:11 fox Exp $
+
+Use process scheduling from NetBSD instead of pthread.
+
+--- src/RtMidi.cpp.orig	2023-06-26 10:02:16.000000000 +0000
++++ src/RtMidi.cpp
+@@ -3607,7 +3607,9 @@ void MidiOutJack :: sendMessage( const u
+   if ( size + sizeof(nBytes) > (size_t) data->buffMaxWrite )
+       return;
+ 
+-  while ( jack_ringbuffer_write_space(data->buff) < sizeof(nBytes) + size )
++  while ( jack_ringbuffer_write_space(data->buff) < sizeof(nBytes) + size )#if defined(__NetBSD__)
++      sched_yield();
++#else
+       pthread_yield();
+ 
+   // Write full message to buffer


Home | Main Index | Thread Index | Old Index