Scrap all default include / bin paths except vanilla's

Multiple defaults cause confusion and after discussion vanilla is preferred
default because:

1. vanilla is actively maintained
2. currently most pd lib authors develop against vanilla
3. unlike other pd flavors, vanilla is not part of a centralized build system
   with internal include path
This commit is contained in:
katja 2016-10-04 17:33:45 +02:00
parent dc9a8df02a
commit a6a89dc021

View file

@ -1,5 +1,5 @@
# Makefile.pdlibbuilder dated 2016-09-20
version = 0.2.6
# Makefile.pdlibbuilder dated 2016-10-04
version = 0.2.7
# Helper makefile for Pure Data external libraries.
# Written by Katja Vetter March-June 2015 for the public domain. No warranties.
@ -220,18 +220,13 @@ version = 0.2.6
# Executables are built in current working directory.
#
# Variable 'pdincludepath' stores a location where m_pd.h is expected to reside.
# Locations where Makefile.pdlibbuilder tries to find it, in order of priority:
# Location where Makefile.pdlibbuilder tries to find it:
#
# any OS: $(externalsdir)../pd/src
# Linux: /usr/include/pd
#
# Linux: /usr/include/pdextended
# /usr/include/pd
# OSX: /Applications/Pd*.app/Contents/Resources/src
#
# OSX: /Applications/Pd-extended.app/Contents/Resources/include/pdextended
# /Applications/Pd.app/Contents/Resources/src
#
# Windows: %PROGRAMFILES%/pd/include/pdextended
# %PROGRAMFILES%/pd/src
# Windows: %PROGRAMFILES%/pd/src
#
# The path for installation of all library components is constructed as:
#
@ -337,8 +332,7 @@ endif
# Relative path to externals root dir in multi-lib source tree like
# pd-extended SVN. Default is parent of current working directory. May be
# defined differently in including makefile. This variable is used to probe for
# paths.
# defined differently in including makefile.
externalsdir ?= ..
# variable you can use to check if Makefile.pdlibbuilder is already included
@ -486,10 +480,7 @@ ifeq ($(system), Linux)
prefix = /usr/local
libdir := $(prefix)/lib
pkglibdir = $(libdir)/pd-externals
pdincludepath := $(firstword $(wildcard \
$(externalsdir)/../pd/src \
/usr/include/pdextended \
/usr/include/pd))
pdincludepath := $(wildcard /usr/include/pd)
extension = pd_linux
cpp.flags := -DUNIX
c.flags := -fpic
@ -515,8 +506,6 @@ endif
ifeq ($(system), Darwin)
pkglibdir = $(HOME)/Library/Pd
pdincludepath := $(firstword $(wildcard \
$(externalsdir)/../pd/src \
/Applications/Pd-extended*.app/Contents/Resources/include/pdextended \
/Applications/Pd*.app/Contents/Resources/src))
extension = pd_darwin
cpp.flags := -DUNIX -DMACOSX -I /sw/include
@ -555,14 +544,9 @@ endif
# paths for 32-bit executables on 64-bit Windows aren't yet defined here (TODO)
ifeq ($(system), Windows)
pkglibdir := $(APPDATA)/Pd
pdbinpath := $(wildcard $(externalsdir)/../pd/bin)
pdincludepath := $(wildcard $(externalsdir)/../pd/src)
ifndef pdbinpath
pdbinpath := $(shell ls -d "$(PROGRAMFILES)/pd/bin")
endif
ifndef pdincludepath
pdincludepath := $(shell ls -d "$(PROGRAMFILES)/pd/include/pdextended")
endif
ifndef pdincludepath
pdincludepath := $(shell ls -d "$(PROGRAMFILES)/pd/src")
endif
@ -1160,7 +1144,7 @@ depend:
ifdef mpdh
mpdhinfo := $(mpdh)
else
mpdhinfo := m_pd.h was not found. Is Pd(-extended) installed?
mpdhinfo := m_pd.h was not found. Is Pd installed?
endif
help: