comparison src/vmime.mk @ 728:786f0c619b86

improved coding style
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 14 Feb 2010 13:27:11 +0100
parents ffb2ba1e62be
children 8ea29766f021
comparison
equal deleted inserted replaced
727:ffb2ba1e62be 728:786f0c619b86
21 define $(PKG)_BUILD 21 define $(PKG)_BUILD
22 # The configure script will make the real configuration, but 22 # The configure script will make the real configuration, but
23 # we need scons to generate configure.in, Makefile.am etc. 23 # we need scons to generate configure.in, Makefile.am etc.
24 # ansi and pedantic are too strict for mingw. 24 # ansi and pedantic are too strict for mingw.
25 # http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435 25 # http://sourceforge.net/tracker/index.php?func=detail&aid=2373234&group_id=2435&atid=102435
26 $(SED) "s/'-ansi', //;" -i '$(1)/SConstruct' 26 $(SED) "s/'-ansi', //;" -i '$(1)/SConstruct'
27 $(SED) "s/'-pedantic', //;" -i '$(1)/SConstruct' 27 $(SED) "s/'-pedantic', //;" -i '$(1)/SConstruct'
28 $(SED) 's/pkg-config/$(TARGET)-pkg-config/g;' -i '$(1)/SConstruct' 28 $(SED) 's/pkg-config/$(TARGET)-pkg-config/g;' -i '$(1)/SConstruct'
29 $(SED) 's/^sh libtool/sh libtool --tag=CXX/g;' -i '$(1)/SConstruct' 29 $(SED) 's/^sh libtool/sh libtool --tag=CXX/g;' -i '$(1)/SConstruct'
30 30
31 cd '$(1)' && scons autotools \ 31 cd '$(1)' && scons autotools \
32 prefix='$(PREFIX)/$(TARGET)' \ 32 prefix='$(PREFIX)/$(TARGET)' \
33 target='$(TARGET)' \ 33 target='$(TARGET)' \
34 sendmail_path=/sbin/sendmail 34 sendmail_path=/sbin/sendmail
35 35
36 $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,' -i '$(1)'/bootstrap 36 $(SED) 's,libtoolize ,$(LIBTOOLIZE) ,' -i '$(1)'/bootstrap
37 cd '$(1)' && ./bootstrap 37 cd '$(1)' && ./bootstrap
38 cd '$(1)' && ./configure \ 38 cd '$(1)' && ./configure \
39 --prefix='$(PREFIX)/$(TARGET)' \ 39 --prefix='$(PREFIX)/$(TARGET)' \
40 --host='$(TARGET)' \ 40 --host='$(TARGET)' \
41 --disable-shared \ 41 --disable-shared \
42 --enable-platform-windows \ 42 --enable-platform-windows \
43 --disable-rpath \ 43 --disable-rpath \
44 --disable-dependency-tracking \ 44 --disable-dependency-tracking \
45 CC='$(TARGET)-gcc' \ 45 CC='$(TARGET)-gcc' \
46 CXX='$(TARGET)-g++' \ 46 CXX='$(TARGET)-g++' \
47 CPP='$(TARGET)-gcc -E' \ 47 CPP='$(TARGET)-gcc -E' \
48 CXXPP='$(TARGET)-g++ -E' \ 48 CXXPP='$(TARGET)-g++ -E' \
49 PKG_CONFIG='$(TARGET)-pkg-config' 49 PKG_CONFIG='$(TARGET)-pkg-config'
50 50
51 # Disable VMIME_HAVE_MLANG_H 51 # Disable VMIME_HAVE_MLANG_H
52 # We have the header, but there is no implementation for IMultiLanguage in MinGW 52 # We have the header, but there is no implementation for IMultiLanguage in MinGW
53 $(SED) 's,^#define VMIME_HAVE_MLANG_H 1$$,,' -i '$(1)/vmime/config.hpp' 53 $(SED) 's,^#define VMIME_HAVE_MLANG_H 1$$,,' -i '$(1)/vmime/config.hpp'
54 54