freebsd-ports/sysutils/gaffitter/Makefile
Antoine Brodin 1f7833c2b1 Unbreak
2014-07-30 06:24:15 +00:00

29 lines
868 B
Makefile

# Created by: Charlie Kester <corky1951@comcast.net>
# $FreeBSD$
PORTNAME= gaffitter
PORTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Binary packing utility that uses a genetic algorithm
LICENSE= GPLv3 # or later
USES= gmake tar:bzip2 # parallel builds (-jX) are broken with BSD make(1)
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
# Change "cd foo; $(MAKE)" into "$(MAKE) -C foo" to unbreak parallel builds
post-patch:
@${REINPLACE_CMD} -E 's|cd (.+); (\$$\(MAKE\))|\2 -C \1|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|g++|${CXX}|g' ${WRKSRC}/src/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>