summaryrefslogtreecommitdiff
path: root/sysutils/gaffitter/Makefile
blob: c99b026e4424d946d85966e2cd45ed58aa9ca091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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

USE_BZIP2=	yes
USES=		gmake	# parallel builds (-jX) are broken with BSD make(1)

MAN1=		${PORTNAME}.1
PLIST_FILES=	bin/${PORTNAME}

# Change "cd foo; $(MAKE)" into "$(MAKE) -C foo" to unbreak parallel builds
NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -E 's|cd (.+); (\$$\(MAKE\))|\2 -C \1|' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
	${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1

.include <bsd.port.mk>