diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/libopie/libopie2.inc | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/libopie/libopie2.inc')
-rw-r--r-- | recipes/libopie/libopie2.inc | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/recipes/libopie/libopie2.inc b/recipes/libopie/libopie2.inc new file mode 100644 index 0000000000..a5a5cef0bd --- /dev/null +++ b/recipes/libopie/libopie2.inc @@ -0,0 +1,99 @@ +DESCRIPTION = "Base libraries for the Open Palmtop Integrated Environment" +HOMEPAGE = "http://opie.handhelds.org" +SECTION = "opie/libs" +LICENSE = "LGPL" +I18N_FILES = "libopiecore2.ts libopiesecurity2.ts" +DEPENDS = "libqpe-opie libpcap sqlite3 bluez-libs" +PROVIDES = "libopiecore2 libopiedb2 libopiemm2 libopiesecurity2 libopienet2 libopiepim2 libopieui2" + +S = "${WORKDIR}/libopie2" + +inherit opie + +PARALLEL_MAKE = "" + +#FIXME: Add machine specific bits here. Best use oe_machinstall and read from a given file + +EXTRA_QMAKEVARS_POST += 'DEFINES+=OPIE_NEW_MALLOC \ + DEFINES+="OPIE_SOUND_FRAGMENT_SHIFT=16" \ + DEFINES+=OPIE_NO_ERASE_RECT_HACKFIX \ + LIBS+=-L${S} LIBS+="-Wl,-rpath-link,${S}"' + +ENABLE_SQL_PIM_BACKEND = "y" +# NOTE: Machines with too little amount of flash may want to disable SQL backend support +# (known not to fit in 16MB). Also, XML backend is still used by default, as SQL doesn't +# support sync yet. +#ENABLE_SQL_PIM_BACKEND_smallmachine = "n" +EXTRA_QMAKEVARS_PRE += 'ENABLE_SQL_PIM_BACKEND=${ENABLE_SQL_PIM_BACKEND}' + +MODULES = "opiecore opiedb opiemm opienet opiepim opiesecurity opieui opiebluez" +LIBS = "core2 db2 mm2 net2 pim2 security2 ui2 bluez2" +PRIVATE = "opimcontactsortvector.h opimoccurrence_p.h opimsortvector.h opimtodosortvector.h vobject_p.h opimeventsortvector.h" + +# uclibc doesn't have backtrace() +python __anonymous () { + import bb, re + if (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None): + bb.data.setVar("EXTRA_QMAKEVARS_POST_append", " DEFINES+=OPIE_NO_BACKTRACE ", d) +} + +do_compile() { + install -d ${STAGING_INCDIR}/opie2 + install -d ${STAGING_INCDIR}/opie2/private + for module in ${MODULES} + do + cd $module + for i in `find . -name "*.h"` + do + install -m 0644 $i ${STAGING_INCDIR}/opie2/`basename $i` + done + cd .. + done + + for header in ${PRIVATE} + do + install -m 0644 opiepim/private/$header ${STAGING_INCDIR}/opie2/private/ + done + + oe_runmake MOC=${STAGING_BINDIR_NATIVE}/moc UIC=${STAGING_BINDIR_NATIVE}/uic DESTDIR=${S} +} + +do_stage() { + for f in ${LIBS} + do + oe_libinstall -so libopie$f ${STAGING_LIBDIR}/ + done + install -m 0644 ${WORKDIR}/include.pro ${OPIEDIR}/include.pro + # special case for uic-created header files + install -m 0644 opiepim/ui/opimrecurrencebase.h ${STAGING_INCDIR}/opie2/ + install -m 0644 opieui/otimepickerbase.h ${STAGING_INCDIR}/opie2/ + install -m 0644 opiepim/core/opimtemplatebase.h ${STAGING_INCDIR}/opie2/ +} + +do_install() { + install -d ${D}${libdir} + for f in ${LIBS} + do + oe_libinstall -so libopie$f ${D}${libdir} + done +} + +PACKAGES_prepend = " libopiecore2 libopiedb2 libopiesecurity2 libopiemm2 libopienet2 libopiepim2 libopieui2 libopiebluez2 " + +DESCRIPTION_libopiecore2 = "Opie Development Platform 1.x Core Library" +FILES_libopiecore2 = "${libdir}/libopiecore2.so.*" +DESCRIPTION_libopiedb2 = "Opie Development Platform 1.x Database Library" +FILES_libopiedb2 = "${libdir}/libopiedb2.so.*" +DESCRIPTION_libopiemm2 = "Opie Development Platform 1.x Multimedia Library" +FILES_libopiemm2 = "${libdir}/libopiemm2.so.*" +DESCRIPTION_libopienet2 = "Opie Development Platform 1.x Network Library" +FILES_libopienet2 = "${libdir}/libopienet2.so.*" +DESCRIPTION_libopiepim2 = "Opie Development Platform 1.x PIM Library" +FILES_libopiepim2 = "${libdir}/libopiepim2.so.*" +DESCRIPTION_libopieui2 = "Opie Development Platform 1.x User Interface Library" +FILES_libopieui2 = "${libdir}/libopieui2.so.*" +DESCRIPTION_libopiesecurity2 = "Opie Development Platform 1.x Security Library" +FILES_libopiesecurity2 = "${libdir}/libopiesecurity2.so.*" +DESCRIPTION_libopiebluez2 = "Opie Development Platform 1.x Bluetooth Library" +FILES_libopiebluez2 = "${libdir}/libopiebluez2.so.*" + |