openbsd-ports/sysutils/e2fsprogs/Makefile
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

60 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2009/03/15 19:59:31 landry Exp $
# $FreeBSD: ports/sysutils/e2fsprogs/Makefile,v 1.8 2003/02/20 19:00:47 knu Exp $
COMMENT-main= utilities to manipulate ext2 filesystems
COMMENT-uuid= unique id generator library
V= 1.41.4
DISTNAME= e2fsprogs-${V}
PKGNAME-main= ${DISTNAME}
PKGNAME-uuid= e2fs-uuid-${V}
CATEGORIES-uuid= devel
CATEGORIES= sysutils
SHARED_LIBS= blkid 0.0 \
e2p 3.0 \
ext2fs 3.0 \
ext2fs_com_err 3.0 \
ss 3.0 \
uuid 2.0
HOMEPAGE= http://e2fsprogs.sourceforge.net/
MULTI_PACKAGES= -main -uuid
# GPLv2/LGPLv2/BSD/MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c iconv intl
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
MODULES= devel/gettext
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-elf-shlibs --disable-tls
USE_GMAKE= Yes
MAKE_FLAGS= LIBblkid_VERSION=${LIBblkid_VERSION} \
LIBe2p_VERSION=${LIBe2p_VERSION} \
LIBext2fs_VERSION=${LIBext2fs_VERSION} \
LIBext2fs_com_err_VERSION=${LIBext2fs_com_err_VERSION} \
LIBss_VERSION=${LIBss_VERSION} \
LIBuuid_VERSION=${LIBuuid_VERSION}
LIB_DEPENDS-main= lib/uuid/uuid::${BUILD_PKGPATH},-uuid
INSTALL_TARGET= install install-libs
post-install:
cd ${PREFIX}/sbin && mv fsck fsck_ext2fs
cd ${PREFIX}/man/man8 && mv fsck.8 fsck_ext2fs.8
${INSTALL_DATA_DIR} ${PREFIX}/lib/uuid
mv ${PREFIX}/lib/libuuid.* ${PREFIX}/lib/uuid
mv ${PREFIX}/lib/pkgconfig/uuid.pc ${PREFIX}/lib/pkgconfig/e2fs-uuid.pc
if [ -f ${PREFIX}/lib/uuid/libuuid.so.${LIBuuid_VERSION} ]; then \
ln -s uuid/libuuid.so.${LIBuuid_VERSION} ${PREFIX}/lib; \
fi
.include <bsd.port.mk>