aboutsummaryrefslogtreecommitdiffstats
path: root/devel/make/Makefile
blob: e98006dfe960aea0ca36ec44c19829cf5116ddda (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
32
33
34
35
36
37
38
39
# New ports collection makefile for:    make
# Date Created:             2006-11-23
# Whom:                 Shaun Amott <shaun@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   make
PORTVERSION=    20050524
CATEGORIES= devel sysutils
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= shaun
DISTNAME=   pmake-${PORTVERSION}

MAINTAINER= shaun@FreeBSD.org
COMMENT=    Berkeley make, back-ported to FreeBSD 4.x

WRKSRC=     ${WRKDIR}/make

MAN1=       make.1

PLIST_FILES=    bin/make

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
IGNORE=     is already installed in the base system on FreeBSD 5.x and above
.endif

post-extract:
    @${REINPLACE_CMD} -e 's/^\(SRCS=    *\)/\1freebsd.o /' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's/<stdint\.h>/"freebsd.h"/' ${WRKSRC}/*.[ch]
    @${CP} ${FILESDIR}/freebsd.* ${WRKSRC}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/make ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1

.include <bsd.port.post.mk>