source: freewrt/package/nmap/Makefile@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was c57fbc9, checked in by Thorsten Glaser <tg@…>, 19 years ago

nuke DISABLE_NLS, DISABLE_LARGEFILE, replace globally
with --disable-nls and --enable-largefile, because it
doesn't make sense otherwise and/or breaks.

Requested by wbx@ in Message-ID: <20060618220406.GL6291@…>
Done using find and ed(1)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@152 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.3 KB
Line 
1# $Id: Makefile 3566 2006-04-01 15:21:14Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=nmap
6PKG_VERSION:=4.01
7PKG_RELEASE:=1
8PKG_MD5SUM:=09c259837b24f6c7385c2c1c49760a7c
9
10PKG_SOURCE_URL:=http://download.insecure.org/nmap/dist
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12PKG_CAT:=bzcat
13
14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17include $(TOPDIR)/package/rules.mk
18
19$(eval $(call PKG_template,NMAP,nmap,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
23 $(TARGET_CONFIGURE_OPTS) \
24 libpcapdir="$(STAGING_DIR)/usr/lib" \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 LIBS="-luClibc++ -lc -lm -lgcc" \
30 ac_cv_prog_CXX="$(TARGET_CXX)" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc \
49 --enable-largefile \
50 --disable-nls \
51 --without-openssl \
52 --without-nmapfe \
53 --with-libdnet="$(STAGING_DIR)/usr" \
54 --with-libpcap="$(STAGING_DIR)/usr" \
55 --with-libpcre="$(STAGING_DIR)/usr" \
56 );
57 touch $@
58
59$(PKG_BUILD_DIR)/.built:
60 mkdir -p $(PKG_INSTALL_DIR)
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 $(TARGET_CONFIGURE_OPTS) \
63 CCOPT="$(TARGET_CFLAGS) -fno-builtin -nostdinc++" \
64 DESTDIR="$(PKG_INSTALL_DIR)" \
65 all install
66 touch $@
67
68$(IPKG_NMAP):
69 install -d -m0755 $(IDIR_NMAP)/usr/share/nmap
70 for file in mac-prefixes os-fingerprints protocols rpc service-probes services; do \
71 $(CP) $(PKG_INSTALL_DIR)/usr/share/nmap/nmap-$$file $(IDIR_NMAP)/usr/share/nmap; \
72 done
73 install -d -m0755 $(IDIR_NMAP)/usr/bin
74 $(CP) $(PKG_INSTALL_DIR)/usr/bin/nmap $(IDIR_NMAP)/usr/bin/
75 $(RSTRIP) $(IDIR_NMAP)
76 $(IPKG_BUILD) $(IDIR_NMAP) $(PACKAGE_DIR)
77
78mostlyclean:
79 $(MAKE) -C $(PKG_BUILD_DIR) clean
80 rm $(PKG_BUILD_DIR)/.built
Note: See TracBrowser for help on using the repository browser.