2000-06-02 07:35:49 +02:00
|
|
|
# New ports collection makefile for: findutils
|
|
|
|
# Date created: 29 March 2000
|
|
|
|
# Whom: Robert Withrow <witr@rwwa.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= findutils
|
|
|
|
PORTVERSION= 4.1
|
2004-02-04 06:10:27 +01:00
|
|
|
PORTREVISION= 2
|
2000-06-02 07:35:49 +02:00
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= findutils
|
|
|
|
|
2002-01-18 00:13:38 +01:00
|
|
|
MAINTAINER= cyrille.lefevre@laposte.net
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= The GNU find utilities
|
2000-06-02 07:35:49 +02:00
|
|
|
|
2001-01-29 19:47:00 +01:00
|
|
|
# Global variables
|
|
|
|
#
|
|
|
|
|
2002-06-24 06:44:17 +02:00
|
|
|
USE_REINPLACE= yes
|
2001-09-13 01:25:19 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-06-24 06:44:17 +02:00
|
|
|
USE_GMAKE= yes
|
2001-01-29 19:47:00 +01:00
|
|
|
CONFIGURE_ARGS= --program-prefix=g # --localstatedir=${LOCALSTATEDIR}
|
2000-06-02 07:35:49 +02:00
|
|
|
MAKE_ARGS= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
|
|
|
|
|
|
MAN1= gfind.1 gxargs.1 glocate.1 gupdatedb.1
|
|
|
|
MAN5= glocatedb.5
|
|
|
|
|
2001-01-29 19:47:00 +01:00
|
|
|
# Local variables
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCALSTATEDIR?= /var/db
|
|
|
|
|
|
|
|
INSTALL_INFO?= install-info
|
|
|
|
|
|
|
|
# Post-extract
|
|
|
|
#
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${RM} -f ${WRKSRC}/doc/${PORTNAME:S/utils//}.info*
|
|
|
|
|
|
|
|
# Post-patch
|
|
|
|
#
|
|
|
|
|
|
|
|
post-patch:
|
2002-06-24 06:44:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|makeinfo|makeinfo --no-split|g' \
|
2001-01-29 19:47:00 +01:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
|
|
|
|
# Post-configure
|
|
|
|
#
|
|
|
|
|
|
|
|
# --localstatedir= isn't handled right now, so, do it manually.
|
|
|
|
post-configure:
|
2002-06-24 06:44:17 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|\$$\(prefix\)/var|${LOCALSTATEDIR}|g' \
|
2001-01-29 19:47:00 +01:00
|
|
|
${WRKSRC}/Makefile ${WRKSRC}/locate/Makefile
|
|
|
|
|
|
|
|
# Post-install
|
|
|
|
#
|
|
|
|
|
|
|
|
post-install: install-info remove-catman
|
|
|
|
|
|
|
|
install-info:
|
|
|
|
@${INSTALL_INFO} ${PREFIX}/info/${PORTNAME:S/utils//}.info ${PREFIX}/info/dir
|
|
|
|
|
|
|
|
remove-catman:
|
|
|
|
.for mansect in 1 5
|
|
|
|
.for man in ${MAN${mansect}}
|
|
|
|
@${RM} -f ${MAN1PREFIX}/man/cat${mansect}/${man}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
2000-06-02 07:35:49 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|