DESCRIPTION = "FBreader is an ebook reader" LICENSE = "GPL2" HOMEPAGE = "http://only.mawhrin.net/fbreader/" SECTION = "x11/utils" PRIORITY = "optional" DEPENDS = "gtk+ enca expat bzip2 libgpewidget" PR = "r3" # The RESOLUTION is defined at compile time which makes # this package MACHINE specific. PACKAGE_ARCH_${PN} = "${MACHINE}" SRC_URI = "http://only.mawhrin.net/fbreader/fbreader-sources-${PV}.tgz \ file://fbreader-0.8.2a_buildsys_oe.patch;patch=1 \ file://480x640-buildfix.patch;patch=1" # Set the defaults READER_RESOLUTION = "240x320" READER_ARCH = "openzaurus" READER_GUI = "gpe" READER_STATUS = "release" # Set device specific overrides RESOLUTION_fic-gta01 = "480x640" FILES_${PN} += "${datadir}/FBReader ${datadir}/zlibrary" CFLAGS_append = " RESOLUTION=${RESOLUTION} INSTALLDIR=/usr" EXTRA_OEMAKE = "CC='${CXX}' LD='${CXX}' OE_CFLAGS='${CXXFLAGS}' INCPATH='${STAGING_INCDIR}' LIBPATH='${STAGING_LIBDIR}'" inherit pkgconfig do_configure() { cd ${WORKDIR}/${PN}-${PV} mv makefiles/target.mk makefiles/target.mk.orig echo "TARGET_ARCH = ${READER_ARCH}" > makefiles/target.mk echo "UI_TYPE = ${READER_GUI}" >> makefiles/target.mk echo "TARGET_STATUS = ${READER_STATUS}" >> makefiles/target.mk cd fbreader/data/help # FIXME: Add native _480x640 file with propper linebreaks ln -s MiniHelp.240x320.fb2 MiniHelp.openzaurus_480x640.fb2 } do_install () { cd fbreader/${READER_ARCH}; oe_runmake .builddir RESOLUTION=${RESOLUTION} cp -r data/* ${D} }