Update to 2.17. Should even work on PowerPC

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18282 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Landon Fuller
2006-06-07 00:39:59 +00:00
parent d3a03f11f9
commit 839a0cf3b1
3 changed files with 43 additions and 24 deletions
+27 -17
View File
@@ -1,9 +1,8 @@
# $Id: Portfile,v 1.5 2005/03/04 06:44:33 landonf Exp $
# $Id: Portfile,v 1.6 2006/06/07 00:39:58 landonf Exp $
PortSystem 1.0
name nsis
version 2.05
revision 3
version 2.17
categories devel win32
platforms darwin
maintainers landonf@opendarwin.org
@@ -16,23 +15,34 @@ long_description NSIS (Nullsoft Scriptable Install System) is a tool \
master_sites sourceforge
checksums md5 756d03e255066da1bd8317712028807e
distname nsis[string map {. ""} $version]
extract.suffix .tar.bz2
distfiles nsis-${version}-src.tar.bz2 \
nsis-${version}.zip
checksums nsis-${version}-src.tar.bz2 md5 a3c068fc1cb613160d7202e1719d63bc \
nsis-${version}.zip sha1 636f197524e44ba0319f79aac5b00ad7cda07c2c
worksrcdir nsis-${version}-src
use_bzip2 yes
worksrcdir NSIS
patchfiles patch-Makefile patch-install.sh \
patch-script.cpp patch-util.h patch-Plugins.cpp \
patch-ResourceEditor.cpp
depends_build port:scons port:i386-mingw32-gcc
extract.only nsis-${version}-src.tar.bz2
post-extract {
system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
}
configure {}
build.dir ${worksrcpath}/Source
build.args USE_PRECOMPILED_EXEHEADS=1
set scons.args "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
destroot.cmd ./install.sh
destroot.dir ${worksrcpath}
destroot.destdir ""
destroot.target ""
destroot.args ${prefix}/ ${destroot}/
build {
system "cd ${worksrcpath} && scons ${scons.args}"
}
destroot {
system "cd ${worksrcpath} && scons ${scons.args} install"
foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
file delete -force ${destpath}/${prefix}/share/nsis/${dir}
file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}/${prefix}/share/nsis
}
system "chmod -R go-w '${destpath}/${prefix}/share/nsis'"
}
+11 -2
View File
@@ -1,5 +1,5 @@
--- Source/Makefile.old Thu Mar 3 13:02:23 2005
+++ Source/Makefile Thu Mar 3 13:02:40 2005
--- Source/Makefile.orig 2006-06-06 14:02:03.000000000 -0700
+++ Source/Makefile 2006-06-06 14:02:43.000000000 -0700
@@ -9,7 +9,7 @@
SRCS = zlib/deflate.c zlib/trees.c bzip2/blocksort.c bzip2/bzlib.c bzip2/compress.c bzip2/huffman.c 7zip/7zGuids.cpp 7zip/Common/CRC.cpp 7zip/7zip/Compress/LZ/LZInWindow.cpp 7zip/7zip/Compress/LZMA/LZMAEncoder.cpp 7zip/7zip/Common/OutBuffer.cpp 7zip/7zip/Compress/RangeCoder/RangeCoderBit.cpp 7zip/Common/Alloc.cpp build.cpp crc32.c DialogTemplate.cpp exedata.cpp lang.cpp makenssi.cpp Plugins.cpp ResourceEditor.cpp ResourceVersionInfo.cpp script.cpp tokens.cpp util.cpp strlist.cpp growbuf.cpp mmap.cpp clzma.cpp lineparse.cpp ShConstants.cpp dirreader.cpp
OBJS = $(addprefix $(BUILDDIR)/,$(addsuffix .o,$(basename $(SRCS))))
@@ -18,3 +18,12 @@
endif
ifeq ($(PROFILING),1)
@@ -75,7 +75,7 @@
exedata.o : $(deps)
../makensis$(EXESUFF) : $(OBJS)
- $(CC) -Wall $(LDFLAGS) -o ../makensis$(EXESUFF) $(OBJS) $(LIBS)
+ $(CXX) -Wall $(LDFLAGS) -o ../makensis$(EXESUFF) $(OBJS) $(LIBS)
VPATH=zlib:bzip2:7zip:7zip/Common:7zip/7zip:7zip/7zip/Compress/LZ:7zip/7zip/Compress/LZMA:7zip/7zip/Common:7zip/7zip/Compress/RangeCoder
+5 -5
View File
@@ -1,5 +1,5 @@
--- install.sh.old Thu Mar 3 13:57:48 2005
+++ install.sh Thu Mar 3 14:00:50 2005
--- install.sh.orig 2006-06-06 14:11:20.000000000 -0700
+++ install.sh 2006-06-06 14:11:48.000000000 -0700
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
@@ -25,12 +25,12 @@
# Install executable
-install --preserve-timestamps --owner=$OWNER --group=$GROUP --mode=755 \
+install -o $OWNER -g $GROUP --mode=755 \
+install -o $OWNER -g $GROUP -m 755 \
makensis "${INSTALL_PREFIX}${TARGETDIR}"
# Install config file
-install --preserve-timestamps --owner=$OWNER --group=$GROUP --mode=644 \
+install -o $OWNER -g $GROUP --mode=644 \
+install -o $OWNER -g $GROUP -m 644 \
nsisconf.nsh "${INSTALL_PREFIX}${TARGETDIR}"
# Now create a script that runs the compiler
@@ -44,7 +44,7 @@
EOF
-install -D --mode=755 --owner=$OWNER --group=$GROUP \
+install -o $OWNER -g $GROUP --mode=755 \
+install -o $OWNER -g $GROUP -m 755 \
"$tempfile" "${INSTALL_PREFIX}${PREFIX}/bin/makensis"
\rm -f "$tempfile"