Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b3f7f16
commit 15662ed
Showing
7 changed files
with
192 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
AUTOMAKE_OPTIONS = foreign | ||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
pkglib_LTLIBRARIES = hoa.la | ||
|
||
hoa_la_CXXFLAGS = @PD_CPPFLAGS@ -s -O2 -fPIC -fpermissive | ||
hoa_la_LDFLAGS = -module -avoid-version -shared -shrext .@EXTENSION@ @PD_LDFLAGS@ -fPIC | ||
hoa_la_LIBADD = Sources/libHoaPd.la | ||
hoa_la_LIBADD += ThirdParty/CircmWrapper/Sources/libCicmWrapper.la | ||
|
||
hoa_la_SOURCES = c.library.h \ | ||
c.library.cpp | ||
|
||
ALL_CFLAGS = -I"$(PD_INCLUDE)" | ||
|
||
hoadir=$(pkglibdir) | ||
|
||
dist_hoa_DATA = \ | ||
hoa-meta.pd \ | ||
LICENSE.txt \ | ||
README.txt | ||
|
||
EXTRA_DIST = autogen.sh | ||
|
||
DISTDIR=$(PACKAGE_NAME)-$(PACKAGE_VERSION) | ||
ORIGDIR=pd-$(PACKAGE_NAME)_$(PACKAGE_VERSION) | ||
OS=$(shell uname -s) | ||
DISTBINDIR=$(DISTDIR)-$(OS) | ||
|
||
SUBDIRS=Sources | ||
|
||
SUBDIRS+= ThirdParty/CircmWrapper | ||
SUBDIRS+= Package/Hoa | ||
|
||
$(abs_builddir)/.libs/hoa.@EXTENSION@: hoa.la | ||
|
||
$(top_builddir)/hoa.@EXTENSION@: $(abs_builddir)/.libs/hoa.@EXTENSION@ | ||
rm -f $@ && cd $(top_builddir) && test -e $< && $(LN_S) $< hoa.@EXTENSION@ || true | ||
|
||
.PHONY: clean-conveniencelink help | ||
|
||
clean-conveniencelink: | ||
test -L $(top_builddir)/hoa.@EXTENSION@ && rm -f $(top_builddir)/hoa.@EXTENSION@ || true | ||
|
||
|
||
all-local:: $(top_builddir)/hoa.@EXTENSION@ help | ||
|
||
clean-local:: clean-conveniencelink | ||
|
||
README.txt: | ||
cp README.md README.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
autoreconf --force --install -I config -I m4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
## replace the email below with authors' emails | ||
AC_INIT([hoa], 0.3-git, musique@univ-paris8.fr,[hoa],[https://github.com/CICM/HoaLibrary-PD]) | ||
|
||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_CONFIG_AUX_DIR(config) | ||
AC_CONFIG_FILES([Makefile Sources/Makefile]) | ||
AC_CONFIG_FILES([ThirdParty/CicmWrapper/Makefile ThirdParty/CicmWrapper/Sources/Makefile]) | ||
AC_CONFIG_FILES([ThirdParty/CicmWrapper/Sources/ebox/Makefile ThirdParty/CicmWrapper/Sources/eclass/Makefile ThirdParty/CicmWrapper/Sources/ecommon/Makefile ThirdParty/CicmWrapper/Sources/egraphics/Makefile ThirdParty/CicmWrapper/Sources/eobj/Makefile ThirdParty/CicmWrapper/Sources/epopup/Makefile]) | ||
AC_CONFIG_FILES([Package/Cream/Makefile Package/Cream/helps/Makefile Package/Cream/misc/Makefile]) | ||
AC_CONFIG_FILES([cream-meta.pd]) | ||
|
||
AC_SUBST(PD_CPPFLAGS) | ||
AC_SUBST(PD_LDFLAGS) | ||
|
||
AC_SUBST(EXTENSION) | ||
|
||
AM_INIT_AUTOMAKE([1.10 foreign]) | ||
|
||
AC_ARG_WITH([pd], [ --with-pd=</path/to/pd> where to look for pd-headers and and -libs]) | ||
AC_ARG_WITH([extension],[ --with-extension=<ext> enforce a certain extension for the dynamic library (e.g. dll)]) | ||
|
||
ARCH=$(uname -m) | ||
KERN=$(uname -s) | ||
|
||
AC_PROG_CXX | ||
AC_PROG_LIBTOOL | ||
|
||
if test "x${libdir}" = "x\${exec_prefix}/lib"; then | ||
libdir='${exec_prefix}/lib/pd/extra' | ||
fi | ||
|
||
if test "x$with_pd" != "x"; then | ||
if test -d "${with_pd}"; then | ||
PDPATH=${with_pd} | ||
fi | ||
if test -d "${PDPATH}/src"; then | ||
AC_MSG_RESULT([adding ${PDPATH}/src to INCLUDES]) | ||
PD_CPPFLAGS="-I${PDPATH}/src ${CPPFLAGS}" | ||
|
||
AC_MSG_RESULT([adding ${PDPATH}/src to LDFLAGS]) | ||
PD_LDFLAGS="-L${PDPATH}/src ${LDFLAGS}" | ||
else | ||
if test -d "${PDPATH}"; then | ||
AC_MSG_RESULT([adding ${PDPATH} to INCLUDES]) | ||
PD_CPPFLAGS="-I${PDPATH} ${CPPFLAGS}" | ||
fi | ||
fi | ||
if test -d "${PDPATH}/bin"; then | ||
AC_MSG_RESULT([adding ${PDPATH}/bin to LDFLAGS]) | ||
PD_LDFLAGS="-L${PDPATH}/bin ${LDFLAGS}" | ||
else | ||
if test -d "${PDPATH}"; then | ||
AC_MSG_RESULT([adding ${PDPATH} to LDFLAGS]) | ||
PD_LDFLAGS="-L${PDPATH} ${LDFLAGS}" | ||
fi | ||
fi | ||
else | ||
AC_MSG_RESULT([no pd path given, trying with pkg-config data]) | ||
PD_CPPFLAGS=`pkg-config --cflags pd` | ||
PD_LDFLAGS=`pkg-config --libs pd` | ||
fi | ||
|
||
AC_MSG_CHECKING([extension]) | ||
if test "x$with_extension" != "x" | ||
then | ||
EXTENSION=$with_extension | ||
else | ||
case "$KERN" in | ||
Darwin) | ||
EXTENSION=pd_darwin | ||
;; | ||
Linux) | ||
if test "$ARCH" == x86_64 | ||
then | ||
EXTENSION=l_ia64 | ||
else | ||
EXTENSION=l_i386 | ||
fi | ||
;; | ||
*CYGWIN*) | ||
EXTENSION=dll | ||
;; | ||
*MINGW*) | ||
EXTENSION=dll | ||
;; | ||
*) | ||
EXTENSION=pd_linux | ||
;; | ||
esac | ||
fi | ||
AC_MSG_RESULT([$EXTENSION]) | ||
|
||
AC_OUTPUT(Makefile) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters