summaryrefslogtreecommitdiff
path: root/recipes/libdotdesktop
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/libdotdesktop
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (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/libdotdesktop')
-rw-r--r--recipes/libdotdesktop/libdotdesktop_0.11.bb23
-rw-r--r--recipes/libdotdesktop/make_build_var.patch58
2 files changed, 81 insertions, 0 deletions
diff --git a/recipes/libdotdesktop/libdotdesktop_0.11.bb b/recipes/libdotdesktop/libdotdesktop_0.11.bb
new file mode 100644
index 0000000000..d7014ce441
--- /dev/null
+++ b/recipes/libdotdesktop/libdotdesktop_0.11.bb
@@ -0,0 +1,23 @@
+SECTION = "libs"
+DESCRIPTION = "library for extracting mime data from .desktop files."
+DEPENDS = "glib-2.0"
+LICENSE = "GPL"
+inherit pkgconfig
+
+SRC_URI = "${GPE_MIRROR}/libdotdesktop-${PV}.tar.gz \
+ file://make_build_var.patch;patch=1"
+
+headers = "dotdesktop.h"
+
+do_stage () {
+ oe_libinstall -so libdotdesktop ${STAGING_LIBDIR}
+ mkdir -p ${STAGING_INCDIR}/gpe
+ for h in ${headers}; do
+ install -m 0644 ${S}/$h ${STAGING_INCDIR}/gpe/$h
+ done
+}
+
+do_install () {
+ oe_runmake PREFIX=${prefix} DESTDIR=${D} install-program
+ oe_runmake PREFIX=${prefix} DESTDIR=${D} install-devel
+}
diff --git a/recipes/libdotdesktop/make_build_var.patch b/recipes/libdotdesktop/make_build_var.patch
new file mode 100644
index 0000000000..dd5d97c768
--- /dev/null
+++ b/recipes/libdotdesktop/make_build_var.patch
@@ -0,0 +1,58 @@
+--- libdotdesktop-0.11.orig/Makefile 2004-01-13 09:21:54.000000000 +1100
++++ libdotdesktop-0.11/Makefile 2004-04-28 15:36:02.000000000 +1000
+@@ -4,7 +4,7 @@
+ VERSION = 0.11
+ CC=gcc
+ STRIP=strip
+-BUILD = ../build
++BUILD = build
+
+ LINGUAS =
+
+@@ -22,7 +22,8 @@
+ endif
+ CFLAGS += -MD
+
+-CPPFLAGS += -I./gpe `pkg-config --cflags glib-2.0`
++PACKAGE_CFLAGS = `pkg-config --cflags glib-2.0`
++PACKAGE_LDFLAGS = `pkg-config --libs glib-2.0`
+
+ HEADERS = dotdesktop.h
+
+@@ -36,13 +37,13 @@
+ ln -sf $^ $@
+
+ $(SONAME): $(OBJS)
+- $(CC) -nostartfiles -shared -o $@ $^ -Wl,-soname -Wl,$(SONAME) $(LDFLAGS)
++ $(CC) -nostartfiles -shared -o $@ $^ -Wl,-soname -Wl,$(SONAME) $(PACKAGE_LDFLAGS) $(LDFLAGS)
+
+ libdotdesktop.a: $(OBJS)
+ ar cq $@ $^
+
+-.c.s:;
+- $(CC) $(CFLAGS) -S $<
++.c.o:;
++ $(CC) $(PACKAGE_CFLAGS) $(MY_CFLAGS) $(CFLAGS) -c $< -o $@
+
+ upstream: clean
+ ( VERSION=`dpkg-parsechangelog | grep ^Version | cut -d\ -f2 | cut -d- -f1`; cd ..; cp -a libdotdesktop libdotdesktop-$$VERSION.orig; tar czf libdotdesktop_$$VERSION.orig.tar.gz --exclude=libdotdesktop-$$VERSION.orig/debian --exclude=libdotdekstop-$$VERSION.orig/CVS --exclude=libdotdesktop-$$VERSION.orig/familiar libdotdesktop-$$VERSION.orig ; rm -rf libdotdesktop-$$VERSION.orig )
+@@ -55,18 +56,9 @@
+ $(STRIP) $(DESTDIR)$(PREFIX)/lib/$(SONAME)
+
+ install-devel:
+- for i in $(HEADERS); do install -m 644 -D $$i $(DESTDIR)$(PREFIX)/include/gpe/$$i; done
++ install -m 644 -D dotdesktop.h $(DESTDIR)$(PREFIX)/include/gpe/dotdesktop.h
+ ln -s $(SONAME) $(DESTDIR)$(PREFIX)/lib/libdotdesktop.so
+
+-#ipkg: clean
+-# rm -rf familiar/dist
+-# mkdir -p familiar/dist/CONTROL
+-# cp familiar/$(CONTROL) familiar/dist/CONTROL/control
+-# cp familiar/postinst familiar/dist/CONTROL
+-# make DESTDIR=`pwd`/familiar/dist PREFIX=/usr DEBUG=no install
+-# chown -R root.root familiar/dist
+-# ipkg-build familiar/dist
+-
+ clean:
+ rm -f $(OBJS) $(SONAME) libdotdesktop.so $(DEPS)
+