Makefile
googlelatitude.pro.user
-src/moc_*.cpp
-src/*.o
-src/GoogleLatitude*
+build/*
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.1
+Type=Application
+Name=Google Latitude Update
+Exec=/usr/bin/googlelatitude
+Icon=googlelatitude
+X-HildonDesk-ShowInToolbar=true
+X-Osso-Type=application/x-executable
+
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Google Latitude Updater
A Google Latitude Updater in QT4.
+ Features:
+ - Retrive location using:
+ + IP
+ + Cell Tower (gsm/wcdma)
+ + Gps
+ - Manual Update
+ - View Location of Friend
+ - View and Search on Google Maps
XB-Maemo-Display-Name: Google Latitude Updater
usr/bin
+usr/share/applications/hildon
APPNAME := googlelatitude
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-builddir:
- mkdir -p builddir
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # qmake
+ /opt/qt4-maemo5/bin/qmake-qt4
+ touch configure-stamp
-builddir/Makefile: builddir
- cd builddir && /opt/qt4-maemo5/bin/qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
-# cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro
build: build-stamp
-
-build-stamp: builddir/Makefile
+build-stamp: configure-stamp
dh_testdir
- cd builddir && $(MAKE)
+ $(MAKE)
touch $@
-clean:
+clean:
dh_testdir
dh_testroot
- rm -f build-stamp
- rm -rf builddir
- dh_clean
+ rm -f build-stamp configure-stamp
+ -$(MAKE) clean
+ dh_clean
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_clean -k
dh_installdirs
- cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
+ $(MAKE) DESTDIR=$(CURDIR)/debian/$(APPNAME) install
binary-indep: build install
-
binary-arch: build install
dh_testdir
dh_testroot
+ dh_installchangelogs
dh_installdocs
dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
+# dh_perl
+# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
-QMAKEVERSION = $$[QMAKE_VERSION]
-ISQT4 = $$find(QMAKEVERSION, ^[2-9])
-isEmpty( ISQT4 ) {
- error("Use the qmake include with Qt4.4 or greater, on Debian that is qmake-qt4");
-}
-
-TEMPLATE = subdirs
-SUBDIRS = src
+TARGET = googlelatitude
+HEADERS += src/latitude.h src/glatitude.h src/gps.h src/gpsfake.h
+SOURCES += src/main.cpp src/latitude.cpp src/glatitude.cpp src/gps.cpp
+FORMS +=
+
+OBJECTS_DIR = build
+MOC_DIR = build
+UI_DIR = build
+DESTDIR = build
+
+TEMPLATE = app
+QT += network webkit
+INCLUDEPATH +=
+LIBS +=
+DEFINES +=
+CONFIG += link_pkgconfig
+PKGCONFIG += glib-2.0 liblocation
+
+install_app.commands = $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)/usr/bin/$(QMAKE_TARGET)
+install_dsk.commands = $(INSTALL_FILE) data/$(QMAKE_TARGET).desktop $(DESTDIR)/usr/share/applications/hildon/$(QMAKE_TARGET).desktop
+install.depends = $(TARGET) install_app install_dsk
+QMAKE_EXTRA_TARGETS += install install_app install_dsk
+++ /dev/null
-[Desktop Entry]
-Encoding=UTF-8
-Version=0.1
-Type=Application
-Name=Google Latitude Update
-Exec=/usr/bin/GoogleLatitude
-Icon=googlelatitude
-X-HildonDesk-ShowInToolbar=true
-X-Osso-Type=application/x-executable
-
layout_location->addRow(tr("acc :"), location_acc);
// source button
- QPushButton *source_loc = new QPushButton(tr("Auto &loc"));
- QPushButton *source_cell = new QPushButton(tr("Auto &cell"));
- QPushButton *source_gps = new QPushButton(tr("Auto &gps"));
+ QPushButton *source_loc = new QPushButton(tr("Update with &IP"));
+ QPushButton *source_cell = new QPushButton(tr("Update with &Cell"));
+ QPushButton *source_gps = new QPushButton(tr("Update with &Gps"));
// source layout
QHBoxLayout *layout_source = new QHBoxLayout();
layout_source->addWidget(source_loc);
+++ /dev/null
-QT += network
-QT += webkit
-CONFIG += link_pkgconfig
-PKGCONFIG += glib-2.0 \
- liblocation
-TARGET = GoogleLatitude
-TEMPLATE = app
-SOURCES += main.cpp \
- latitude.cpp \
- glatitude.cpp \
- gps.cpp
-HEADERS += latitude.h \
- glatitude.h \
- gps.h
-HEADERS += gpsfake.h
-
-unix {
- isEmpty(PREFIX):PREFIX = /usr/local
- BINDIR = $$PREFIX/bin
- DATADIR = $$PREFIX/share
- DEFINES += DATADIR=\"$$DATADIR\" \
- PKGDATADIR=\"$$PKGDATADIR\"
- INSTALLS += target \
- desktop \
- iconxpm \
- icon26 \
- icon40 \
- icon64
- target.path = $$BINDIR
- desktop.path = $$DATADIR/applications/hildon
- desktop.files += $${TARGET}.desktop
- iconxpm.path = $$DATADIR/pixmap
- iconxpm.files += ../data/maemo/$${TARGET}.xpm
- icon26.path = $$DATADIR/icons/hicolor/26x26/apps
- icon26.files += ../data/26x26/$${TARGET}.png
- icon40.path = $$DATADIR/icons/hicolor/40x40/apps
- icon40.files += ../data/40x40/$${TARGET}.png
- icon64.path = $$DATADIR/icons/hicolor/64x64/apps
- icon64.files += ../data/64x64/$${TARGET}.png
-}