mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
11b8d2d4c1
- Add LICENSE [1] - Remove leading article from COMMENT - Convert USE_GMAKE to USES=gmake - Respect CFLAGS by setting OPTIMIZER variable to space otherwise it is set to '-g -O2' - Consolidate targets to just post-patch and post-configure - this makes things simpler - Mute REINPLACE_CMD and FIND commands - Add support for staging PR: ports/180542 [1] Submitted by: Pedro Giffuni <giffunip@tutopia.com>
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# Created by: Craig Rodrigues <rodrigc@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xfsprogs
|
|
PORTVERSION= 2.9.8
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://oss.sgi.com/projects/xfs/cmd_tars/ \
|
|
ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
EXTRACT_SUFX= -1.tar.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Set of utilities and library to manipulate an XFS filesystem
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= gettext gmake
|
|
USE_AUTOTOOLS= autoconf libtool:env
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV+= INSTALL="${INSTALL} ${_BINOWNGRP}" \
|
|
LIBTOOL=${LIBTOOL} OPTIMIZER=" "
|
|
MAKE_ENV+= INSTALL="${INSTALL} ${_BINOWNGRP}"
|
|
CONFIGURE_ARGS+= --disable-shared --enable-readline
|
|
ALL_TARGET=
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/utmp/d' \
|
|
${WRKSRC}/quota/report.c ${WRKSRC}/quota/util.c
|
|
@${FIND} ${WRKDIR} -name "*.m4" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|/usr/local|'${LOCALBASE}'|g'
|
|
@${RM} -f ${WRKSRC}/configure
|
|
|
|
post-configure:
|
|
@${FIND} ${WRKSRC}/include -name "builddefs" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|LIBRT =|LIBRT = -lrt|g'
|
|
@${REINPLACE_CMD} 's|$$(PKG_DOC_DIR)|$$(DESTDIR)&|g' ${WRKSRC}/Makefile
|
|
.for dir in db doc fsck growfs io logprint mdrestore mkfs quota repair rtcp
|
|
@${REINPLACE_CMD} -E 's,PKG_(BIN|DOC|INC|SBIN)_DIR,DESTDIR)$$(&,g' \
|
|
${WRKSRC}/${dir}/Makefile
|
|
.endfor
|
|
.for i in 3 5 8
|
|
@${REINPLACE_CMD} 's|$$(PKG_MAN_DIR)|$$(DESTDIR)&|g' \
|
|
${WRKSRC}/man/man${i}/Makefile
|
|
.endfor
|
|
@${REINPLACE_CMD} 's|$$(PKG_LOCALE_DIR)|$$(DESTDIR)&|' \
|
|
${WRKSRC}/include/buildmacros
|
|
|
|
.include <bsd.port.mk>
|