########################################## # libao package for PADS ########################################## #Check if we are using WARP board ifeq ($(strip $(PADS_WARP)),y) #Define version of your package LIBAO_VER=0.8.8 #Define where your packaging will be compiled LIBAO_DIR=$(BUILD_DIR)/libao-$(LIBAO_VER) #Define the name of package to be downloaded LIBAO_SOURCE=libao-$(LIBAO_VER).tar.gz #Define the distribution site LIBAO_SITE=http://downloads.xiph.org/releases/ao #Define a method to uncompress downloaded package LIBAO_UNZIP=tar xfz endif LIBAO_CONFIGURE_OPTS=--host=powerpc-linux --prefix=$(TARGET_DIR)/usr \ --disable-alsa --disable-alsa09 --disable-oss --disable-sun --disable-esd \ --disable-irix --disable-nas --disable-macosx --disable-pulse --disable-arts ifeq ($(ARCH),) ARCH := powerpc endif export CROSS_COMPILE=ppc_4xxFP- #Rule to define how to obtain your package (wget in this case) $(DL_DIR)/$(LIBAO_SOURCE): $(WGET) -P $(DL_DIR) $(LIBAO_SITE)/$(LIBAO_SOURCE) #Uncompress the package, then mark the directory with ".unpacked" file $(LIBAO_DIR)/.unpacked: $(DL_DIR)/$(LIBAO_SOURCE) $(LIBAO_UNZIP) $(DL_DIR)/$(LIBAO_SOURCE) -C $(BUILD_DIR) touch $(LIBAO_DIR)/.unpacked # Configure the package, once done, mark the folder with ".configured" $(LIBAO_DIR)/.configured: $(LIBAO_DIR)/.unpacked cd $(LIBAO_DIR); ./configure $(LIBAO_CONFIGURE_OPTS) touch $(LIBAO_DIR)/.configured #Compile and install if applicable libao: $(LIBAO_DIR)/.configured $(MAKE) -C $(LIBAO_DIR) $(MAKE) -C $(LIBAO_DIR)/src install-strip $(MAKE) -C $(LIBAO_DIR)/include install #Compile and install if applicable libao-all: $(LIBAO_DIR)/.configured $(MAKE) -C $(LIBAO_DIR) $(MAKE) -C $(LIBAO_DIR) install libao-configure: $(LIBAO_DIR)/.configured libao-config: $(LIBAO_DIR)/.configured #If you want to start over libao-clean: $(MAKE) -C $(LIBAO_DIR) clean $(RM) -f $(LIBAO_DIR)/.configured libao-distclean: libao-clean $(MAKE) -C $(LIBAO_DIR) uninstall $(MAKE) -C $(LIBAO_DIR) distclean $(RM) -rf $(LIBAO_DIR) #This section will bring it up to defaults libao-dirclean: libao-distclean $(RM) -rf $(DL_DIR)/$(LIBAO_SOURCE) ################################################ # # Toplevel Makefile options # ################################################# # Over here we check for "y" on our package and add it to the list of targets. # If your app requires other packages, please specify them here ifeq ($(strip $(PADS_PACKAGE_LIBAO)),y) TARGETS+=libao endif