aboutsummaryrefslogtreecommitdiff
path: root/packages/darwin_app/Makefile
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-06-08 16:50:07 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-06-08 16:50:07 +0000
commite4144e6cffcfd773a8e4084dbffc3bf4e1517bcd (patch)
treefb1678feeca89ac9a7c789efbf73f3ed715d67c9 /packages/darwin_app/Makefile
parentce63b4c199f2d87a7407d1f92c416f1a5c1db97c (diff)
updates for flext build
svn path=/trunk/; revision=3132
Diffstat (limited to 'packages/darwin_app/Makefile')
-rw-r--r--packages/darwin_app/Makefile31
1 files changed, 20 insertions, 11 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 097061e3..41921789 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -3,7 +3,10 @@ current: darwin_app
PD_APP_NAME = Pd
+ifndef DESTDIR
DESTDIR = installroot
+endif
+
PD_APP_CONTENTS = /Applications/$(PD_APP_NAME).app/Contents
INSTALL_PREFIX = $(PD_APP_CONTENTS)/Resources
@@ -297,16 +300,22 @@ darwin_app_externals_flext:
cd ../../externals/grill/flext && \
( \
( \
- cat buildsys/config-mac-pd-gcc.txt | \
- sed "s/^PDPATH=.*/PDPATH=..\/..\/..\/pd/" > ____c && \
- cp ____c buildsys/config-mac-pd-gcc.txt && rm -f ____c \
- ) || \
- ( \
- sed "s/^PDPATH=.*/PDPATH=..\/..\/..\/pd/" buildsys/mac/pd/config-gcc.def > buildsys/config-mac-pd-gcc.txt \
- ) \
+ test -f buildsys/config-mac-pd-gcc.txt || \
+ ( \
+ cp buildsys/mac/pd/config-gcc.def buildsys/config-mac-pd-gcc.txt && \
+ echo Copied template sys config file \
+ ) \
+ ) && \
+ cat buildsys/config-mac-pd-gcc.txt | \
+ sed "s/^PDPATH=.*/PDPATH=..\/..\/..\/pd/" | \
+ sed "s/^FLEXTPREFIX=.*/FLEXTPREFIX=@executable_path\/..\/extra/" > buildsys/config-mac-pd-gcc.txt \
) && \
( \
- cp -f build/config-mac.def config.txt \
+ test -f config.txt || \
+ ( \
+ cp -f build/config-mac.def config.txt && \
+ echo Copied template flext config file \
+ ) \
) && \
bash build.sh pd gcc build-release-shared
install -p -m0444 ../../externals/grill/flext/pd-darwin/release-shared/libflext-pd.$(FLEXT_VERSION).dylib $(EXTERNALS_DIR)
@@ -383,9 +392,9 @@ darwin_app_externals_flext:
$(HELP_DIR)/xsample
########## FOOTILS #########
# syncgrain
- cd ../../externals/footils/syncgrain/ && make -f makefile.pd-darwin
- install -p -m0444 ../../externals/footils/syncgrain/pd-darwin/*.pd_darwin $(EXTERNALS_DIR)
- install -p -m0644 ../../externals/footils/syncgrain/pd/*.* $(HELP_DIR)/5.reference
+# cd ../../externals/footils/syncgrain/ && make -f makefile.pd-darwin
+# install -p -m0444 ../../externals/footils/syncgrain/pd-darwin/*.pd_darwin $(EXTERNALS_DIR)
+# install -p -m0644 ../../externals/footils/syncgrain/pd/*.* $(HELP_DIR)/5.reference
darwin_app_externals_standard: