~cypheon/pkgsrc-wip

pkgsrc-wip/jsl/Makefile -rw-r--r-- 934 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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.3 2013/04/04 13:33:19 hfath Exp $
#

DISTNAME=	jsl-0.3.0-src
PKGNAME=	${DISTNAME:S/-src//}
CATEGORIES=	devel
MASTER_SITES=	http://www.javascriptlint.com/download/

MAINTAINER=	hauke@NetBSD.org
HOMEPAGE=	http://www.javascriptlint.com/
COMMENT=	Standalone JavaScript lint
LICENSE=	mpl-1.1

INSTALLATION_DIRS=	bin ${DOCDIR} ${EGDIR}

DOCDIR=		share/doc/html/jsl
EGDIR=		share/examples/jsl
EGCONFIGFILE=	jsl.config.sample

USE_TOOLS+=	gmake
MAKE_FILE=	${WRKSRC}/Makefile.ref
WRKSRC=		${WRKDIR}/jsl-0.3.0/src

pre-configure:
	cp ${PKGDIR}/files/NetBSD_All.mk ${WRKSRC}/config/

pre-install:
	(cd ${WRKSRC} && pkgsrc.objdir/jsl -help:conf > ${EGCONFIGFILE})

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pkgsrc.objdir/jsl ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README.html ${DESTDIR}${PREFIX}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/${EGCONFIGFILE} ${DESTDIR}${PREFIX}/${EGDIR}

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