From 75ee508b77a397f275f6bedc5e43eceb2f823439 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 14 Nov 2011 16:55:52 +0800 Subject: [PATCH] csound: make some progress --- csound/Makefile | 15 ++++++++++++++- csound/files/custom.py | 27 +++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 csound/files/custom.py diff --git a/csound/Makefile b/csound/Makefile index b2c5e20..8a5a7e7 100644 --- a/csound/Makefile +++ b/csound/Makefile @@ -13,18 +13,31 @@ PKG_RELEASE:=1 PKG_INSTALL:=1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk define Package/csound TITLE:=Csound SECTION:=utils CATEGORY:=Utilities URL:=http://csounds.com/ - DEPENDS:=@BROKEN + DEPENDS:=+libsndfile @BROKEN endef define Package/csound/description Csound is a sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms. Its use is not restricted to any style of music, having been employed for many years in the creation of classical, pop, techno, ambient, experimental, and (of course) computer music, as well as music for film and television. endef +define Build/Prepare + $(Build/Prepare/Default) + $(CP) $(FILES_DIR)/* $(PKG_BUILD_DIR) +endef + +define Build/Compile + (cd $(PKG_BUILD_DIR) && $(MAKE_VARS) scons $(MAKE_FLAGS)) +endef + +define Build/Install +endef + define Package/csound/install $(INSTALL_DIR) $(1)/usr/bin endef diff --git a/csound/files/custom.py b/csound/files/custom.py new file mode 100644 index 0000000..8596b63 --- /dev/null +++ b/csound/files/custom.py @@ -0,0 +1,27 @@ +''' +Modify this file, by platform, to handle nonstandard options for third-party +dependencies. If you do modify this file, you should make it read-only +(or otherwise protect it) so that CVS will not overwrite it. + +Order is important: place local paths ahead of system paths. +''' +import sys +import os + +customCPPPATH = [] +customCCFLAGS = [] +customCXXFLAGS = [] +customLIBS = [] +customLIBPATH = [] +customSHLINKFLAGS = [] +customSWIGFLAGS = [] + +if sys.platform[:5] == 'linux': + platform = 'linux' + customCPPPATH.append(os.environ['LDFLAGS']) + customCCFLAGS.append(os.environ['CFLAGS']) + customCXXFLAGS.append(os.environ['CFLAGS']) + customLIBPATH.append(os.environ['LDFLAGS']) +else: + platform = 'unsupported platform' +