annotate src/libdnet.mk @ 1699:cf321e17114e

package libdnet: workaround for gcc 4.6
author Mark Brand <mabrand@mabrand.nl>
date Sat, 26 Mar 2011 01:15:49 +0100
parents 9e587ca588dc
children f653602a0500
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 540
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
3
137
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # libdnet
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := libdnet
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
6 $(PKG)_IGNORE :=
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_VERSION := 1.11
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_CHECKSUM := e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
9 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
1499
9e587ca588dc remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents: 1466
diff changeset
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://libdnet.sourceforge.net/
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_DEPS := gcc winpcap
137
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
16 wget -q -O- 'http://sourceforge.net/projects/libdnet/files/libdnet/' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
17 $(SED) -n 's,.*/libdnet-\([0-9][^"]*\)/".*,\1,p' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
18 head -1
137
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
22 $(SED) -i 's,CYGWIN=no,CYGWIN=yes,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
23 $(SED) -i 's,cat /proc/sys/kernel/ostype,,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
24 $(SED) -i 's,test -d /usr/include/mingw,true,' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
25 $(SED) -i 's,Iphlpapi,iphlpapi,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
26 $(SED) -i 's,packet32\.h,Packet32.h,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
27 $(SED) -i 's,packet\.lib,libpacket.a,' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
28 $(SED) -i 's,-lpacket,-lpacket -lws2_32,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
29 $(SED) -i 's,/usr/include,$(PREFIX)/$(TARGET)/include,g' '$(1)/configure'
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
30 $(SED) -i 's,#include <Ntddndis.h>,#include <ddk/ntddndis.h>,' '$(1)/src/eth-win32.c'
1699
cf321e17114e package libdnet: workaround for gcc 4.6
Mark Brand <mabrand@mabrand.nl>
parents: 1499
diff changeset
31 $(SED) -i 's,-mno-cygwin,,' '$(1)/configure'
137
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 cd '$(1)' && ./configure \
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --host='$(TARGET)' \
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-shared \
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --prefix='$(PREFIX)/$(TARGET)'
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
588b47af175d translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 endef