summaryrefslogtreecommitdiff
path: root/devel/dmake/Makefile
blob: cc2178ffc3fc7917619209d42927d449c229219e (plain)
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
# $NetBSD: Makefile,v 1.16 2014/01/08 21:47:55 wiz Exp $

DISTNAME=	dmake-4.12.2
CATEGORIES=	devel
MASTER_SITES=	http://dmake.apache-extras.org.codespot.com/files/
EXTRACT_SUFX=.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://code.google.com/a/apache-extras.org/p/dmake
COMMENT=	Portable make supported by many platforms
LICENSE=	gnu-gpl-v1

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--datarootdir=${PREFIX}/share/dmake

TEST_TARGET=		check
INSTALLATION_DIRS=	bin share/dmake ${PKGMANDIR}/man1

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
PLIST_SUBST+=	STARTUPOS=solaris
.else
PLIST_SUBST+=	STARTUPOS=linux
.endif

pre-test:
	${SH} -c 'for a in 1 2 3 4 5 6 7 8 9 10 11 12;\
	 do ${CHMOD} u+x ${WRKSRC}/tests/targets-$$a ;done'

pre-install:
	${INSTALL_MAN} ${WRKSRC}/man/dmake.tf \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/dmake.1

.include "../../mk/bsd.pkg.mk"