File: dfsg-upstream

package info (click to toggle)
psychtoolbox-3 3.0.14.20170103%2Bgit6-g605ff5c.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 103,044 kB
  • ctags: 69,483
  • sloc: ansic: 167,371; cpp: 11,232; objc: 4,708; sh: 1,875; python: 383; php: 344; makefile: 207; java: 113
file content (135 lines) | stat: -rwxr-xr-x 5,475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#!/bin/bash
#emacs: -*- mode: shell-script; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- 
#ex: set sts=4 ts=4 sw=4 noet:
set -eu

RM="git rm --ignore-unmatch"
FINDREGEX="find -regextype posix-egrep -regex"

{ $FINDREGEX '.*\.(a|so|o|lib|dll.*|exe|mex.*|dylib|class)' -print0; \
  $FINDREGEX '.*\.(old|bak).*' -print0; \
  find -iname '.libs' -type d -print0; \
  find -iname nvstusb-* -print0; \
} | xargs -0 --no-run-if-empty $RM -rf
$FINDREGEX '.*((|Mac)OSX|Octave3OSXFiles|Windows|.bundle|.FBCLockFolder)' -print0| xargs -0 --no-run-if-empty $RM -rf
# more of non-Linux OS specifics
$RM -rf PsychSourceGL/Cohorts/libusb1-win32
# HID_Utilities_64Bit
# Seems to be used only for OSX ATM
# Copy of them is shipped within pd-hid package (recent)
# So, for now removing for Debian builds
$RM -rf PsychSourceGL/Cohorts/{PsychtoolboxOSXKernelDriver,HID?Utilities*,IOWarrior}
$RM -rf Psychtoolbox/PsychContributed/WinTab
# Some binary kernels/tools for OSX
$RM -rf Psychtoolbox/*/PsychtoolboxKernelDriver*.kext*
$RM -rf Psychtoolbox/*/PsychtoolboxKernelDriverUserClientTool*

# Test and its data (input? output?)
$RM -f Psychtoolbox/PsychTests/StandaloneTimingProgram Psychtoolbox/.FBCIndex
# ???
# Psychtoolbox/PsychTests/StandaloneTimingTest.m refers StandaloneTimingTest.c which is N/A

# some additional externals: use system ones
$RM -fr ./PsychSourceGL/Cohorts/Kinect-* \
    ./Psychtoolbox/PsychContributed/Kinect-*-Windows* \
    ./PsychSourceGL/Cohorts/OculusSDK \
    ./PsychSourceGL/Cohorts/freeglut \
    ./PsychSourceGL/Cohorts/libnvstusb-*

# Binary built against ATI/AMD SDK with questionable
# redistributability
$RM -f Psychtoolbox/PsychContributed/ATIRadeonperf_Linux*

