source: freewrt/package/gpsd/Makefile@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 9f572e3, checked in by Dirk Nehring <dnehring@…>, 19 years ago

drop --enable-largefile from makefiles. 2GB should be enough in most cases

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@975 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.5 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= gpsd
10PKG_VERSION:= 2.30
11PKG_RELEASE:= 1
12PKG_MD5SUM:= dde177174878e8ae6db15f8010da46dd
13
14PKG_SOURCE_URL:= http://download.berlios.de/gpsd/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
16
17include $(TOPDIR)/mk/package.mk
18
19$(eval $(call PKG_template,GPSD,gpsd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 ( cd $(WRKBUILD); rm -rf config.{cache,status}; \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
26 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
27 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
28 LIBS="-luClibc++ -lc -lm -lnotimpl" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 --disable-nls \
48 --enable-shared \
49 --enable-static \
50 --with-gnu-ld \
51 --without-x \
52 );
53 touch $@
54
55$(WRKBUILD)/.built:
56 rm -rf $(WRKINST)
57 mkdir -p $(WRKINST)
58 $(MAKE) -C $(WRKBUILD) \
59 CXXLINK="\$$(LINK)" \
60 DESTDIR="$(WRKINST)" \
61 all install
62 touch $@
63
64$(IPKG_GPSD):
65 install -d -m0755 $(IDIR_GPSD)/usr/lib
66 $(CP) $(WRKINST)/usr/lib/libgps.so.* $(IDIR_GPSD)/usr/lib/
67 install -d -m0755 $(IDIR_GPSD)/usr/sbin
68 $(CP) $(WRKINST)/usr/sbin/gpsd $(IDIR_GPSD)/usr/sbin/
69 $(RSTRIP) $(IDIR_GPSD)
70 $(IPKG_BUILD) $(IDIR_GPSD) $(PACKAGE_DIR)
71
72$(STAGING_DIR)/usr/lib/libgps.so: $(WRKBUILD)/.built
73 mkdir -p $(STAGING_DIR)/usr/include
74 $(CP) $(WRKINST)/usr/include/gps{,d}.h $(STAGING_DIR)/usr/include/
75 $(CP) $(WRKINST)/usr/include/libgpsmm.h $(STAGING_DIR)/usr/include/
76 mkdir -p $(STAGING_DIR)/usr/lib
77 $(CP) $(WRKINST)/usr/lib/libgps.{a,so*} $(STAGING_DIR)/usr/lib/
78 touch $@
79
80install-dev: $(STAGING_DIR)/usr/lib/libgps.so
81
82uninstall-dev:
83 rm -rf \
84 $(STAGING_DIR)/usr/include/gps{,d}.h \
85 $(STAGING_DIR)/usr/include/libgpsmm.h \
86 $(STAGING_DIR)/usr/lib/libgps.{a,so*} \
87
88compile-targets: install-dev
89clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.