Mercurial > mxe-octave
annotate src/winpcap.mk @ 2865:5ebec6b3a79c
Build shared library for zlib by converting static library.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 16 Nov 2012 14:43:56 -0500 |
parents | 4d0f3a9da57e |
children | 100e618349f7 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2321
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. |
414
d2a6561bcb6d
add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents:
306
diff
changeset
|
3 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
4 PKG := winpcap |
448
e9afec55fd6b
improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents:
417
diff
changeset
|
5 $(PKG)_IGNORE := |
1183
8604afbeb8ad
upgrade package winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
6 $(PKG)_CHECKSUM := 9155687ab23dbb2348e7cf93caf8a84f51e94795 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
7 $(PKG)_SUBDIR := winpcap |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
8 $(PKG)_FILE := WpcapSrc_$($(PKG)_VERSION).zip |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
9 $(PKG)_URL := http://www.winpcap.org/install/bin/$($(PKG)_FILE) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
285
diff
changeset
|
10 $(PKG)_DEPS := gcc |
136
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
5ce5e7791d61
translated package: winpcap
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://www.winpcap.org/devel.htm' | \ |
136
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 $(SED) -n 's,.*WpcapSrc_\([0-9][^>]*\)\.zip.*,\1,p' | \ |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 head -1 |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 endef |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 define $(PKG)_BUILD |
2321
8c8992918bd1
simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents:
1715
diff
changeset
|
19 # build |
540
8e6053c0b62a
bugfixes for libdnet/winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
537
diff
changeset
|
20 cd '$(1)' && $(TARGET)-gcc -ICommon -IpacketNtx/Dll -O -c '$(1)/packetNtx/Dll/Packet32.c' |
136
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 $(TARGET)-ar rc '$(1)/libpacket.a' '$(1)/Packet32.o' |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 $(TARGET)-ranlib '$(1)/libpacket.a' |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
23 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' |
540
8e6053c0b62a
bugfixes for libdnet/winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
537
diff
changeset
|
24 $(INSTALL) -m644 '$(1)/Common'/*.h '$(PREFIX)/$(TARGET)/include/' |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
25 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
26 $(INSTALL) -m644 '$(1)/libpacket.a' '$(PREFIX)/$(TARGET)/lib/' |
2321
8c8992918bd1
simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents:
1715
diff
changeset
|
27 |
8c8992918bd1
simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents:
1715
diff
changeset
|
28 mv '$(1)/wpcap/libpcap/Win32/Include/ip6_misc.h' '$(1)/file.tmp' |
8c8992918bd1
simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents:
1715
diff
changeset
|
29 mv '$(1)/file.tmp' '$(1)/wpcap/libpcap/Win32/Include/IP6_misc.h' |
8c8992918bd1
simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents:
1715
diff
changeset
|
30 |
136
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 CC='$(TARGET)-gcc' \ |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 AR='$(TARGET)-ar' \ |
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 RANLIB='$(TARGET)-ranlib' \ |
182
d1678aced603
disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents:
136
diff
changeset
|
34 $(MAKE) -C '$(1)/wpcap/PRJ' -j 1 libwpcap.a |
285
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
35 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
36 $(INSTALL) -m644 '$(1)/wpcap/libpcap/'*.h '$(1)/wpcap/Win32-Extensions/'*.h '$(PREFIX)/$(TARGET)/include/' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
37 $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' |
08a32251156c
portability fix for Open Solaris: when "ginstall" exists, use that instead of "install"
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
38 $(INSTALL) -m644 '$(1)/wpcap/PRJ/libwpcap.a' '$(PREFIX)/$(TARGET)/lib/' |
136
5ce5e7791d61
translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
39 endef |