4 # Uncomment this to turn on verbose mode.
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
12 DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
14 CFLAGS = -Wall -g -mcpu=cortex-a8
15 LDFLAGS = -Wl,--as-needed
16 CFLAGS += `pkg-config --cflags dbus-1`
17 LDFLAGS += `pkg-config --libs dbus-1`
19 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
25 ifeq ($(DEB_HOST_ARCH_OS),linux)
26 LINUX_CONF_ARGS_STD=--enable-wlan
27 LINUX_CONF_ARGS_ALL=--enable-wlan --enable-ibm
30 ifeq ($(DEB_HOST_ARCH_CPU),i386)
31 ENABLE_NVIDIA=--enable-nvidia
34 ifeq ($(DEB_HOST_ARCH_CPU),amd64)
35 ENABLE_NVIDIA=--enable-nvidia
38 COMMON_CONFIGURE_FLAGS = --host=$(DEB_HOST_GNU_TYPE) \
39 --build=$(DEB_BUILD_GNU_TYPE) \
40 --prefix=/usr --sysconfdir=/etc \
41 --mandir=\$${prefix}/share/man \
42 --infodir=\$${prefix}/share/info \
45 configure: config-stamp
49 #DML# chmod +x ./autogen.sh
50 AUTOMAKE=automake ./autogen.sh
53 # ln -sf /usr/share/misc/config.sub .
54 # ln -sf /usr/share/misc/config.guess .
58 cd build-all && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
59 ../configure $(COMMON_CONFIGURE_FLAGS) \
60 --enable-rss --enable-weather-xoap LUA51_LIBS='-llua5.1 -lm' \
61 --enable-eve --enable-lua=yes --enable-lua-cairo --enable-lua-imlib2 \
62 --disable-static --enable-argb --enable-x11 --enable-imlib2 \
63 $(LINUX_CONF_ARGS_ALL) $(ENABLE_NVIDIA)
69 build-stamp: config-stamp
72 cd build-all && $(MAKE)
80 rm -f build-stamp config-stamp
82 rm -f configure.ac configure config.h.in src/config.h.in \
83 src/defconfig.h compile install-sh missing ltmain.sh depcomp \
84 Makefile.in doc/Makefile.in src/Makefile.in src/dbus/Makefile.in \
85 data/Makefile.in lua/Makefile.in \
86 aclocal.m4 m4/libtool.m4 m4/ltversion.m4 \
87 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4
89 rm -rf build-std build-cli build-all
90 rm -f config.guess config.sub
99 cd build-all && $(MAKE) install DESTDIR=$(CURDIR)/debian/conky-n950
100 mkdir -p debian/conky-n950/usr/share/icons/hicolor/scalable/apps/
101 cp -p debian/conkylogo64.png debian/conky-n950/usr/share/icons/hicolor/scalable/apps/conky.png
102 mkdir -p debian/conky-n950/usr/share/icons/hicolor/48x48/apps/
103 cp -p debian/conkylogo48.png debian/conky-n950/usr/share/icons/hicolor/48x48/apps/conky.png
104 mkdir -p debian/conky-n950/usr/share/applications/
105 cp -p debian/conky.desktop debian/conky-n950/usr/share/applications/conky.desktop
106 mkdir -p debian/conky-n950/usr/bin/
107 cp -p debian/conky.sh debian/conky-n950/usr/bin/
109 # Clean up cruft left upstream
110 rm -rf debian/conky-std/usr/lib debian/conky-cli/usr/lib \
111 debian/conky-n950/usr/lib/conky/*.la \
112 debian/conky-n950/usr/lib/conky/*.so.?
114 binary-indep: build install
116 binary-arch: build install
119 dh_installchangelogs ChangeLog
122 dh_installman -a doc/conky.1
134 binary: binary-arch binary-indep
136 .PHONY: configure build clean install binary binary-indep binary-arch