freebsd-ports/sysutils/progsreiserfs/Makefile
2014-07-05 15:46:30 +00:00

40 lines
980 B
Makefile

# Created by: Florent Thoumie <flz@xbsd.org>
# $FreeBSD$
PORTNAME= progsreiserfs
PORTVERSION= 0.3.1.r8
PORTREVISION= 6
CATEGORIES= sysutils
MASTER_SITES= http://www.cgsecurity.org/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Utilities and library to manipulate ReiserFS partitions
USES= libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug --disable-Werror
CFLAGS+= -Dgetopt_long_only=getopt_long
EXTRA_PATCHES= ${FILESDIR}/extrapatch-progsreiserfs::libmisc::Makefile.in
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=--disable-nls
.endif
post-patch:
@${REINPLACE_CMD} '/_LDADD =/s/=/= $$(INTLLIBS)/' \
${WRKSRC}/demos/Makefile.in
@${REINPLACE_CMD} -e 's|sys/int_types.h|inttypes.h|' \
${WRKSRC}/libreiserfs/tools.c ${WRKSRC}/include/reiserfs/*
.include <bsd.port.mk>