source: freewrt/package/util-linux/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.0 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:= fdisk
10PKG_VERSION:= 2.12r
11PKG_RELEASE:= 1
12PKG_MD5SUM:= c261230b27fc0fbcc287c76884caf2d3
13
14PKG_SOURCE_URL:= ftp://ftp.kernel.org/pub/linux/utils/util-linux/ \
15 http://ftp.kernel.org/pub/linux/utils/util-linux/ \
16 ftp://ftp.de.kernel.org/pub/linux/utils/util-linux/ \
17 http://ftp.de.kernel.org/pub/linux/utils/util-linux/
18PKG_SOURCE:= util-linux-$(PKG_VERSION).tar.gz
19
20WRKSRC= ${WRKDIR}/util-linux-$(PKG_VERSION)
21
22include $(TOPDIR)/mk/package.mk
23
24$(eval $(call PKG_template,FDISK,fdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
25$(eval $(call PKG_template,LOSETUP,losetup,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26$(eval $(call PKG_template,SWAP_UTILS,swap-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
27
28$(WRKBUILD)/.configured:
29 (cd $(WRKBUILD); \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
33 ./configure \
34 );
35 touch $@
36
37$(WRKBUILD)/.built:
38 rm -rf $(WRKINST)
39 mkdir -p $(WRKINST)
40 $(MAKE) -C $(WRKBUILD) \
41 $(TARGET_CONFIGURE_OPTS) \
42 OPT="$(TARGET_CFLAGS)" \
43 DESTDIR="$(WRKINST)" \
44 INSTALLSUID="install -m 4755" \
45 all install
46 touch $@
47
48$(IPKG_FDISK):
49 install -d -m0755 $(IDIR_FDISK)/usr/sbin
50 $(CP) $(WRKINST)/sbin/fdisk $(IDIR_FDISK)/usr/sbin/
51 $(RSTRIP) $(IDIR_FDISK)
52 $(IPKG_BUILD) $(IDIR_FDISK) $(PACKAGE_DIR)
53
54$(IPKG_LOSETUP):
55 install -d -m0755 $(IDIR_LOSETUP)/usr/sbin
56 $(CP) $(WRKINST)/sbin/losetup $(IDIR_LOSETUP)/usr/sbin/
57 $(RSTRIP) $(IDIR_LOSETUP)
58 $(IPKG_BUILD) $(IDIR_LOSETUP) $(PACKAGE_DIR)
59
60$(IPKG_SWAP_UTILS):
61 install -d -m0755 $(IDIR_SWAP_UTILS)/usr/sbin
62 $(CP) $(WRKINST)/sbin/mkswap $(IDIR_SWAP_UTILS)/usr/sbin/
63 $(CP) $(WRKINST)/sbin/swap{on,off} $(IDIR_SWAP_UTILS)/usr/sbin/
64 $(RSTRIP) $(IDIR_SWAP_UTILS)
65 $(IPKG_BUILD) $(IDIR_SWAP_UTILS) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.