1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/math/spar/Makefile
Norikatsu Shigemura 09568cca96 Conditionalize libgnugetopt dependencies.
PR:		ports/47746
Submitted by:	Ports Fury
2003-02-02 14:27:19 +00:00

34 lines
681 B
Makefile

# ex:ts=8
# New ports collection makefile for: spar
# Date created: Jun 1, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= spar
PORTVERSION= 0.5.10
CATEGORIES= math devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
USE_REINPLACE= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_SHLIB= yes
MAN1= spar.1
.if !exists(/usr/include/getopt.h)
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
.endif
post-patch:
@${REINPLACE_CMD} -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in
.include <bsd.port.mk>