e7b38c71ce
Move stamp (dependency) files outside the (version specific) source directories, so other packages can hardcode dependencies on them instead of having to use <PACKAGE>_VERSION variables. This is important as the variables in the make rules are evaluated when the rules is seen, which might be before the dependent makefile is parsed (and hence <PACKAGE>_VERSION variable is known, screwing up stuff. The downside of this is that the package isn't automatically rebuilt when the version changes (E.G. by a svn update) and you now also have to remove the stamp files next to $(BUILD_DIR)/<PACKAGE>-* to force a rebuild.
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# pixman
|
|
#
|
|
################################################################################
|
|
PIXMAN_VERSION = 0.10.0
|
|
PIXMAN_SOURCE = pixman-$(PIXMAN_VERSION).tar.gz
|
|
PIXMAN_SITE = http://cairographics.org/releases/
|
|
PIXMAN_AUTORECONF = NO
|
|
PIXMAN_INSTALL_STAGING = YES
|
|
|
|
$(eval $(call AUTOTARGETS,package,pixman))
|
|
|
|
# pixman for the host
|
|
PIXMAN_HOST_DIR:=$(BUILD_DIR)/pixman-$(PIXMAN_VERSION)-host
|
|
|
|
$(STAMP_DIR)/host_pixman_unpacked: $(DL_DIR)/$(PIXMAN_SOURCE)
|
|
mkdir -p $(PIXMAN_HOST_DIR)
|
|
$(INFLATE$(suffix $(PIXMAN_SOURCE))) $< | \
|
|
$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(PIXMAN_HOST_DIR) $(TAR_OPTIONS) -
|
|
touch $@
|
|
|
|
$(STAMP_DIR)/host_pixman_configured: $(STAMP_DIR)/host_pixman_unpacked
|
|
(cd $(PIXMAN_HOST_DIR); rm -rf config.cache; \
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
CFLAGS="$(HOST_CFLAGS)" \
|
|
LDFLAGS="$(HOST_LDFLAGS)" \
|
|
./configure \
|
|
--prefix="$(HOST_DIR)/usr" \
|
|
--sysconfdir="$(HOST_DIR)/etc" \
|
|
)
|
|
touch $@
|
|
|
|
$(STAMP_DIR)/host_pixman_compiled: $(STAMP_DIR)/host_pixman_configured
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(PIXMAN_HOST_DIR)
|
|
touch $@
|
|
|
|
$(STAMP_DIR)/host_pixman_installed: $(STAMP_DIR)/host_pixman_compiled
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(PIXMAN_HOST_DIR) install
|
|
touch $@
|
|
|
|
host-pixman: $(STAMP_DIR)/host_pixman_installed
|
|
|
|
host-pixman-source: pixman-source
|
|
|
|
host-pixman-clean:
|
|
rm -f $(addprefix $(STAMP_DIR)/host_pixman_,unpacked configured compiled installed)
|
|
-$(MAKE) -C $(PIXMAN_HOST_DIR) uninstall
|
|
-$(MAKE) -C $(PIXMAN_HOST_DIR) clean
|
|
|
|
host-pixman-dirclean:
|
|
rm -rf $(PIXMAN_HOST_DIR)
|