# Some binary pre-built drivers from Mario.  I am leaving sources for now
$RM -f ./Psychtoolbox/PsychHardware/LinuxDrivers/*.so_*

# libwaffle -- for now only in binary form -- will ship in octave.*-nonfree for now
$RM -f ./Psychtoolbox/PsychContributed/ArmArch/libwaffle*_glxegl \
	   ./PsychSourceGL/Cohorts/libwaffle/libwaffle*_*

# __TODO:
# http://docs.psychtoolbox.org/DrawTextPlugin
# BDepends: libfontconfig1-dev, libfreetype6-dev
# uses http://sourceforge.net/projects/oglft/  with last release from 2003 :-/
# not pruning for now
# built for i386 so needs following Depends ATM:
# ia32-libs, lib32gcc1, lib32z1, libc6-i386, zlib1g
$RM -f ./Psychtoolbox/PsychBasic/PsychPlugins/libptbdrawtext_ftgl*.*

$RM -rf ./PsychSourceGL/Cohorts/FTGLTextRenderer/libftgles_*.a # libftgl-dev -- check ver

# BDepends: libfontconfig1-dev, libfreetype6-dev
# g++ -g -I. -I/usr/include/ -I/usr/include/freetype2/ -L/usr/lib -l GL -l GLU -l fontconfig -l freetype -pie -shared -fPIC -o libptbdrawtext_ftgl.so.1 libptbdrawtext_ftgl.cpp qstringqcharemulation.cpp OGLFT.cpp


# Windows only
$RM -rf Psychtoolbox/PsychContributed/macidpascalsource

# Docs without sources... may be  into non-free?
$RM -f ./Psychtoolbox/PsychDocumentation/{ECVP2010Poster,Psychtoolbox3-Slides}*.pdf

# _TODO:
# Remove things which are said to be superseeded and NA for Linux
# See Psychtoolbox/PsychDocumentation/ExperimentalStuff.m
# ??? PsychSound
# ??? ./Psychtoolbox/PsychHardware/EyelinkToolbox -- N/A used under Linux

## EXTERNALS
# prune some externals present in Debian:
$RM -rf ./PsychSourceGL/Cohorts/libDC1394 # libdc1394-22-dev -- check content

# prune copies of GLEW
# do not since we need now GLEW >= 1.11.0 so keep it around for
# backport builds
#$RM -f ./Psychtoolbox/PsychOpenGL/MOGL/source/*gl*ew.*
#$RM -f ./PsychSourceGL/Source/Common/Screen/gl*ew*.*

$RM -f ./PsychSourceGL/Cohorts/freeglut-MSVC-2.8.0-1.mp.zip

# TODO:
# portaudio has to be patched - keep original pristine tarball and patched sources
# remove the rest
$RM -f ./PsychSourceGL/Cohorts/PortAudio/libportaudio.a # anyway alien arch
$RM -f ./PsychSourceGL/Cohorts/PortAudio/portaudio_unpatched_except4OSX.zip # we will use pristine source tarball
$RM -f ./PsychSourceGL/Cohorts/PortAudio/Portaudio_OSX_64Bit.zip
$RM -f ./PsychSourceGL/Cohorts/PortAudio/portaudio_msvc2010_buildconfig.zip
$RM -f ./PsychSourceGL/Cohorts/PortAudio/*.lib
$RM -f ./PsychSourceGL/Cohorts/PortAudio/*.a
$RM -rf ./PsychSourceGL/Source/Common/PsychSound/StaticOpenALLib # libopenal-dev -- check

# artoolkit (RFP - #452233) -- needed only on OSX/Windows
$RM -rf PsychSourceGL/Cohorts/ARToolkit
$RM -rf PsychSourceGL/Projects/Linux/ARToolkit
$RM -rf Psychtoolbox/PsychDemos/ARToolkitDemo*

# _TODO:
# Conside packaging MOGL: MOGL OpenGL for Matlab support
# $RM -rf ./Psychtoolbox/PsychOpenGL/MOGL

# TODO:
# IViewXToolbox: ./Psychtoolbox/PsychHardware/iViewXToolbox
# uses tcp_udp_ip toolbox
# Strip copy of 1.0 version of the toolbox
$RM -rf ./Psychtoolbox/PsychHardware/iViewXToolbox/tcp_udp_ip/tcpip*

## Additional Dependencies:
## OSX: Cocoa/Cocoa.h used in StoreBitLib_Prefix.pch
## Check more on compatibility with Linux of components under Psychtoolbox/PsychHardware

#
# Some final look
#

# to find more of non-sources and report them:
echo "I: Various non-sources/data"
find -regextype posix-egrep -type f ! -regex '.*\.(m(|at)|dat|c(|c|pp)|h|java|sh|txt|in|rtf|py|php|wav|bmp|png|jpg|JPG|tiff|html|mov|xml)' -ls | grep -v -e '\.git' -e '\.pc'

# Look among executables:
echo "I: Suspecious executables left"
find -perm /+x ! -type d -print0 | xargs -0 file | grep -v -e ASCII -e '\.git' -e 'shell' -e text -e JPEG -e 'Rich Text'

echo "I: Leftout archives"
$FINDREGEX '.*\.(zip|rar)'

echo "I: Leftout static libs"
find -iname lib*.a