Marc Kleine-Budde wrote: >>>>> - insert a "autoreconf" line before the "autogen.sh" line >>>>> - add a line that reads: "@$(call patchin, DIRECTFB)" between the >>>>> autoreconf line and the autogen.sh line >>>>> - replace just the word "./autogen.sh" by "./configure" >>> Even this (attached) version doesn't work. >> I'll try to fix it here, > > svn up > > should work now. my machine is still compiling, though ;)
works, try the attached directfb.make. But you probably have to fix host-directfb.make Marc -- Marc Kleine-Budde Phone: +49-231-2826-924 Pengutronix - Linux Solutions for Science and Industry Vertretung West/Dortmund http://www.pengutronix.de
# -*-makefile-*-
# $Id: template 5041 2006-03-09 08:45:49Z mkl $
#
# Copyright (C) 2006 by Marc Kleine-Budde <[EMAIL PROTECTED]>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_DIRECTFB) += directfb
#
# Paths and names
#
DIRECTFB_VERSION := 1.2-local
DIRECTFB := DirectFB
DIRECTFB_URL := file://local_src/$(DIRECTFB)
DIRECTFB_SOURCE := $(SRCDIR)/$(DIRECTFB)
DIRECTFB_DIR := $(BUILDDIR)/$(DIRECTFB)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(DIRECTFB_SOURCE):
@$(call targetinfo)
@$(call get, DIRECTFB)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
$(STATEDIR)/directfb.extract:
@$(call targetinfo)
@$(call clean, $(DIRECTFB_DIR))
@$(call extract, DIRECTFB)
cd $(DIRECTFB_DIR) && autoreconf -fi
@$(call patchin, DIRECTFB)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
DIRECTFB_PATH := PATH=$(CROSS_PATH)
DIRECTFB_ENV = \
$(CROSS_ENV) \
DIRECTFB_CSOURCE=$(HOST_DIRECTFB_DIR)/tools/directfb-csource
ifdef PTXCONF_DIRECTFB_GRAPHICS_DAVINCI
DIRECTFB_GRAPHICS += davinci
endif
ifdef PTXCONF_DIRECTFB_INPUT_KEYBOARD
DIRECTFB_INPUT += keyboard
endif
ifdef PTXCONF_DIRECTFB_INPUT_LINUXINPUT
DIRECTFB_INPUT += linuxinput
endif
ifdef PTXCONF_DIRECTFB_INPUT_PS2MOUSE
DIRECTFB_INPUT += ps2mouse
endif
ifdef PTXCONF_DIRECTFB_INPUT_TSLIB
DIRECTFB_INPUT += tslib
endif
#
# autoconf
#
DIRECTFB_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--disable-osx \
--disable-network \
--disable-multi \
--disable-voodoo \
--disable-sdl \
--disable-vnc \
--disable-sysfs \
--disable-zlib \
--disable-video4linux \
--disable-video4linux2 \
\
--with-gfxdrivers=$(subst $(space),$(comma),$(DIRECTFB_GRAPHICS)) \
--with-inputdrivers=$(subst $(space),$(comma),$(DIRECTFB_INPUT)) \
\
--enable-fbdev \
--disable-x11 \
--enable-static \
--sysconfdir=/etc
ifdef PTXCONF_DIRECTFB_DEBUG
DIRECTFB_AUTOCONF += --enable-debug
else
DIRECTFB_AUTOCONF += --disable-debug
endif
ifdef PTXCONF_DIRECTFB_DEBUGS
DIRECTFB_AUTOCONF += --enable-debug-support
DIRECTFB_MODULEDIRECTORY := /usr/lib/directfb-1.2-0
else
DIRECTFB_AUTOCONF += --disable-debug-support
DIRECTFB_MODULEDIRECTORY := /usr/lib/directfb-1.2-0-pure
endif
ifdef PTXCONF_DIRECTFB_TRACE
DIRECTFB_AUTOCONF += --enable-trace
else
DIRECTFB_AUTOCONF += --disable-trace
endif
ifdef PTXCONF_DIRECTFB_WM_UNIQUE
DIRECTFB_AUTOCONF += --enable-unique
else
DIRECTFB_AUTOCONF += --disable-unique
endif
ifdef PTXCONF_DIRECTFB_IMAGE_GIF
DIRECTFB_AUTOCONF += --enable-gif
else
DIRECTFB_AUTOCONF += --disable-gif
endif
ifdef PTXCONF_DIRECTFB_IMAGE_PNG
DIRECTFB_AUTOCONF += --enable-png
else
DIRECTFB_AUTOCONF += --disable-png
endif
ifdef PTXCONF_DIRECTFB_IMAGE_JPEG
DIRECTFB_AUTOCONF += --enable-jpeg
else
DIRECTFB_AUTOCONF += --disable-jpeg
endif
ifdef PTXCONF_DIRECTFB_FONT_FREETYPE
DIRECTFB_AUTOCONF += --enable-freetype
else
DIRECTFB_AUTOCONF += --disable-freetype
endif
$(STATEDIR)/directfb.prepare:
@$(call targetinfo)
@$(call clean, $(DIRECTFB_DIR)/config.cache)
@$(call static, DIRECTFB)
cd $(DIRECTFB_DIR) && \
$(DIRECTFB_PATH) $(DIRECTFB_ENV) \
./configure $(DIRECTFB_AUTOCONF)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/directfb.targetinstall:
@$(call targetinfo)
@$(call install_init, directfb)
@$(call install_fixup,directfb,PACKAGE,directfb)
@$(call install_fixup,directfb,PRIORITY,optional)
@$(call install_fixup,directfb,VERSION,$(DIRECTFB_VERSION))
@$(call install_fixup,directfb,SECTION,base)
@$(call install_fixup,directfb,AUTHOR,"Robert Schwebel <[EMAIL
PROTECTED]>")
@$(call install_fixup,directfb,DEPENDS,)
@$(call install_fixup,directfb,DESCRIPTION,missing)
@$(call install_copy, directfb, 0, 0, 0755, \
$(DIRECTFB_DIR)/tools/dfbinfo, \
/usr/bin/dfbinfo)
@$(call install_copy, directfb, 0, 0, 0644, \
$(PTXDIST_WORKSPACE)/projectroot/etc/directfbrc, \
/etc/directfbrc)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/src/.libs/libdirectfb-1.2.so.0.0.0, \
/usr/lib/libdirectfb-1.2.so.0.0.0)
@$(call install_link, directfb, libdirectfb-1.2.so.0.0.0,
/usr/lib/libdirectfb-1.2.so.0)
@$(call install_link, directfb, libdirectfb-1.2.so.0.0.0,
/usr/lib/libdirectfb.so)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/lib/fusion/.libs/libfusion-1.2.so.0.0.0, \
/usr/lib/libfusion-1.2.so.0.0.0)
@$(call install_link, directfb, libfusion-1.2.so.0.0.0,
/usr/lib/libfusion-1.2.so.0)
@$(call install_link, directfb, libfusion-1.2.so.0.0.0,
/usr/lib/libfusion.so)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/lib/direct/.libs/libdirect-1.2.so.0.0.0, \
/usr/lib/libdirect-1.2.so.0.0.0)
@$(call install_link, directfb, libdirect-1.2.so.0.0.0,
/usr/lib/libdirect-1.2.so.0)
@$(call install_link, directfb, libdirect-1.2.so.0.0.0,
/usr/lib/libdirect.so)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/systems/fbdev/.libs/libdirectfb_fbdev.so, \
$(DIRECTFB_MODULEDIRECTORY)/systems/libdirectfb_fbdev.so)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/wm/default/.libs/libdirectfbwm_default.so, \
$(DIRECTFB_MODULEDIRECTORY)/wm/libdirectfbwm_default.so)
ifdef PTXCONF_DIRECTFB_WM_UNIQUE
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/wm/unique/.libs/libdirectfbwm_unique.so, \
$(DIRECTFB_MODULEDIRECTORY)/wm/libdirectfbwm_unique.so)
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/wm/unique/.libs/libuniquewm-1.2.so.0.0.0, \
/usr/lib/libuniquewm-1.2.so.0.0.0)
@$(call install_link, directfb, libuniquewm-1.2.so.0.0.0,
/usr/lib/libuniquewm-1.2.so.0)
@$(call install_link, directfb, libuniquewm-1.2.so.0.0.0,
/usr/lib/libuniquewm.so)
endif
ifdef PTXCONF_DIRECTFB_IMAGE_GIF
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/interfaces/IDirectFBImageProvider/.libs/libidirectfbimageprovider_gif.so,
\
$(DIRECTFB_MODULEDIRECTORY)/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_gif.so)
endif
ifdef PTXCONF_DIRECTFB_IMAGE_PNG
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/interfaces/IDirectFBImageProvider/.libs/libidirectfbimageprovider_png.so,
\
$(DIRECTFB_MODULEDIRECTORY)/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_png.so)
endif
ifdef PTXCONF_DIRECTFB_IMAGE_JPEG
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/interfaces/IDirectFBImageProvider/.libs/libidirectfbimageprovider_jpeg.so,
\
$(DIRECTFB_MODULEDIRECTORY)/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_jpeg.so)
endif
ifdef PTXCONF_DIRECTFB_GRAPHICS_DAVINCI
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/gfxdrivers/davinci/.libs/libdirectfb_davinci.so, \
$(DIRECTFB_MODULEDIRECTORY)/gfxdrivers/libdirectfb_davinci.so)
endif
ifdef PTXCONF_DIRECTFB_INPUT_LINUXINPUT
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/inputdrivers/linux_input/.libs/libdirectfb_linux_input.so, \
$(DIRECTFB_MODULEDIRECTORY)/inputdrivers/libdirectfb_linux_input.so)
endif
ifdef PTXCONF_DIRECTFB_INPUT_KEYBOARD
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/inputdrivers/keyboard/.libs/libdirectfb_keyboard.so, \
$(DIRECTFB_MODULEDIRECTORY)/inputdrivers/libdirectfb_keyboard.so)
endif
ifdef PTXCONF_DIRECTFB_INPUT_PS2MOUSE
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/inputdrivers/ps2mouse/.libs/libdirectfb_ps2mouse.so, \
$(DIRECTFB_MODULEDIRECTORY)/inputdrivers/libdirectfb_ps2mouse.so)
endif
ifdef PTXCONF_DIRECTFB_INPUT_TSLIB
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/inputdrivers/tslib/.libs/libdirectfb_tslib.so, \
$(DIRECTFB_MODULEDIRECTORY)/inputdrivers/libdirectfb_tslib.so)
endif
ifdef PTXCONF_DIRECTFB_FONT_FREETYPE
@$(call install_copy, directfb, 0, 0, 0644, \
$(DIRECTFB_DIR)/interfaces/IDirectFBFont/.libs/libidirectfbfont_ft2.so, \
$(DIRECTFB_MODULEDIRECTORY)/interfaces/IDirectFBFont/libidirectfbfont_ft2.so)
endif
@$(call install_finish,directfb)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
directfb_clean:
-cd $(DIRECTFB_DIR) && $(DIRECTFB_PATH) $(MAKE) maintainer-clean
rm -rf $(STATEDIR)/directfb.*
rm -rf $(PKGDIR)/directfb_*
rm -rf $(DIRECTFB_DIR)
# vim: syntax=make
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list [email protected]
