annotate src/nsis.mk @ 389:a1b6f6a2015b

portability for systems without /usr/local on package nsis
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 11 Jun 2009 10:54:42 +0200
parents 518dc5012994
children d2a6561bcb6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
322
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # NSIS
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 PKG := nsis
377
61e5dba7175b update version of packages atk, curl, gcc, gdal, glib, gnutls, gtk, libevent, libidn, libntlm, libpng, nsis, pango, pdflib_lite, pixman, sqlite, tre and xmlwrapp
Volker Grabsch <vog@notjusthosting.com>
parents: 376
diff changeset
4 $(PKG)_VERSION := 2.45
61e5dba7175b update version of packages atk, curl, gcc, gdal, glib, gnutls, gtk, libevent, libidn, libntlm, libpng, nsis, pango, pdflib_lite, pixman, sqlite, tre and xmlwrapp
Volker Grabsch <vog@notjusthosting.com>
parents: 376
diff changeset
5 $(PKG)_CHECKSUM := ce02adf68dbedc798615ffb212d27a9b03d5defb
322
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_SUBDIR := nsis-$($(PKG)_VERSION)-src
324
beb10af0e886 improved coding style: use a consistent order of variables
Volker Grabsch <vog@notjusthosting.com>
parents: 322
diff changeset
7 $(PKG)_FILE := nsis-$($(PKG)_VERSION)-src.tar.bz2
322
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_WEBSITE := http://nsis.sourceforge.net/
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/nsis/$($(PKG)_FILE)
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcc
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 wget -q -O- 'http://nsis.sourceforge.net/Download' | \
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'nsis-' | \
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*nsis-\([0-9][^>]*\)-src\.tar.*,\1,p' | \
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
334
23cac175a7c6 portability fix for MacOS X in package nsis: Don't use the "SetIcon(wxICON(...))" call
Volker Grabsch <vog@notjusthosting.com>
parents: 324
diff changeset
20 $(SED) 's,this->SetIcon(wxICON(nsisicon));,,' -i '$(1)/Contrib/NSIS Menu/nsismenu/nsismenu.cpp'
376
95b292facf30 add search paths to libiconv on FreeBSD for package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 334
diff changeset
21 cd '$(1)' && scons \
379
518dc5012994 bugfix in the build options for package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 377
diff changeset
22 PREFIX='$(PREFIX)' \
389
a1b6f6a2015b portability for systems without /usr/local on package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 379
diff changeset
23 `[ -d /usr/local/include ] && echo APPEND_CPPPATH=/usr/local/include` \
a1b6f6a2015b portability for systems without /usr/local on package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 379
diff changeset
24 `[ -d /usr/local/lib ] && echo APPEND_LIBPATH=/usr/local/lib` \
379
518dc5012994 bugfix in the build options for package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 377
diff changeset
25 SKIPUTILS='NSIS Menu' \
376
95b292facf30 add search paths to libiconv on FreeBSD for package nsis
Volker Grabsch <vog@notjusthosting.com>
parents: 334
diff changeset
26 install
322
3e5e759d95e3 new package: nsis
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 endef