########################################################### # # xfixes # ########################################################### # # XFIXES_VERSION, XFIXES_SITE and XFIXES_SOURCE define # the upstream location of the source code for the package. # XFIXES_DIR is the directory which is created when the source # archive is unpacked. # XFIXES_SITE=http://freedesktop.org XFIXES_SOURCE=# none - available from CVS only XFIXES_VERSION=2.0.2+cvs20050130 XFIXES_REPOSITORY=:pserver:anoncvs@freedesktop.org:/cvs/xlibs XFIXES_DIR=Xfixes XFIXES_CVS_OPTS=-D20050130 XFIXES_MAINTAINER=Josh Parsons XFIXES_DESCRIPTION=X fixes extension library XFIXES_SECTION=lib XFIXES_PRIORITY=optional XFIXES_DEPENDS=x11 # # XFIXES_IPK_VERSION should be incremented when the ipk changes. # XFIXES_IPK_VERSION=4 # # XFIXES_CONFFILES should be a list of user-editable files XFIXES_CONFFILES= # # XFIXES_PATCHES should list any patches, in the the order in # which they should be applied to the source code. # XFIXES_PATCHES= # # If the compilation of the package requires additional # compilation or linking flags, then list them here. # XFIXES_CPPFLAGS= XFIXES_LDFLAGS= # # XFIXES_BUILD_DIR is the directory in which the build is done. # XFIXES_SOURCE_DIR is the directory which holds all the # patches and ipkg control files. # XFIXES_IPK_DIR is the directory in which the ipk is built. # XFIXES_IPK is the name of the resulting ipk files. # # You should not change any of these variables. # XFIXES_BUILD_DIR=$(BUILD_DIR)/xfixes XFIXES_SOURCE_DIR=$(SOURCE_DIR)/xfixes XFIXES_IPK_DIR=$(BUILD_DIR)/xfixes-$(XFIXES_VERSION)-ipk XFIXES_IPK=$(BUILD_DIR)/xfixes_$(XFIXES_VERSION)-$(XFIXES_IPK_VERSION)_$(TARGET_ARCH).ipk # # Automatically create a ipkg control file # $(XFIXES_IPK_DIR)/CONTROL/control: @install -d $(XFIXES_IPK_DIR)/CONTROL @rm -f $@ @echo "Package: xfixes" >>$@ @echo "Architecture: $(TARGET_ARCH)" >>$@ @echo "Priority: $(XFIXES_PRIORITY)" >>$@ @echo "Section: $(XFIXES_SECTION)" >>$@ @echo "Version: $(XFIXES_VERSION)-$(XFIXES_IPK_VERSION)" >>$@ @echo "Maintainer: $(XFIXES_MAINTAINER)" >>$@ @echo "Source: $(XFIXES_SITE)/$(XFIXES_SOURCE)" >>$@ @echo "Description: $(XFIXES_DESCRIPTION)" >>$@ @echo "Depends: $(XFIXES_DEPENDS)" >>$@ # # In this case there is no tarball, instead we fetch the sources # directly to the builddir with CVS # $(DL_DIR)/xfixes-$(XFIXES_VERSION).tar.gz: ( cd $(BUILD_DIR) ; \ rm -rf $(XFIXES_DIR) && \ cvs -d $(XFIXES_REPOSITORY) -z3 co $(XFIXES_CVS_OPTS) $(XFIXES_DIR) && \ tar -czf $@ $(XFIXES_DIR) && \ rm -rf $(XFIXES_DIR) \ ) xfixes-source: $(DL_DIR)/xfixes-$(XFIXES_VERSION).tar.gz $(XFIXES_PATCHES) # # This target also configures the build within the build directory. # Flags such as LDFLAGS and CPPFLAGS should be passed into configure # and NOT $(MAKE) below. Passing it to configure causes configure to # correctly BUILD the Makefile with the right paths, where passing it # to Make causes it to override the default search paths of the compiler. # # If the compilation of the package requires other packages to be staged # first, then do that first (e.g. "$(MAKE) -stage -stage"). # $(XFIXES_BUILD_DIR)/.configured: $(DL_DIR)/xfixes-$(XFIXES_VERSION).tar.gz \ $(XFIXES_PATCHES) make/xfixes.mk $(MAKE) x11-stage $(MAKE) fixesext-stage rm -rf $(BUILD_DIR)/$(XFIXES_DIR) $(@D) tar -C $(BUILD_DIR) -xzf $(DL_DIR)/xfixes-$(XFIXES_VERSION).tar.gz if test -n "$(XFIXES_PATCHES)" ; \ then cat $(XFIXES_PATCHES) | \ patch -d $(BUILD_DIR)/$(XFIXES_DIR) -p1 ; \ fi if test "$(BUILD_DIR)/$(XFIXES_DIR)" != "$(XFIXES_BUILD_DIR)" ; \ then mv $(BUILD_DIR)/$(XFIXES_DIR) $(XFIXES_BUILD_DIR) ; \ fi (cd $(XFIXES_BUILD_DIR); \ $(TARGET_CONFIGURE_OPTS) \ CPPFLAGS="$(STAGING_CPPFLAGS) $(XFIXES_CPPFLAGS)" \ LDFLAGS="$(STAGING_LDFLAGS) $(XFIXES_LDFLAGS)" \ PKG_CONFIG_PATH="$(STAGING_LIB_DIR)/pkgconfig" \ PKG_CONFIG_LIBDIR="$(STAGING_LIB_DIR)/pkgconfig" \ ./autogen.sh \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_TARGET_NAME) \ --target=$(GNU_TARGET_NAME) \ --prefix=/opt \ --disable-static \ ) touch $@ xfixes-unpack: $(XFIXES_BUILD_DIR)/.configured # # This builds the actual binary. # $(XFIXES_BUILD_DIR)/.built: $(XFIXES_BUILD_DIR)/.configured rm -f $@ $(MAKE) -C $(XFIXES_BUILD_DIR) touch $@ # # This is the build convenience target. # xfixes: $(XFIXES_BUILD_DIR)/.built # # If you are building a library, then you need to stage it too. # $(XFIXES_BUILD_DIR)/.staged: $(XFIXES_BUILD_DIR)/.built rm -f $@ $(MAKE) -C $(XFIXES_BUILD_DIR) DESTDIR=$(STAGING_DIR) install sed -ie 's|^prefix=.*|prefix=$(STAGING_PREFIX)|' $(STAGING_LIB_DIR)/pkgconfig/xfixes.pc rm -f $(STAGING_LIB_DIR)/libXfixes.la touch $@ xfixes-stage: $(XFIXES_BUILD_DIR)/.staged # # This builds the IPK file. # # Binaries should be installed into $(XFIXES_IPK_DIR)/opt/sbin or $(XFIXES_IPK_DIR)/opt/bin # (use the location in a well-known Linux distro as a guide for choosing sbin or bin). # Libraries and include files should be installed into $(XFIXES_IPK_DIR)/opt/{lib,include} # Configuration files should be installed in $(XFIXES_IPK_DIR)/opt/etc/xfixes/... # Documentation files should be installed in $(XFIXES_IPK_DIR)/opt/doc/xfixes/... # Daemon startup scripts should be installed in $(XFIXES_IPK_DIR)/opt/etc/init.d/S??xfixes # # You may need to patch your application to make it use these locations. # $(XFIXES_IPK): $(XFIXES_BUILD_DIR)/.built rm -rf $(XFIXES_IPK_DIR) $(BUILD_DIR)/xfixes_*_$(TARGET_ARCH).ipk $(MAKE) -C $(XFIXES_BUILD_DIR) DESTDIR=$(XFIXES_IPK_DIR) install-strip $(MAKE) $(XFIXES_IPK_DIR)/CONTROL/control rm -f $(XFIXES_IPK_DIR)/opt/lib/*.la cd $(BUILD_DIR); $(IPKG_BUILD) $(XFIXES_IPK_DIR) # # This is called from the top level makefile to create the IPK file. # xfixes-ipk: $(XFIXES_IPK) # # This is called from the top level makefile to clean all of the built files. # xfixes-clean: -$(MAKE) -C $(XFIXES_BUILD_DIR) clean # # This is called from the top level makefile to clean all dynamically created # directories. # xfixes-dirclean: rm -rf $(BUILD_DIR)/$(XFIXES_DIR) $(XFIXES_BUILD_DIR) $(XFIXES_IPK_DIR) $(XFIXES_IPK)