annotate src/winpcap.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
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: 2321
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: 306
diff changeset
3
136
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # WinPcap
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
5 PKG := winpcap
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
1183
8604afbeb8ad upgrade package winpcap
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
7 $(PKG)_CHECKSUM := 9155687ab23dbb2348e7cf93caf8a84f51e94795
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
8 $(PKG)_SUBDIR := winpcap
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
9 $(PKG)_FILE := WpcapSrc_$($(PKG)_VERSION).zip
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 285
diff changeset
10 $(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
11 $(PKG)_DEPS := gcc
136
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 wget -q -O- 'http://www.winpcap.org/devel.htm' | \
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*WpcapSrc_\([0-9][^>]*\)\.zip.*,\1,p' | \
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
2321
8c8992918bd1 simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents: 1715
diff changeset
20 # build
540
8e6053c0b62a bugfixes for libdnet/winpcap
Volker Grabsch <vog@notjusthosting.com>
parents: 537
diff changeset
21 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
22 $(TARGET)-ar rc '$(1)/libpacket.a' '$(1)/Packet32.o'
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(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
24 $(INSTALL) -d '$(PREFIX)/$(TARGET)/include'
540
8e6053c0b62a bugfixes for libdnet/winpcap
Volker Grabsch <vog@notjusthosting.com>
parents: 537
diff changeset
25 $(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
26 $(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
27 $(INSTALL) -m644 '$(1)/libpacket.a' '$(PREFIX)/$(TARGET)/lib/'
2321
8c8992918bd1 simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents: 1715
diff changeset
28
8c8992918bd1 simplication of winpcap build rules
Luis Saavedra <luis94855510@gmail.com>
parents: 1715
diff changeset
29 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
30 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
31
136
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 CC='$(TARGET)-gcc' \
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 AR='$(TARGET)-ar' \
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 RANLIB='$(TARGET)-ranlib' \
182
d1678aced603 disable parallel builds for packages pthreads, winpcap and gdal
Volker Grabsch <vog@notjusthosting.com>
parents: 136
diff changeset
35 $(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
36 $(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
37 $(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
38 $(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
39 $(INSTALL) -m644 '$(1)/wpcap/PRJ/libwpcap.a' '$(PREFIX)/$(TARGET)/lib/'
136
5ce5e7791d61 translated package: winpcap
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 endef