blob: 7cb441567e7b7d41a079c52800ebfbd3aa7852ec (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.14 2010/11/01 00:08:10 wiz Exp $
#
DISTNAME= nsis-${NSIS_VER}
PKGREVISION= 5
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=nsis/}
EXTRACT_SUFX= .zip .tar.bz2
DISTFILES= ${DISTNAME}.zip \
${NSIS_SRC}.tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://nsis.sourceforge.net/Main_Page
COMMENT= Scriptable system to build Windows installers
DEPENDS+= scons>=0.96.91:../../devel/scons
USE_TOOLS+= pax
PKG_DESTDIR_SUPPORT= user-destdir
NSIS_SRC= ${DISTNAME:=-src}
NSIS_VER= 2.12
WRKSRC= ${WRKDIR}/${NSIS_SRC}
NO_CONFIGURE= yes
EXTRACT_OPTS_ZIP= -qo
EVAL_PREFIX+= SCONS_PREFIX=scons
SCONS_BIN= ${SCONS_PREFIX}/bin/scons
MAKENSIS_BIN= ${PREFIX}/share/nsis/makensis
INSTALLATION_DIRS= bin share/nsis
SUBST_CLASSES+= makensis
SUBST_STAGE.makensis= post-patch
SUBST_FILES.makensis= makensis.sh
SUBST_SED.makensis= -e s,@@SH@@,${SH:Q},
SUBST_SED.makensis+= -e s,@@MAKENSIS@@,${MAKENSIS_BIN:Q},
post-extract:
${CP} ${FILESDIR:Q}/makensis.sh ${WRKSRC:Q}
chmod -R go-w ${WRKDIR}/*
do-build:
cd ${WRKSRC:Q} && \
${SCONS_BIN:Q} SKIPSTUBS=all SKIPPLUGINS=all \
SKIPUTILS=all SKIPMISC=all VERSION=${NSIS_VER:Q}
do-install:
${INSTALL_PROGRAM} ${WRKSRC:Q}/build/release/makensis/makensis \
${DESTDIR}${MAKENSIS_BIN:Q}
${INSTALL_SCRIPT} ${WRKSRC:Q}/makensis.sh \
${DESTDIR}${PREFIX:Q}/bin/makensis
cd ${WRKDIR:Q}/${DISTNAME:Q} && pax -rw . \
${DESTDIR}${PREFIX:Q}/share/nsis
.include "../../mk/bsd.pkg.mk"
|