import misc/spdrs60: graphical SRCP client to control a digital model railway

DESCR:
spdrs60 is a graphical SRCP client to comfortably control a digital
model railway. Visual appearance and usage comply to the original
SpDrS60 German Federal Railway company locking table. A SRCP server
(e.g. erddcd or srcpd) is needed as a hardware link.

this and the import of srcpd was, with some comments, OK jasper@
This commit is contained in:
sebastia 2010-12-11 11:19:08 +00:00
parent 541e99fb7d
commit ae9c76b09d
5 changed files with 256 additions and 0 deletions

28
misc/spdrs60/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/11 11:19:08 sebastia Exp $
COMMENT = graphical SRCP client to control a digital model railway
DISTNAME = spdrs60-0.5.6
CATEGORIES = misc x11
HOMEPAGE = http://spdrs60.sourceforge.net/
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=spdrs60/}
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = x11/qt3
WANTLIB += GL ICE SM X11 Xcursor Xext Xft Xi Xinerama Xmu Xrandr
WANTLIB += Xrender c fontconfig freetype jpeg lcms m mng png pthread
WANTLIB += stdc++ z
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += ${MODQT_CONFIGURE_ARGS} --disable-html-doc
CONFIGURE_ENV += LDFLAGS="`pkg-config --libs qt-mt`"
.include <bsd.port.mk>

5
misc/spdrs60/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (spdrs60-0.5.6.tar.gz) = ZdBIUjUy+Wp4n7+eMQKQig==
RMD160 (spdrs60-0.5.6.tar.gz) = rqtDvxGFM2RwNFjIwcSODD3pyNo=
SHA1 (spdrs60-0.5.6.tar.gz) = CgOPcy/7VyqgrkeCHstdPUjUa9I=
SHA256 (spdrs60-0.5.6.tar.gz) = R7UztUjcvCshArrSm61ob63P5Wnan/kw1y3qZ7neDjQ=
SIZE (spdrs60-0.5.6.tar.gz) = 893360

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-spdrs60_turntablecommander_cpp,v 1.1.1.1 2010/12/11 11:19:08 sebastia Exp $
OpenBSD doesn't have nearbyint().
--- spdrs60/turntablecommander.cpp.orig Wed May 19 22:52:27 2010
+++ spdrs60/turntablecommander.cpp Tue Dec 7 19:17:19 2010
@@ -377,7 +377,11 @@ void turntableCommander::startTrackTimer()
#if QT_VERSION >= 0x040000
tTrackReached->start((int) 1000 * pref.ttroundtime / 24);
#else
+# ifdef __OpenBSD__
+ tTrackReached->start((int) rint(1000 * pref.ttroundtime / 24));
+# else
tTrackReached->start((int) nearbyint(1000 * pref.ttroundtime / 24));
+# endif
#endif
connect(tTrackReached, SIGNAL(timeout()),
this, SLOT(slotTrackReached()));

4
misc/spdrs60/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
spdrs60 is a graphical SRCP client to comfortably control a digital
model railway. Visual appearance and usage comply to the original
SpDrS60 German Federal Railway company locking table. A SRCP server
(e.g. erddcd or srcpd) is needed as a hardware link.

201
misc/spdrs60/pkg/PLIST Normal file
View File

