blob: 87c594a60d7522eaed9dacc2569ea22044a7732c (
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
45
46
47
48
49
50
51
|
# Created by George Reid <greid@ukug.uk.freebsd.org>
# $FreeBSD$
PORTNAME= fnccheck
PORTVERSION= 3.2.0
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}
DISTNAME= FunctionCheck-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Profiling library/utilities for C/C++ programs
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
USE_BINUTILS= yes
USE_AUTOTOOLS= libtoolize aclocal automake autoconf
LIBTOOLIZE_ARGS=--force
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --force-missing --add-missing --foreign
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
STRIP= # none
INFO= libfc
.include <bsd.port.options.mk>
# should be same as binutils
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
LDFLAGS+= -lintl
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
's|-ldl -lpthread|| ; \
s|-lbfd$$|-lbfd -liberty| ; \
s|-Wall -O3|-Wall|'
@${REINPLACE_CMD} -e \
'/^SUBDIRS/s|test||' ${WRKSRC}/Makefile.am
# XXX: work around an issue with automake-1.13 erroring out on a
# non-existent m4 directory before libtoolize creates it
pre-configure::
@${MKDIR} ${WRKSRC}/m4
.include <bsd.port.mk>
|