Files
ports/misc/findutils/Makefile
T
Christian Weisgerber 61e5dec359 Work around the assumption that openat() implies the existence of
fdopendir().  FreeBSD 8 has the former, but not the latter.

PR:		122433
Approved by:	trasz
2008-04-12 15:32:00 +00:00

48 lines
1.1 KiB
Makefile

# New ports collection makefile for: findutils
# Date created: 29 March 2000
# Whom: Robert Withrow <witr@rwwa.com>
#
# $FreeBSD$
#
PORTNAME= findutils
PORTVERSION= 4.4.0
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= findutils
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= trasz@FreeBSD.org
COMMENT= The GNU find utilities
SIG_FILES= ${DISTNAME}${EXTRACT_SUFX}.sig
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
# GNU assumes that openat() implies the existence of fdopendir(),
# which does not hold true on FreeBSD 8.
CONFIGURE_ENV+= ac_cv_func_openat=no
USE_GMAKE= yes
USE_GCC= 3.4+
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
CONFIGURE_ARGS+= --program-prefix=g --localstatedir=${LOCALSTATEDIR}
MAKE_ARGS= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
INFO= find find-maint
MAN1= gfind.1 gxargs.1 glocate.1 gupdatedb.1
MAN5= glocatedb.5
LOCALSTATEDIR?= /var/db
.include <bsd.port.mk>