########################################## # libid3tag package for PADS ########################################## #Check if we are using WARP board ifeq ($(strip $(PADS_WARP)),y) #Define version of your package LIBID3TAG_VER=0.15.1b #Define where your packaging will be compiled LIBID3TAG_DIR=$(BUILD_DIR)/libid3tag-$(LIBID3TAG_VER) #Define the name of package to be downloaded LIBID3TAG_SOURCE=libid3tag-$(LIBID3TAG_VER).tar.gz #Define the distribution site LIBID3TAG_SITE=http://sourceforge.net/projects/mad/files/libid3tag/ #Define a method to uncompress downloaded package LIBID3TAG_UNZIP=tar xfz endif LIBID3TAG_CONFIGURE_OPTS=--host=powerpc-linux --prefix=$(TARGET_DIR)/usr ifeq ($(ARCH),) ARCH := powerpc endif export CROSS_COMPILE=ppc_4xxFP- #Rule to define how to obtain your package (wget in this case) $(DL_DIR)/$(LIBID3TAG_SOURCE): $(WGET) -P $(DL_DIR) $(LIBID3TAG_SITE)/$(LIBID3TAG_SOURCE) #Uncompress the package, then mark the directory with ".unpacked" file $(LIBID3TAG_DIR)/.unpacked: $(DL_DIR)/$(LIBID3TAG_SOURCE) $(LIBID3TAG_UNZIP) $(DL_DIR)/$(LIBID3TAG_SOURCE) -C $(BUILD_DIR) touch $(LIBID3TAG_DIR)/.unpacked # Configure the package, once done, mark the folder with ".configured" $(LIBID3TAG_DIR)/.configured: $(LIBID3TAG_DIR)/.unpacked cd $(LIBID3TAG_DIR); ./configure $(LIBID3TAG_CONFIGURE_OPTS) touch $(LIBID3TAG_DIR)/.configured #Compile and install if applicable $(LIBID3TAG_DIR)/.installed: $(LIBID3TAG_DIR)/.configured $(MAKE) -C $(LIBID3TAG_DIR) $(MAKE) -C $(LIBID3TAG_DIR) install-strip echo "libid3tag version" $(LIBID3TAG_VER) >> $(PERSISTENT_STORAGE)/version_info.txt touch $(LIBID3TAG_DIR)/.installed libid3tag: $(LIBID3TAG_DIR)/.installed libid3tag-configure: $(LIBID3TAG_DIR)/.configured libid3tag-config: $(LIBID3TAG_DIR)/.configured #If you want to start over.. libid3tag-clean: $(RM) -f $(LIBID3TAG_DIR)/.configured $(RM) -f $(LIBID3TAG_DIR)/.installed $(MAKE) -C $(LIBID3TAG_DIR) clean libid3tag-distclean: libid3tag-clean $(MAKE) -C $(LIBID3TAG_DIR) uninstall $(MAKE) -C $(LIBID3TAG_DIR) distclean $(RM) -rf $(LIBID3TAG_DIR) #This section will bring it up to defaults libid3tag-dirclean: libid3tag-distclean $(RM) -rf $(DL_DIR)/$(LIBID3TAG_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_LIBID3TAG)),y) TARGETS+=libmad libid3tag endif