openbsd-ports/sysutils/e2fsprogs/patches/patch-lib_e2p_Makefile_in
landry e1da3db508 Update to e2fsprogs-1.41.4 (supporting ext2/ext3/ext4 fs) :
- Remove MAINTAINERS as they agree not having time nor interest for it.
- Use install-libs target instead of manually installing some cherrypicked
headers - now all needed headers are installed in the right place.
- Install fsck and its manpage as fsck_ext2fs instead of the confusing pfsck.
- Install uuid.pc as e2fs-uuid.pc to avoid conflicts with devel/uuid.
- Patch most Makefiles to print full build commands instead of the
non-informative linux-kernel-like output.
- Patch some regress tests, more and more works fine now.

With feedback and tweaks from naddy@ and pea@
2009-03-15 19:59:31 +00:00

73 lines
2.6 KiB
Plaintext

$OpenBSD: patch-lib_e2p_Makefile_in,v 1.2 2009/03/15 19:59:31 landry Exp $
--- lib/e2p/Makefile.in.orig Tue Oct 7 16:22:39 2008
+++ lib/e2p/Makefile.in Sun Feb 22 11:42:42 2009
@@ -34,8 +34,8 @@ HFILES= e2p.h
LIBRARY= libe2p
LIBDIR= e2p
-ELF_VERSION = 2.3
-ELF_SO_VERSION = 2
+ELF_VERSION = $(LIBe2p_VERSION)
+ELF_SO_VERSION = $(LIBe2p_VERSION)
ELF_IMAGE = libe2p
ELF_MYDIR = e2p
ELF_INSTALL_DIR = $(root_libdir)
@@ -53,25 +53,21 @@ BSDLIB_INSTALL_DIR = $(root_libdir)
@MAKEFILE_CHECKER@
.c.o:
- @echo " CC $<"
- @$(CC) $(ALL_CFLAGS) -c $< -o $@
+ $(CC) $(ALL_CFLAGS) -c $< -o $@
@PROFILE_CMT@ @$(CC) $(ALL_CFLAGS) -g -pg -o profiled/$*.o -c $<
@CHECKER_CMT@ @$(CC) $(ALL_CFLAGS) -checker -g -o checker/$*.o -c $<
@ELF_CMT@ @$(CC) $(ALL_CFLAGS) -fPIC -o elfshared/$*.o -c $<
@BSDLIB_CMT@ @$(CC) $(ALL_CFLAGS) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status
- @echo " CONFIG.STATUS $@"
- @cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status
+ cd $(top_builddir); CONFIG_FILES=lib/e2p/e2p.pc ./config.status
tst_ostype: $(srcdir)/ostype.c
- @echo " LD $@"
- @$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
+ $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
$(srcdir)/ostype.c $(ALL_CFLAGS)
tst_feature: $(srcdir)/feature.c
- @echo " LD $@"
- @$(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \
+ $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \
$(srcdir)/feature.c $(ALL_CFLAGS)
check:: tst_ostype tst_feature
@@ -79,21 +75,17 @@ check:: tst_ostype tst_feature
./tst_feature
installdirs::
- @echo " MKINSTALLDIRS $(libdir) $(includedir)/e2p"
- @$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
+ $(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
$(DESTDIR)$(includedir)/e2p $(DESTDIR)$(libdir)/pkgconfig
install:: all installdirs
- @echo " INSTALL_DATA $(libdir)/libe2p.a"
- @$(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a
- @-$(RANLIB) $(DESTDIR)$(libdir)/libe2p.a
- @$(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a
- @set -e; for i in $(HFILES); do \
- echo " INSTALL_DATA $(includedir)/e2p/$$i"; \
+ $(INSTALL_DATA) libe2p.a $(DESTDIR)$(libdir)/libe2p.a
+ $(RANLIB) $(DESTDIR)$(libdir)/libe2p.a
+ $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/libe2p.a
+ set -e; for i in $(HFILES); do \
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/e2p/$$i; \
done
- @echo " INSTALL_DATA $(libdir)/pkgconfig/e2p.pc"
- @$(INSTALL_DATA) e2p.pc $(DESTDIR)$(libdir)/pkgconfig/e2p.pc
+ $(INSTALL_DATA) e2p.pc $(DESTDIR)$(libdir)/pkgconfig/e2p.pc
uninstall::
$(RM) -f $(DESTDIR)$(libdir)/libe2p.a \