ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

e2fsprogs.mk (873B)


      1 TARG = e2fsprogs
      2 
      3 <$mkbuild/mk.common-noinst
      4 
      5 e2fsprogs:QV:
      6 	CC="$CC -static" CFLAGS="-D__uint64_t=u_int64_t" ./configure \
      7 		--build="${TOOLCHAIN_TRIPLET}" \
      8 		--host="${HOST_TOOLCHAIN_TRIPLET}" \
      9 		--prefix="$PREFIX" \
     10 		--disable-nls \
     11 		--bindir="$BINDIR" \
     12 		--sbindir="$BINDIR" \
     13 		--libdir="$LIBDIR" \
     14 		--libexecdir="$BINDIR" \
     15 		--mandir="$PREFIX/share/man"
     16 	make -j$nprocs
     17 	# copy files for use as a dependency.
     18 	rm -rf libdev
     19 	mkdir -p libdev
     20 	cp -a lib libdev/
     21 	rm -f libdev/lib/config.h*
     22 
     23 install:QV:
     24 	make -j$nprocs install DESTDIR="$ROOT"
     25 	cd "$ROOT""$BINDIR"
     26 	rm -f mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev
     27 	rm -f fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev
     28 	ln -s mke2fs mkfs.ext2
     29 	ln -s mke2fs mkfs.ext3
     30 	ln -s mke2fs mkfs.ext4
     31 	ln -s mke2fs mkfs.ext4dev
     32 	ln -s e2fsck fsck.ext2
     33 	ln -s e2fsck fsck.ext3
     34 	ln -s e2fsck fsck.ext4
     35 	ln -s e2fsck fsck.ext4dev