1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/devel/flux/Makefile
Will Andrews 04dfaa68e3 Additional regexes to tweak the behavior of this port. It will now work
correctly even in the presence of newer auto*.
2002-01-07 05:17:18 +00:00

51 lines
1.4 KiB
Makefile

# New ports collection makefile for: flux
# Date created: 18 Dec 1999
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= flux
PORTVERSION= 0.4.1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.copyleft.no/projects/fluxlib/ \
ftp://ftp.styx.net/projects/flux/
MAINTAINER= ports@FreeBSD.org
USE_GMAKE= yes
USE_AUTOMAKE_VER=14
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
REGEX= "s@EXTRA_DIST \+@EXTRA_DIST @g"
pre-configure:
.for M in examples include src util
@${PERL} -pi -e ${REGEX} ${WRKSRC}/${M}/Makefile.am
.endfor
.for M in build cgi cipher comm fifobuf fstring log mem misc mt nvtp ph proc \
random smtp sock tn url xml
@${PERL} -pi -e ${REGEX} ${WRKSRC}/src/${M}/Makefile.am
.endfor
.for M in framework/application framework/application/src test
@${PERL} -pi -e ${REGEX} ${WRKSRC}/util/${M}/Makefile.am
.endfor
.for M in smtp
@${PERL} -pi -e ${REGEX} ${WRKSRC}/examples/${M}/Makefile.am
.endfor
${PERL} -pi -e "s@autoheader,@${AUTOHEADER},@g" ${WRKSRC}/aclocal.m4
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/flux
${TAR} -C ${WRKSRC}/doc --exclude ChangeLog -cf - . | \
${TAR} -C ${PREFIX}/share/doc/flux --unlink -xf -
@find ${PREFIX}/share/doc/flux | xargs ${CHOWN} ${SHAREOWN}:${SHAREGRP}
@find ${PREFIX}/share/doc/flux -type f | xargs ${CHMOD} ${SHAREMODE}
.for DOC in AUTHORS NEWS README TODO
${INSTALL_DATA} ${WRKSRC}/${DOC} ${PREFIX}/share/doc/flux
.endfor
.endif
.include <bsd.port.mk>