landry 604009e0aa Reinstall com_err.h, but this time under include/ext2fs/ since some ext2fs
headers include it. Adjust those headers accordingly.
Fixes sysutils/testdisk detection of ext2fs..
ok sthen@
2013-08-12 15:04:59 +00:00

60 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2013/08/12 15:04:59 landry Exp $
COMMENT= utilities to manipulate ext2 filesystems
DISTNAME= e2fsprogs-1.42.7
REVISION = 0
CATEGORIES= sysutils devel
SHARED_LIBS= blkid 0.0 \
e2p 3.1 \
ext2fs 3.1 \
ss 3.1 \
uuid 14.0
HOMEPAGE= http://e2fsprogs.sourceforge.net/
# GPLv2/LGPLv2/BSD/MIT
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
MODULES= devel/gettext
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
CONFIGURE_ARGS+= --enable-elf-shlibs --disable-tls
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -D_EXT2_USE_C_VERSIONS_"
USE_GMAKE= Yes
MAKE_FLAGS= V=1 \
LIBblkid_VERSION=${LIBblkid_VERSION} \
LIBe2p_VERSION=${LIBe2p_VERSION} \
LIBext2fs_VERSION=${LIBext2fs_VERSION} \
LIBss_VERSION=${LIBss_VERSION} \
LIBuuid_VERSION=${LIBuuid_VERSION}
FAKE_FLAGS= root_sysconfdir=${PREFIX}/share/examples/e2fsprogs
INSTALL_TARGET= install install-libs
post-install:
cd ${PREFIX}/sbin && mv fsck fsck_ext2fs
cd ${PREFIX}/man/man8 && mv fsck.8 fsck_ext2fs.8
cd ${PREFIX}/include/ext2fs/ && ln -f ../com_err.h
cd ${PREFIX}; rm -f lib/libcom_err.* lib/pkgconfig/com_err.pc \
include/com_err.h include/et/com_err.h bin/compile_et \
man/man1/compile_et.1 man/man3/com_err.3
rmdir ${PREFIX}/include/et
cd ${PREFIX} && perl -pi -e 's#et/com_err.h#ext2fs/com_err.h#' \
include/ss/ss_err.h include/ext2fs/ext2_err.h \
include/ext2fs/ext2fs.h share/et/et_h.awk
pre-test:
printf '#!/bin/sh\nexec /bin/md5 $$*\n' > ${WRKDIR}/bin/md5sum
chmod +x ${WRKDIR}/bin/md5sum
.include <bsd.port.mk>