@ -0,0 +1,201 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/12/11 11:19:08 sebastia Exp $
@bin bin/centralclock
@bin bin/spdrs60
man/de/
man/de/man1/
@man man/de/man1/centralclock.1x
@man man/de/man1/spdrs60.1x
@man man/man1/centralclock.1x
@man man/man1/spdrs60.1x
share/doc/spdrs60/
share/doc/spdrs60/html/
share/doc/spdrs60/html/commonimages/
share/doc/spdrs60/html/commonimages/adresse.png
share/doc/spdrs60/html/commonimages/blind-0.png
share/doc/spdrs60/html/commonimages/blind-1.png
share/doc/spdrs60/html/commonimages/dc-motor.jpg
share/doc/spdrs60/html/commonimages/diagonale-links-tl.png
share/doc/spdrs60/html/commonimages/diagonale-links.png
share/doc/spdrs60/html/commonimages/diagonale-rechts-tl.png
share/doc/spdrs60/html/commonimages/diagonale-rechts.png
share/doc/spdrs60/html/commonimages/dkw-2state.png
share/doc/spdrs60/html/commonimages/dkw-4state.png
share/doc/spdrs60/html/commonimages/dkw-links-0.png
share/doc/spdrs60/html/commonimages/dkw-links-1.png
share/doc/spdrs60/html/commonimages/dkw-links-2.png
share/doc/spdrs60/html/commonimages/dkw-links-3.png
share/doc/spdrs60/html/commonimages/dkw-rechts-0.png
share/doc/spdrs60/html/commonimages/dkw-rechts-1.png
share/doc/spdrs60/html/commonimages/dkw-rechts-2.png
share/doc/spdrs60/html/commonimages/dkw-rechts-3.png
share/doc/spdrs60/html/commonimages/drehscheibe.png
share/doc/spdrs60/html/commonimages/drehscheibe2.jpg
share/doc/spdrs60/html/commonimages/dreier-weiche-0.png
share/doc/spdrs60/html/commonimages/dreier-weiche-1.png
share/doc/spdrs60/html/commonimages/dreier-weiche-2.png
share/doc/spdrs60/html/commonimages/ekw-links-0.png
share/doc/spdrs60/html/commonimages/ekw-links-1.png
share/doc/spdrs60/html/commonimages/ekw-links-2.png
share/doc/spdrs60/html/commonimages/ekw-rechts-0.png
share/doc/spdrs60/html/commonimages/ekw-rechts-1.png
share/doc/spdrs60/html/commonimages/ekw-rechts-2.png
share/doc/spdrs60/html/commonimages/entkoppler-1.png
share/doc/spdrs60/html/commonimages/entkoppler-2.png
share/doc/spdrs60/html/commonimages/entkoppler-3.png
share/doc/spdrs60/html/commonimages/entkoppler.png
share/doc/spdrs60/html/commonimages/gerade-tl.png
share/doc/spdrs60/html/commonimages/gerade.png
share/doc/spdrs60/html/commonimages/haus-1.png
share/doc/spdrs60/html/commonimages/haus-2.png
share/doc/spdrs60/html/commonimages/kreuzung-hose.png
share/doc/spdrs60/html/commonimages/kreuzung-links.png
share/doc/spdrs60/html/commonimages/kreuzung-rechts.png
share/doc/spdrs60/html/commonimages/kurve-links.png
share/doc/spdrs60/html/commonimages/kurve-rechts.png
share/doc/spdrs60/html/commonimages/leer.png
share/doc/spdrs60/html/commonimages/motor.png
share/doc/spdrs60/html/commonimages/panel-blue.png
share/doc/spdrs60/html/commonimages/prellbock.png
share/doc/spdrs60/html/commonimages/relais.png
share/doc/spdrs60/html/commonimages/richtung-1.png
share/doc/spdrs60/html/commonimages/richtung-2.png
share/doc/spdrs60/html/commonimages/schiebeb.jpg
share/doc/spdrs60/html/commonimages/schiebebuehne.png
share/doc/spdrs60/html/commonimages/schnapp-edit.png
share/doc/spdrs60/html/commonimages/schnapp-feedbacks.png
share/doc/spdrs60/html/commonimages/schnapp-found.png
share/doc/spdrs60/html/commonimages/schnapp-route-pruef.png
share/doc/spdrs60/html/commonimages/schnapp-route-rec2.png
share/doc/spdrs60/html/commonimages/schnapp-route-rec3.png
share/doc/spdrs60/html/commonimages/schnapp-route-rec4.png
share/doc/spdrs60/html/commonimages/schnapp-route-rec5.png
share/doc/spdrs60/html/commonimages/schnapp-routing-none.png
share/doc/spdrs60/html/commonimages/schnapp-routing-occu.png
share/doc/spdrs60/html/commonimages/schnapp-routing-show.png
share/doc/spdrs60/html/commonimages/schnapp-toolbar.png
share/doc/spdrs60/html/commonimages/schnapp-uhr.png
share/doc/spdrs60/html/commonimages/schuppen-m.png
share/doc/spdrs60/html/commonimages/schuppen-o.png
share/doc/spdrs60/html/commonimages/schuppen-u.png
share/doc/spdrs60/html/commonimages/shot-trainnumber-display1.png
share/doc/spdrs60/html/commonimages/shot-trainnumber-display3.png
share/doc/spdrs60/html/commonimages/signal-hs-0.png
share/doc/spdrs60/html/commonimages/signal-hs-1.png
share/doc/spdrs60/html/commonimages/signal-hs-2.png
share/doc/spdrs60/html/commonimages/signal-hss-0.png
share/doc/spdrs60/html/commonimages/signal-hss-1.png
share/doc/spdrs60/html/commonimages/signal-hss-2.png
share/doc/spdrs60/html/commonimages/signal-hss-3.png
share/doc/spdrs60/html/commonimages/signal-nrb.png
share/doc/spdrs60/html/commonimages/signal-srb.png
share/doc/spdrs60/html/commonimages/signal-ss-0.png
share/doc/spdrs60/html/commonimages/signal-ss-1.png
share/doc/spdrs60/html/commonimages/signal-ssh-0.png
share/doc/spdrs60/html/commonimages/signal-sss-0.png
share/doc/spdrs60/html/commonimages/signal-vs-0.png
share/doc/spdrs60/html/commonimages/signal-vs-1.png
share/doc/spdrs60/html/commonimages/signal-vs-2.png
share/doc/spdrs60/html/commonimages/signal-ws-0.png
share/doc/spdrs60/html/commonimages/signal-ws-1.png
share/doc/spdrs60/html/commonimages/signal-zf-0.png
share/doc/spdrs60/html/commonimages/signal-zf-1.png
share/doc/spdrs60/html/commonimages/switch-y-0.png
share/doc/spdrs60/html/commonimages/switch-y-1.png
share/doc/spdrs60/html/commonimages/taste-ein.png
share/doc/spdrs60/html/commonimages/taste-fht.png
share/doc/spdrs60/html/commonimages/taste-sgt.png
share/doc/spdrs60/html/commonimages/taste-ufgt.png
share/doc/spdrs60/html/commonimages/taste-wgt.png
share/doc/spdrs60/html/commonimages/taste-wht.png
share/doc/spdrs60/html/commonimages/trackvertical.png
share/doc/spdrs60/html/commonimages/turn_botvert_left.png
share/doc/spdrs60/html/commonimages/turn_botvert_right.png
share/doc/spdrs60/html/commonimages/turn_topvert_left.png
share/doc/spdrs60/html/commonimages/turn_topvert_right.png
share/doc/spdrs60/html/commonimages/uebergang.png
share/doc/spdrs60/html/commonimages/weiche-diag-links-0.png
share/doc/spdrs60/html/commonimages/weiche-diag-links-1.png
share/doc/spdrs60/html/commonimages/weiche-diag-rechts-0.png
share/doc/spdrs60/html/commonimages/weiche-diag-rechts-1.png
share/doc/spdrs60/html/commonimages/weiche-links-0.png
share/doc/spdrs60/html/commonimages/weiche-links-1.png
share/doc/spdrs60/html/commonimages/weiche-rechts-0.png
share/doc/spdrs60/html/commonimages/weiche-rechts-1.png
share/doc/spdrs60/html/de/
share/doc/spdrs60/html/de/addressvariantdialog.png
share/doc/spdrs60/html/de/contextmenu.png
share/doc/spdrs60/html/de/decvariantdialog.png
share/doc/spdrs60/html/de/dkwvariantdialog.png
share/doc/spdrs60/html/de/drevariantdialog.png
share/doc/spdrs60/html/de/feedbacktriggerdialog.png
share/doc/spdrs60/html/de/labeldialog.png
share/doc/spdrs60/html/de/schnapp-bhf-klein.png
share/doc/spdrs60/html/de/schnapp-daemoninfo.png
share/doc/spdrs60/html/de/schnapp-daemonmenu.png
share/doc/spdrs60/html/de/schnapp-deb-cmd2.png
share/doc/spdrs60/html/de/schnapp-editfilemenu.png
share/doc/spdrs60/html/de/schnapp-editmenu.png
share/doc/spdrs60/html/de/schnapp-feedbacks.png
share/doc/spdrs60/html/de/schnapp-filemenu.png
share/doc/spdrs60/html/de/schnapp-find.png
share/doc/spdrs60/html/de/schnapp-helpmenu.png
share/doc/spdrs60/html/de/schnapp-hints.png
share/doc/spdrs60/html/de/schnapp-history.png
share/doc/spdrs60/html/de/schnapp-historyhints.png
share/doc/spdrs60/html/de/schnapp-historyinf.png
share/doc/spdrs60/html/de/schnapp-kdemenu.png
share/doc/spdrs60/html/de/schnapp-keyboard.png
share/doc/spdrs60/html/de/schnapp-layoutmenu.png
share/doc/spdrs60/html/de/schnapp-mdc-comm.png
share/doc/spdrs60/html/de/schnapp-menubar.png
share/doc/spdrs60/html/de/schnapp-newlayout.png
share/doc/spdrs60/html/de/schnapp-open.png
share/doc/spdrs60/html/de/schnapp-pref-data.png
share/doc/spdrs60/html/de/schnapp-pref-layout.png
share/doc/spdrs60/html/de/schnapp-prog-empty.png
share/doc/spdrs60/html/de/schnapp-route-add.png
share/doc/spdrs60/html/de/schnapp-route-adderror1.png
share/doc/spdrs60/html/de/schnapp-route-rec1.png
share/doc/spdrs60/html/de/schnapp-route-rec6.png
share/doc/spdrs60/html/de/schnapp-routemenu.png
share/doc/spdrs60/html/de/schnapp-routing-table.png
share/doc/spdrs60/html/de/schnapp-save.png
share/doc/spdrs60/html/de/schnapp-sbn-comm.png
share/doc/spdrs60/html/de/schnapp-tt-comm-prog.png
share/doc/spdrs60/html/de/schnapp-tt-comm.png
share/doc/spdrs60/html/de/schnapp-viewmenu.png
share/doc/spdrs60/html/de/shot-paintitemtoolbox.png
share/doc/spdrs60/html/de/shot-pref-elements.png
share/doc/spdrs60/html/de/shot-pref-feedback.png
share/doc/spdrs60/html/de/shot-pref-feedbacktype.png
share/doc/spdrs60/html/de/shot-routedialog1.png
share/doc/spdrs60/html/de/shot-routedialog2.png
share/doc/spdrs60/html/de/shot-routedialog3.png
share/doc/spdrs60/html/de/shot-routedialog4.png
share/doc/spdrs60/html/de/shot-trainnumber-display2.png
share/doc/spdrs60/html/de/shot-trainnumberdialog.png
share/doc/spdrs60/html/de/trackindicatordialog.png
share/doc/spdrs60/html/de/virtualaddressdialog.png
share/doc/spdrs60/html/en/
share/doc/spdrs60/html/en/schnapp-routing-table-all.png
share/doc/spdrs60/html/en/schnapp-routing-table2-all.png
share/doc/spdrs60/html/spdrs60.css
share/pixmaps/
share/pixmaps/spdrs60_16.xpm
share/pixmaps/spdrs60_32.xpm
share/pixmaps/spdrs60_48.xpm
share/pixmaps/spdrs60_48r.xpm
share/pixmaps/spdrs60_64.xpm
share/spdrs60/
share/spdrs60/layouts/
share/spdrs60/layouts/abzw-bf.spdrs60
share/spdrs60/layouts/alle_elemente.spdrs60
share/spdrs60/layouts/bahnhof_gross.spdrs60
share/spdrs60/layouts/bahnhof_klein.spdrs60
share/spdrs60/layouts/dedorf.spdrs60
share/spdrs60/layouts/flandersbach.spdrs60
share/spdrs60/layouts/kleinmaschen.spdrs60
share/spdrs60/layouts/lintorf.spdrs60
share/spdrs60/translations/
share/spdrs60/translations/spdrs60_de.qm
share/spdrs60/translations/spdrs60_it.qm