freebsd-ports/sysutils/e2fsprogs/Makefile
Marcus Alves Grando 47f9d8fd46 * audio/marlin, devel/upnp, devel/upnp104
Update dependency to misc/e2fsprogs-libuuid
Bump PORTREVISION

* misc/e2fsprogs-libuuid

Add new port:

UUID library from the e2fsprogs package

* misc/Makefile

Add entry to misc/e2fsprogs-libuuid

* misc/ossp-uuid

Add CONFLICTS to misc/e2fsprogs-libuuid

* sysutils/e2fsprogs

Change to a master port
Remove conflict with misc/ossp-uuid
Remove uuid part
Bump PORTREVISION

PR:		92356
Submitted by:	Matthias Andree <matthias.andree@gmx.de>
2006-01-27 01:24:41 +00:00

87 lines
2.5 KiB
Makefile

# New ports collection makefile for: e2fsprogs
# Date created: 3 July 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= e2fsprogs
PORTVERSION= 1.38
PORTREVISION?= 2
CATEGORIES?= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER?= matthias.andree@gmx.de
COMMENT?= Utilities and library to manipulate ext2/ext3 filesystems
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
.endif
PATCH_STRIP= -p1
GNU_CONFIGURE= yes
CONFIGURE_ARGS?= --disable-fsck --disable-e2initrd-helper "--with-ldopts=-L${LOCALBASE}/lib"
CONFIGURE_ENV+= CPPFLAGS='-I${WRKSRC}/lib -I${LOCALBASE}/include'
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB= NLS="@comment "
.else
MAKE_ARGS+= STATIC_LIBS="../lib/libext2fs.a ../lib/libcom_err.a ../lib/libblkid.a ../lib/libuuid.a ${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a"
PLIST_SUB= NLS=""
.endif
INSTALLS_SHLIB= yes
.if !defined(MASTERDIR)
SUB_FILES= pkg-message
MAN1= chattr.1 lsattr.1
MAN8= badblocks.8 debugfs.8 dumpe2fs.8 e2fsck.8 e2image.8 e2label.8 \
mke2fs.8 mklost+found.8 resize2fs.8 tune2fs.8 \
fsck.ext2.8 fsck.ext3.8 mkfs.ext2.8 mkfs.ext3.8 \
findfs.8 blkid.8 logsave.8
pre-everything::
@${ECHO_CMD} "-------------------------------------------------------------"
.if defined(WITHOUT_NLS)
@${ECHO_CMD} "National language support disabled, -DWITHOUT_NLS in effect. "
.else
@${ECHO_CMD} "Use -DWITHOUT_NLS to build without national language support."
.endif
@${ECHO_CMD} "-------------------------------------------------------------"
post-extract:
${CHMOD} u+w ${WRKSRC}/po/*.po ${WRKSRC}/po/*.pot \
${WRKSRC}/${CONFIGURE_SCRIPT}
.endif
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -E -e 's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \
${WRKSRC}/lib/*/Makefile.in
@: # disable uuidgen
${REINPLACE_CMD} \
-e 's/^\(UPROGS.*\) uuidgen\(.*\)/\1\2/' \
-e 's/^\(UMANPAGES.*\) uuidgen.1\(.*\)/\1\2/' \
${WRKSRC}/misc/Makefile.in
.if ${MASTERDIR} == ${.CURDIR}
post-build:
.if !defined(WITHOUT_NLS)
cd ${WRKSRC}/po && ${MAKE} update-gmo
.endif
${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -s -static ${LIBS} -o ${WRKSRC}/fsck_ext2fs ${FILESDIR}/fsck_ext2fs.c
cd ${WRKSRC}/tests && ${MAKE} check
post-install:
${RM} ${PREFIX}/sbin/filefrag
${RM} ${PREFIX}/man/man8/filefrag.8
${RM} ${PREFIX}/info/libext2fs.info.gz
${INSTALL_PROGRAM} ${WRKSRC}/fsck_ext2fs ${PREFIX}/sbin/
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.endif
.include <bsd.port.post.mk>