1HOST=arm-linux 2SRC_PATH=$(shell pwd) 3HOST_COMPILE=$(HOST)- 4TOOL_CHAIN_PATH=$(TOOLCHAIN) 5 6PKG_CONFIG_PATH=$(SRC_PATH)/build/usr/lib/pkgconfig 7export PKG_CONFIG_PATH 8PKG_CONFIG_LIBDIR=$(SRC_PATH)/build/usr/lib/pkgconfig 9export PKG_CONFIG_LIBDIR 10PKG_INSTall_DIR =$(SRC_PATH)/build 11DESTDIR = $(PKG_INSTall_DIR) 12export DESTDIR 13LDFLAGS += -L$(SRC_PATH)/build/usr/lib 14CFLAGS += -I$(SRC_PATH)/build/usr/include 15CPPFLAGS += -I$(SRC_PATH)/build/usr/include 16 17export LDFLAGS 18export CFLAGS 19export CPPFLAGS 20PATH := $(PKG_INSTALL_DIR)/usr/lib:$(PATH) 21export PATH 22 23all: 24# cd zlib-1.2.7;\ 25 make && make install 26# ./configure --prefix=/usr;\ 27 make && make install 28# cd confuse-2.7; \ 29 make && make install 30# ./configure --host=$(HOST) --prefix=/usr;\ 31 make && make install 32# cd libiconv-1.10; \ 33 make && make install 34# ./configure --host=$(HOST) --prefix=/usr;\ 35 make && make install 36# cd tre-0.8.0;\ 37 make && make install 38# ./configure --host=$(HOST) --prefix=/usr;\ 39 make && make install 40# cd libgpg-error-1.10; \ 41 make && make install 42# ./configure --host=$(HOST) --prefix=/usr;\ 43 make && make install 44# cd gperf-3.0.4; \ 45 make && make install 46# ./configure --host=$(HOST) --prefix=/usr;\ 47 make && make install 48# cd sqlite-3.6.22; \ 49 make CFLAGS="-DSQLITE_ENABLE_UNLOCK_NOTIFY";\ 50 --includedir=$(DESTDIR) --libdir=$(DESTDImake install 51# ./configure --host=$(HOST) CFLAGS=-Os --enable-threadsafe --prefix=/usr;\ 52 make CFLAGS="-DSQLITE_ENABLE_UNLOCK_NOTIFY";\ 53 make install 54# tab, libgcrypt/configure modified ,hardcode /src/Makefile , make error 55# cd libgcrypt-1.5.0; \ 56 make && make install 57# ./configure --host=$(HOST) with_gpg_error_prefix=$(SRC_PATH)/build/usr --prefix=/usr;\ 58 make && make install 59#tab, mxml Makefile moddified 60# cd mxml-2.7; \ 61 make && make install-libmxml.so.1.5 62# ./configure --host=$(HOST) --prefix=/usr ;\ 63# make 64# cd libevent-1.4.14b-stable;\ 65 make && make install 66# ./configure --host=$(HOST) --prefix=/usr;\ 67 make;\ 68 make install 69# cd avl-0.3.5;\ 70 make && make install 71# cd libunistring-0.9.3; \ 72 make && make install 73# ./configure --host=$(HOST) --prefix=/usr --with-libiconv-prefix=$(SRC_PATH)/build/usr ;\ 74 make && make install 75# cd alsa-lib-1.0.26; \ 76 make && make install 77# ./configure --host=$(HOST) --prefix=/usr \ 78 --disable-rawmidi \ 79 --disable-alisp \ 80 --disable-old-symbols \ 81 --disable-python \ 82 --disable-ucm ;\ 83 make && make install 84# cd libav-0.5.9 ;\ 85 ./configure --enable-shared --enable-cross-compile --arch=arm --cross-prefix=arm-brcm-linux-uclibcgnueabi- --prefix=/usr --enable-pthreads \ 86 --disable-debug \ 87 --disable-indevs \ 88 --diswsable-outdevs \ 89 --enable-swscale \ 90 --extra-cflags=-fPIC;\ 91 make && make install 92# cd libdaemon-0.14;\ 93 ./configure --host=$(HOST) --prefix=/usr;\ 94 make && make install 95 # ./configure --host=$(HOST) --prefix=/usr 96# cd expat-2.0.1;\ 97 make && make install 98# ./configure --host=$(HOST) --prefix=/usr;\ 99 make && make install 100# cd gdbm-1.8.3;\ 101 make && make install 102# ./configure --host=$(HOST) --prefix=/usr;\ 103 make && make install 104# cd dbus-1.6.8;\ 105 make && make install 106# ./configure --host=$(HOST) --prefix=/usr;\ 107 make && make install 108# cd avahi-0.6.25;\ 109 make && make install 110# ./configure --host=$(HOST) --prefix=/usr \ 111 --disable-nls --enable-shared --enable-static --disable-glib --disable-gobject --disable-qt3 --disable-qt4 --disable-gtk --with-xml=expat --disable-dbm --enable-gdbm --enable-libdaemon --disable-python --disable-pygtk --disable-python-dbus --disable-mono --disable-monodoc --disable-doxygen-doc --disable-doxygen-dot --disable-doxygen-man --disable-doxygen-rtf --disable-doxygen-xml --disable-doxygen-chm --disable-doxygen-chi --disable-doxygen-html --disable-doxygen-ps --disable-doxygen-pdf --disable-xmltoman --with-distro=none --with-avahi-user=root --with-avahi-group=root --with-autoipd-user=root --with-autoipd-group=root --disable-stack-protector ;\ 112 make && make install 113 cd forked-daapd-0.19;\ 114 make && make install 115# ./configure --host=$(HOST) \ 116 --prefix=/usr \ 117 AVAHI_CFLAGS=$(SRC_PATH)/build/usr/include \ 118 AVAHI_LIBS=$(SRC_PATH)/build/usr/lib \ 119 LIBAV_CFLAGS=$(SRC_PATH)/build/usr/include \ 120 LIBAV_LIBS=$(SRC_PATH)/build/usr/lib \ 121 SQLITE3_CFLAGS=$(SRC_PATH)/build/usr/include \ 122 SQLITE3_LIBS=$(SRC_PATH)/build/usr/lib \ 123 MINIXML_CFLAGS=$(SRC_PATH)/build/usr/include \ 124 MINIXML_LIBS=$(SRC_P/ATH)/build/usr/lib \ 125 --with-libgcrypt-prefix=$(SRC_PATH)/build/usr \ 126 --with-gpg-error-prefix=$(SRC_PATH)/build/usr ;\ 127 make && make install 128 touch .conf 129make_iserver: 130#ifeq ($(PROFILE),WNDR3400) 131 cp config_WNDR3400.h source/include/config.h 132#endif 133 cd source ; make 134 135clean: 136 137 138cleansmb: 139 140 141distclean: 142 rm -rf .conf 143 cd source ; make distclean 144 145install: 146# install -m 755 $(SRC_PATH)/build/lib/lib* $(TARGETDIR)/lib/ 147# install -m 755 $(SRC_PATH)/build/sbin/forked-daapd $(TARGETDIR)/sbin/ 148 149 150 151 152