summaryrefslogtreecommitdiff
path: root/filesystems/progsreiserfs/Makefile
blob: 77c84c817a490abe5383797d21d9c88dfc1ab7d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
PORTNAME=	progsreiserfs
DISTVERSION=	0.3.1-rc8
PORTREVISION=	8
CATEGORIES=	filesystems sysutils
MASTER_SITES=	http://www.cgsecurity.org/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Utilities and library to manipulate ReiserFS partitions
WWW=		https://reiserfs.osdn.org.ua

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		libtool
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
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/*

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>