annotate src/libodbc++.mk @ 2997:4f9b72cf7ee7

allow native builds too
author John W. Eaton <jwe@octave.org>
date Tue, 28 May 2013 17:31:59 -0400
parents 6e44b2527dbb
children 100e618349f7
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: 714
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.
518
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := libodbc++
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 8a77921b21c23926042c413f4a7a187a3656025b
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := libodbc++-$($(PKG)_VERSION)
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_FILE := libodbc++-$($(PKG)_VERSION).tar.bz2
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/libodbcxx/libodbc++/$($(PKG)_VERSION)/$($(PKG)_FILE)
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
7f6a2f90a32c new package: libodbc++ (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://libodbcxx.svn.sourceforge.net/viewvc/libodbcxx/tags/?sortby=date' | \
518
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep '<a name="' | \
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*<a name="libodbc++-\([0-9][^"]*\)".*,\1,p' | \
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
2926
6e44b2527dbb shared libraries for libodbc++
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
20 cd '$(1)' && autoreconf --install
518
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2926
diff changeset
22 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
518
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --prefix='$(PREFIX)/$(TARGET)' \
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --host='$(TARGET)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
25 $(ENABLE_SHARED_OR_STATIC) \
518
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --without-tests \
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --disable-dependency-tracking
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)' install doxygen= progref_dist_files=
7f6a2f90a32c new package: libodbc++ (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef