View | Details | Raw Unified | Return to bug 51376
Collapse All | Expand All

(-)math/spar/Makefile (-7 / +1 lines)
Lines 15-32 Link Here
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A modular math parser
16
COMMENT=	A modular math parser
17
17
18
USE_GETOPT_LONG=	yes
18
USE_REINPLACE=	yes
19
USE_REINPLACE=	yes
19
USE_LIBTOOL=	yes
20
USE_LIBTOOL=	yes
20
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
21
INSTALLS_SHLIB=	yes
21
INSTALLS_SHLIB=	yes
22
22
23
MAN1=	spar.1
23
MAN1=	spar.1
24
25
.if !exists(/usr/include/getopt.h)
26
LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
27
CPPFLAGS+=	-I${LOCALBASE}/include
28
LDFLAGS+=	-L${LOCALBASE}/lib -lgnugetopt
29
.endif
30
24
31
post-patch:
25
post-patch:
32
	@${REINPLACE_CMD} -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in
26
	@${REINPLACE_CMD} -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in

Return to bug 51376