blob: ad17e58f5eb93d03c562c33f3f0e5f97781a9ea4 (
plain)
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
#
# This is a grand unifying Makefile for compiling Pd-extended under MinGW
#
all: install
CWD := $(shell pwd)
DESTDIR = $(CWD)/build
cvs_root_dir := $(shell cd $(CWD)/../.. && pwd)
BUILDLAYOUT_DIR = $(cvs_root_dir)/packages
include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
# Generic x86 (tune for Pentium III, since that's most common these days)
OPT_CFLAGS += -mcpu=i586 -mtune=pentium3
# these are sent to all of the various Makefiles so that they all copy their
# output to the same directory tree
DEST_PATHS = BUILDLAYOUT_DIR=$(BUILDLAYOUT_DIR) \
cvs_root_dir=$(cvs_root_dir) \
DESTDIR=$(DESTDIR) \
prefix=$(prefix) \
OPT_CFLAGS="$(OPT_CFLAGS)" \
UNAME=$(UNAME)
PD_INNO_SETUP = pd-inno.iss
package: $(PD_INNO_SETUP)
## this pops up the GUI app
# start $(PD_INNO_SETUP)
## this compiles the package on the command line
/c/Program\ Files/Inno\ Setup\ 5/ISCC.exe $(PD_INNO_SETUP)
@echo " "
@echo "win32_inno install succeeded!"
# makefile.mingw is available from here:
# http://sourceforge.net/tracker/index.php?func=detail&aid=1374659&group_id=55736&atid=478072
build_pd:
cd $(pd_src)/src && $(MAKE) -f makefile.mingw
pd_install: build_pd
# the autoconf/MinGW setup doesn't compile the extras yet
# $(MAKE) -C $(pd_src)/src $(DEST_PATHS) bin
# -$(MAKE) -C $(pd_src)/src $(DEST_PATHS) install
$(MAKE) -C $(pd_src)/src -f makefile.mingw $(DEST_PATHS) install
install: pd_install prebuilt_install lib_install exe_install
@echo " "
@echo "win32_inno install succeeded!"
prebuilt_install: pddplink_hack
$(MAKE) -C $(packages_src) $(DEST_PATHS) extended_install
$(MAKE) -C $(packages_src) $(DEST_PATHS) doc_format
install -p pd-settings.reg $(DESTDIR)$(prefix)
#==============================================================================#
#
## setup Pd binaries
#
#==============================================================================#
bin_src = /usr/local/bin
system32 = /c/WINDOWS/system32
# ultimately, the DLLs should be installed in %SystemRoot%\system32 by InnoSetup
dlldir = $(DESTDIR)$(prefix)/
#dlldir = $(bindir)
lib_install:
# these get installed into %SystemRoot%\system32 by the installer
install -d $(dlldir)
install -p $(bin_src)/libfftw3-3.dll $(dlldir)
install -p $(bin_src)/libfftw3f-3.dll $(dlldir)
install -p $(bin_src)/libogg-0.dll $(dlldir)
install -p $(bin_src)/libsndfile-1.dll $(dlldir)
install -p $(bin_src)/libvorbis-0.dll $(dlldir)
install -p $(bin_src)/libvorbisenc-2.dll $(dlldir)
install -p $(bin_src)/libvorbisfile-3.dll $(dlldir)
install -p $(bin_src)/lua51.dll $(dlldir)
install -p $(bin_src)/pthreadGC2.dll $(dlldir)
# these stay with pd.exe
install -p $(bin_src)/tcl85.dll $(bindir)
install -p $(bin_src)/tclpip85.dll $(bindir)
install -p $(bin_src)/tk85.dll $(bindir)
# if these are there, install them
-install -p $(system32)/msvcp71.dll $(dlldir)
-install -p $(system32)/msvcr71.dll $(dlldir)
-install -p $(system32)/pthreadVC.dll $(dlldir)
# these go into the Pd package's lib dir
install -d $(DESTDIR)$(libdir)/tcl8.5
cp -r /usr/local/lib/tcl8.5/* $(DESTDIR)$(libdir)/tcl8.5
install -d $(DESTDIR)$(libdir)/tk8.5
cp -r /usr/local/lib/tk8.5/* $(DESTDIR)$(libdir)/tk8.5
exe_install:
install -d $(bindir)
install -p $(bin_src)/wish85.exe $(bindir)
install -p $(bin_src)/tclsh85.exe $(bindir)
# on Windows, the pddp tcl files need to be in pd/lib aka $(libdir)
pddplink_hack:
install -d $(DESTDIR)$(libdir)/pddp
install -p $(externals_src)/miXed/bin/pddp/*.tcl $(libdir)/pddp
# here are some hacks to assemble a package from binaries
no_compile_hacks:
cp -a /c/Program\ Files/pd-0.38-4 $(DESTDIR)$(prefix)/
$(PD_INNO_SETUP): $(PD_INNO_SETUP).in
@echo "Making Inno Setup file: $(PD_INNO_SETUP)"
cat "$(PD_INNO_SETUP).in" | \
sed 's/PACKAGE_NAME/$(PACKAGE_NAME)/g' | \
sed 's/PD_VERSION/$(PD_VERSION)/g' | \
sed 's/PD-EXTENDED_VERSION/$(PD-EXTENDED_VERSION)/g' > \
$(PD_INNO_SETUP)
# start $(PD_INNO_SETUP)
#==============================================================================#
#
## CLEAN TARGETS
#
#==============================================================================#
distclean: package_clean
$(MAKE) -C $(packages_src) $(DEST_PATHS) distclean
package_clean:
-rm $(PD_INNO_SETUP)
-rm -rf $(DESTDIR)
-rm -rf Output
clean: package_clean
$(MAKE) -C $(packages_src) $(DEST_PATHS) clean
#==============================================================================#
#
## TEST TARGETS
#
#==============================================================================#
test_package:
echo "No tests here yet"
test_locations:
@echo --------------------------------------------------
@echo "PD_VERSION: $(PD_VERSION)"
@echo "PD-EXTENDED_VERSION: $(PD-EXTENDED_VERSION)"
@echo "CWD $(CWD)"
@echo "DESTDIR $(DESTDIR)"
@echo "PREFIX $(prefix)"
@echo "BINDIR $(bindir)"
@echo "LIBDIR $(libdir)"
@echo "OBJECTSDIR $(objectsdir)"
@echo "PDDOCDIR $(pddocdir)"
@echo "LIBPDDIR $(libpddir)"
@echo "LIBPDBINDIR $(libpdbindir)"
@echo "HELPDIR $(helpdir)"
@echo "MANUALSDIR $(manualsdir)"
@echo "EXAMPLESDIR $(examplesdir)"
@echo --------------------------------------------------
autoconf --version
@echo --------------------------------------------------
make --version
@echo --------------------------------------------------
gcc --version
.PHONY: all install package clean distclean test_locations test_package exe_install
|