Mercurial > mxe-octave
annotate src/libdnet.mk @ 2349:f48c5b085a38
Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 11:07:07 +0200 |
parents | f653602a0500 |
children | 99516e73b368 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
1699
diff
changeset
|
1 # This file is part of MXE. |
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)_CHECKSUM := e2ae8c7f0ca95655ae9f77fd4a0e2235dc4716bf |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1120
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
1499
9e587ca588dc
remove $($PKG)_SUBDIR) from FILE and URL defintions
Mark Brand <mabrand@mabrand.nl>
parents:
1466
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1120
diff
changeset
|
10 $(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
|
11 $(PKG)_DEPS := gcc winpcap |
137
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
1466
2726fbef533c
improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents:
1120
diff
changeset
|
14 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
|
15 $(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
|
16 head -1 |
137
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 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
|
20 $(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
|
21 $(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
|
22 $(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
|
23 $(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
|
24 $(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
|
25 $(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
|
26 $(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
|
27 $(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
|
28 $(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
|
29 $(SED) -i 's,-mno-cygwin,,' '$(1)/configure' |
137
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 cd '$(1)' && ./configure \ |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --host='$(TARGET)' \ |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --disable-shared \ |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 --prefix='$(PREFIX)/$(TARGET)' |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= |
588b47af175d
translated package: libdnet
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
35 endef |