annotate src/vmime.mk @ 2573:ebe77bc7e002

package vmime: take upstream fixes
author Mark Brand <mabrand@mabrand.nl>
date Sun, 10 Jun 2012 11:26:50 +0200
parents 4d0f3a9da57e
children d37122aa7a10
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1668
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := vmime
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
1379
5daa178344e4 upgrade package vmime to 0.9.1
Mark Brand <mabrand@mabrand.nl>
parents: 1354
diff changeset
6 $(PKG)_CHECKSUM := 3e8dd8855e423db438d465777efeb523c4abb5f3
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1392
diff changeset
7 $(PKG)_SUBDIR := lib$(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1466
diff changeset
8 $(PKG)_FILE := lib$(PKG)-$($(PKG)_VERSION).tar.bz2
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1392
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
998
1b1c09973721 upgrade package vmime to 0.9.1-svn-r551
Mark Brand <mabrand@mabrand.nl>
parents: 995
diff changeset
10 $(PKG)_DEPS := gcc libiconv gnutls libgsasl pthreads zlib
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://sourceforge.net/projects/vmime/files/vmime/' | \
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1392
diff changeset
14 $(SED) -n 's,.*libvmime-\([0-9][^>]*\)\.tar.*,\1,p' | \
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 tail -1
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
2573
ebe77bc7e002 package vmime: take upstream fixes
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
19 $(SED) -i 's/pkg-config/$(TARGET)-pkg-config/g;' '$(1)/SConstruct'
ebe77bc7e002 package vmime: take upstream fixes
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
20
724
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
21 # The configure script will make the real configuration, but
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
22 # we need scons to generate configure.in, Makefile.am etc.
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
23 cd '$(1)' && scons autotools \
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
24 prefix='$(PREFIX)/$(TARGET)' \
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
25 target='$(TARGET)' \
20bb3a6a9c81 use prefixed pkg-config in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 723
diff changeset
26 sendmail_path=/sbin/sendmail
723
1d0d78bf2dd2 upgrade package vmime to 0.9.1-svn-r529
Mark Brand <mabrand@mabrand.nl>
parents: 719
diff changeset
27
683
9a35ed88357b use the autotools for package vmime
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
28 cd '$(1)' && ./bootstrap
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 cd '$(1)' && ./configure \
728
786f0c619b86 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 727
diff changeset
30 --prefix='$(PREFIX)/$(TARGET)' \
786f0c619b86 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 727
diff changeset
31 --host='$(TARGET)' \
2573
ebe77bc7e002 package vmime: take upstream fixes
Mark Brand <mabrand@mabrand.nl>
parents: 2525
diff changeset
32 --build="`config.guess`" \
728
786f0c619b86 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 727
diff changeset
33 --disable-shared \
786f0c619b86 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 727
diff changeset
34 --enable-platform-windows \
786f0c619b86 improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 727
diff changeset
35 --disable-rpath \
995
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 933
diff changeset
36 --disable-dependency-tracking
719
bfc3a4937bcb restored fix for the libvmime.a filename in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 714
diff changeset
37
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 # Disable VMIME_HAVE_MLANG_H
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 # We have the header, but there is no implementation for IMultiLanguage in MinGW
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 745
diff changeset
40 $(SED) -i 's,^#define VMIME_HAVE_MLANG_H 1$$,,' '$(1)/vmime/config.hpp'
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 $(MAKE) -C '$(1)' -j '$(JOBS)'
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 $(MAKE) -C '$(1)' install
995
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 933
diff changeset
44
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 933
diff changeset
45 $(SED) -i 's/posix/windows/g;' '$(1)/examples/example6.cpp'
1392
d9e9cd58ca3a bugfix in package vmime: use $(TARGET) instead of i686-pc-mingw32
Volker Grabsch <vog@notjusthosting.com>
parents: 1379
diff changeset
46 $(TARGET)-g++ -s -o '$(1)/examples/test-vmime.exe' \
995
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 933
diff changeset
47 '$(1)/examples/example6.cpp' \
1668
4ee38be1b1cd package vmime: fix and use .pc file
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
48 `'$(TARGET)-pkg-config' vmime --cflags --libs`
995
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents: 933
diff changeset
49 $(INSTALL) -m755 '$(1)/examples/test-vmime.exe' '$(PREFIX)/$(TARGET)/bin/'
474
624e75610f23 new package: vmime (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 endef