source: freewrt/package/linux-atm/Makefile@ 6fc4520e

freewrt_1_0 freewrt_2_0
Last change on this file since 6fc4520e was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 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:= linux-atm
10PKG_VERSION:= 2.4.1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= 84fef49cc39ff2605204246666f65864
13
14PKG_SOURCE_URL:= http://ftp.debian.org/debian/pool/main/l/linux-atm/
15PKG_SOURCE:= $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16
17
18include $(TOPDIR)/mk/package.mk
19
20$(eval $(call PKG_template,LINUX_ATM,linux-atm,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21$(eval $(call PKG_template,BR2684CTL,br2684ctl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
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 )
48 touch $@
49
50$(WRKBUILD)/.built:
51 rm -rf $(WRKINST)
52 mkdir -p $(WRKINST)
53 $(MAKE) -C $(WRKBUILD) \
54 DESTDIR="$(WRKINST)" \
55 all install
56 touch $@
57
58$(IPKG_LINUX_ATM):
59 install -d -m0755 $(IDIR_LINUX_ATM)/usr/lib
60 cp -f $(WRKINST)/usr/lib/libatm.so.1 $(IDIR_LINUX_ATM)/usr/lib
61 $(RSTRIP) $(IDIR_LINUX_ATM)/
62 $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
63
64$(IPKG_BR2684CTL):
65 install -d -m0755 $(IDIR_BR2684CTL)/usr/sbin
66 $(CP) $(WRKINST)/usr/sbin/br2684ctl $(IDIR_BR2684CTL)/usr/sbin/
67 install -d -m0755 $(IDIR_BR2684CTL)/etc/hotplug.d/net
68 install -m0644 ./files/br2684.init $(IDIR_BR2684CTL)/etc/hotplug.d/net/30-br2684
69 $(RSTRIP) $(IDIR_BR2684CTL)/
70 $(IPKG_BUILD) $(IDIR_BR2684CTL) $(PACKAGE_DIR)
71
72$(STAGING_DIR)/usr/lib/libatm.so: $(WRKBUILD)/.built
73 mkdir -p $(STAGING_DIR)/usr/include
74 $(CP) $(WRKINST)/usr/include/atm{,d,sap}.h $(STAGING_DIR)/usr/include/
75 mkdir -p $(STAGING_DIR)/usr/lib
76 $(CP) $(WRKINST)/usr/lib/libatm.{a,so*} $(STAGING_DIR)/usr/lib/
77 touch $@
78
79install-dev: $(STAGING_DIR)/usr/lib/libatm.so
80
81uninstall-dev:
82 rm -rf \
83 $(STAGING_DIR)/usr/include/atm{,d,sap}.h \
84 $(STAGING_DIR)/usr/lib/libatm.{a,so*} \
85
86compile-targets: install-dev
87clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.