summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:21:27 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-18 21:21:27 +0000
commit5ff46e5dca1029648c12a910e4b7a7bfb503aed2 (patch)
tree736ae3ccfdfcc418b34638f20fe3bf12e522b0c3 /package
parentcb4ca456a23a227e39d4425558b44c60c2319673 (diff)
downloadbuildroot-novena-5ff46e5dca1029648c12a910e4b7a7bfb503aed2.tar.gz
buildroot-novena-5ff46e5dca1029648c12a910e4b7a7bfb503aed2.zip
pixman: add host version
Diffstat (limited to 'package')
-rw-r--r--package/pixman/pixman.mk40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/pixman/pixman.mk b/package/pixman/pixman.mk
index ba8e80d07..0b20353bf 100644
--- a/package/pixman/pixman.mk
+++ b/package/pixman/pixman.mk
@@ -10,3 +10,43 @@ 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
+PIXMAN_HOST_BINARY:=$(HOST_DIR)/usr/lib/libpixman-1.0.a
+
+$(PIXMAN_HOST_DIR)/.unpacked: $(DL_DIR)/$(PIXMAN_SOURCE)
+ mkdir -p $(@D)
+ $(INFLATE$(suffix $(PIXMAN_SOURCE))) $< | \
+ $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) $(TAR_OPTIONS) -
+ touch $@
+
+$(PIXMAN_HOST_DIR)/.configured: $(PIXMAN_HOST_DIR)/.unpacked
+ (cd $(@D); rm -rf config.cache; \
+ $(HOST_CONFIGURE_OPTS) \
+ CFLAGS="$(HOST_CFLAGS)" \
+ LDFLAGS="$(HOST_LDFLAGS)" \
+ $(@D)/configure \
+ --prefix=$(HOST_DIR)/usr \
+ --sysconfdir=$(HOST_DIR)/etc \
+ )
+ touch $@
+
+$(PIXMAN_HOST_DIR)/.compiled: $(PIXMAN_HOST_DIR)/.configured
+ $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+ touch $@
+
+$(PIXMAN_HOST_BINARY): $(PIXMAN_HOST_DIR)/.compiled
+ $(HOST_MAKE_ENV) $(MAKE) -C $(<D) install
+
+host-pixman: $(PIXMAN_HOST_BINARY)
+
+host-pixman-source: pixman-source
+
+host-pixman-clean:
+ rm -f $(addprefix $(PIXMAN_HOST_DIR)/,.unpacked .configured .compiled)
+ -$(MAKE) -C $(PIXMAN_HOST_DIR) uninstall
+ -$(MAKE) -C $(PIXMAN_HOST_DIR) clean
+
+host-pixman-dirclean:
+ rm -rf $(PIXMAN_HOST_DIR)