aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-03 20:11:17 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-03 20:11:17 +0000
commit7bb3eb4485d424e5ae99a6a7b2d5a46dffb6bb1c (patch)
treea5610f5f26169db5e9c17d37517c125ecfb8b6ef /externals
parent52b74d5622e1f3273af7ac68828a0ec7e82dea42 (diff)
- moved pdp_help_hack stuff to the specific pdp/3dp/pidip targets
- changed pdp/3dp/pidip to install in a more libdir-like way svn path=/trunk/; revision=13365
Diffstat (limited to 'externals')
-rw-r--r--externals/Makefile67
1 files changed, 41 insertions, 26 deletions
diff --git a/externals/Makefile b/externals/Makefile
index b44c15c7..eb879b1f 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -1549,22 +1549,23 @@ pdp: $(externals_src)/pdp/pdp.$(EXTENSION)
pdp_install: pdp
install -d $(DESTDIR)$(objectsdir)/$(PDP_NAME)
-# $(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(PDP_NAME) \
-# --author "Tom Schouten" \
-# --description "Pure Data Packet" \
-# --license "GNU GPL"
- install -d $(DESTDIR)$(objectsdir)
install -p $(externals_src)/pdp/*.$(EXTENSION) $(DESTDIR)$(objectsdir)/$(PDP_NAME)
-# install -p $(externals_src)/pdp/abstractions/*.pd $(DESTDIR)$(objectsdir)/$(PDP_NAME)
- install -p $(externals_src)/pdp/abstractions/*.pd $(DESTDIR)$(objectsdir)
+ install -p $(externals_src)/pdp/abstractions/*.pd $(DESTDIR)$(objectsdir)/$(PDP_NAME)
install -p $(externals_src)/pdp/doc/objects/*.* $(DESTDIR)$(objectsdir)/$(PDP_NAME)
install -d $(DESTDIR)$(manualsdir)/$(PDP_NAME)
install -p $(externals_src)/pdp/doc/reference.txt $(DESTDIR)$(manualsdir)/$(PDP_NAME)
install -p $(externals_src)/pdp/doc/introduction/*.* \
$(DESTDIR)$(manualsdir)/$(PDP_NAME)
- install -d $(DESTDIR)$(examplesdir)/$(PDP_NAME)
+ install -d $(DESTDIR)$(objectsdir)/$(PDP_NAME)/examples
install -p $(externals_src)/pdp/doc/examples/*.* \
- $(DESTDIR)$(examplesdir)/$(PDP_NAME)
+ $(DESTDIR)$(objectsdir)/$(PDP_NAME)/examples
+ifeq ($(OS_NAME),darwin)
+# switch Linux-only pdp_v4l to Mac-only pdp_ieee1394
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' $(DESTDIR)$(objectsdir)/$(PDP_NAME)/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PDP_NAME)/*.pd.bak
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' $(DESTDIR)$(objectsdir)/$(PDP_NAME)/examples/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PDP_NAME)/examples/*.pd.bak
+endif
pdp_clean:
-rm -f -- $(externals_src)/pdp/*.$(EXTENSION)
@@ -1590,19 +1591,27 @@ pdp_opengl_install: pdp_opengl
--author "Tom Schouten" \
--description "opengl extensions for pdp" \
--license "GPL v2 or later"
- install -p $(PDP_OPENGL_BINARY) $(DESTDIR)$(objectsdir)
+ install -p $(PDP_OPENGL_BINARY) $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)
install -p $(externals_src)/pdp/opengl/abstractions/*.pd \
$(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)
- install -p $(externals_src)/pdp/opengl/doc/objects/*.pd $(DESTDIR)$(objectsdir)
- install -p $(externals_src)/pdp/opengl/doc/objects/*.pd $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)
- install -d $(DESTDIR)$(readmesdir)
+ install -p $(externals_src)/pdp/opengl/doc/objects/*.pd \
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)
install -p $(externals_src)/pdp/opengl/README \
- $(DESTDIR)$(readmesdir)/$(PDP_OPENGL_NAME).txt
- install -d $(DESTDIR)$(examplesdir)/$(PDP_OPENGL_NAME)
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/README.txt
+ install -d $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/examples
install -p $(externals_src)/pdp/opengl/doc/examples/*.pd \
- $(DESTDIR)$(examplesdir)/$(PDP_OPENGL_NAME)
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/examples
install -p $(externals_src)/pdp/opengl/test/*.pd \
- $(DESTDIR)$(examplesdir)/$(PDP_OPENGL_NAME)
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/examples
+ifeq ($(OS_NAME),darwin)
+# switch Linux-only pdp_v4l to Mac-only pdp_ieee1394
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' \
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/*.pd.bak
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' \
+ $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/examples/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PDP_OPENGL_NAME)/examples/*.pd.bak
+endif
pdp_opengl_clean:
make -C $(externals_src)/pdp/opengl clean
@@ -1647,18 +1656,24 @@ pidip_install: pidip
# --license "GNU GPLv2"
install -p $(externals_src)/pidip/*.$(EXTENSION) $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)
install -p $(externals_src)/pidip/doc/*.pd $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)
- install -d $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)
- install -p $(externals_src)/pidip/patches/*.* $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)
-# install -d $(DESTDIR)$(manualsdir)/$(PIDIP_NAME)
- install -d $(DESTDIR)$(readmesdir)
+ install -d $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples
+ install -p $(externals_src)/pidip/patches/*.* \
+ $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples
install -p $(externals_src)/pidip/README \
- $(DESTDIR)$(readmesdir)/$(PIDIP_NAME).txt
- install -d $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)/images
+ $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/README.txt
+ install -d $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/images
install -p $(externals_src)/pidip/patches/images/*.* \
- $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)/images
- install -d $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)/morphology
+ $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/images
+ install -d $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/morphology
install -p $(externals_src)/pidip/patches/morphology/*.* \
- $(DESTDIR)$(examplesdir)/$(PIDIP_NAME)/morphology
+ $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/morphology
+ifeq ($(OS_NAME),darwin)
+# switch Linux-only pdp_v4l to Mac-only pdp_ieee1394
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/*.pd.bak
+ sed -i.bak 's|pdp_v4l|pdp_ieee1394|' $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/*.pd
+ rm -f -- $(DESTDIR)$(objectsdir)/$(PIDIP_NAME)/examples/*.pd.bak
+endif
pidip_clean:
-rm -f -- $(externals_src)/pidip/*.$(EXTENSION)