pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/upx Initial import of upx-1.24, based on wip...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8b68beada1ad
branches: trunk
changeset: 465875:8b68beada1ad
user: ben <ben%pkgsrc.org@localhost>
date: Wed Jan 07 15:12:59 2004 +0000
description:
Initial import of upx-1.24, based on wip/upx and the package provided by
fab%gnux.info@localhost in PR 23903. This is the "Ultimate Packer for eXecutables".
This will build and run on NetBSD, but it only operates on the binary
formats of other systems.
diffstat:
archivers/upx/DESCR | 4 +++
archivers/upx/Makefile | 28 +++++++++++++++++++++++++++
archivers/upx/PLIST | 4 +++
archivers/upx/distinfo | 5 ++++
archivers/upx/patches/patch-aa | 43 ++++++++++++++++++++++++++++++++++++++++++
5 files changed, 84 insertions(+), 0 deletions(-)
diffs (104 lines):
diff -r 54a96d70e5ce -r 8b68beada1ad archivers/upx/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/upx/DESCR Wed Jan 07 15:12:59 2004 +0000
@@ -0,0 +1,4 @@
+UPX is a free, portable, extendable, high-performance executable packer for
+several different executable formats. It achieves an excellent compression
+ratio and offers very fast decompression. Your executables suffer no memory
+overhead or other drawbacks because of in-place decompression.
diff -r 54a96d70e5ce -r 8b68beada1ad archivers/upx/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/upx/Makefile Wed Jan 07 15:12:59 2004 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/07 15:12:59 ben Exp $
+
+DISTNAME= upx-1.24-src
+PKGNAME= ${DISTNAME:S/-src//}
+WRKSRC= ${WRKDIR}/${PKGNAME}
+CATEGORIES= misc archivers
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=upx/}
+
+MAINTAINER= fab%gnux.info@localhost
+HOMEPAGE= http://upx.sourceforge.net/
+COMMENT= Ultimate packer for executables
+
+DEPENDS+= ucl>=1.01:../../devel/ucl
+
+USE_GMAKE= yes
+USE_PERL5= build
+
+do-build:
+ (cd ${WRKSRC}/src && ${GMAKE} PREFIX=${PREFIX} target=netbsd)
+ (cd ${WRKSRC}/doc && ${GMAKE})
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/upx ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/upx/
+ ${INSTALL_DATA} ${WRKSRC}/doc/upx.doc ${PREFIX}/share/doc/upx
+ ${INSTALL_DATA} ${WRKSRC}/doc/upx.html ${PREFIX}/share/doc/upx
+
+.include "../../mk/bsd.pkg.mk"
diff -r 54a96d70e5ce -r 8b68beada1ad archivers/upx/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/upx/PLIST Wed Jan 07 15:12:59 2004 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/07 15:12:59 ben Exp $
+bin/upx
+share/doc/upx/upx.doc
+share/doc/upx/upx.html
diff -r 54a96d70e5ce -r 8b68beada1ad archivers/upx/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/upx/distinfo Wed Jan 07 15:12:59 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/07 15:12:59 ben Exp $
+
+SHA1 (upx-1.24-src.tar.gz) = 81e9a8e9283045094b9c58439b1f537a04bc55fc
+Size (upx-1.24-src.tar.gz) = 222976 bytes
+SHA1 (patch-aa) = 720bdfd17a845be9953374fd832a7e92322a015a
diff -r 54a96d70e5ce -r 8b68beada1ad archivers/upx/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/upx/patches/patch-aa Wed Jan 07 15:12:59 2004 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/07 15:12:59 ben Exp $
+--- ../upx-1.24/src/Makefile 2002-10-28 11:43:34.000000000 +0100
++++ src/Makefile 2003-12-27 22:03:08.000000000 +0100
+@@ -187,6 +187,39 @@ LDFLAGS += $(LDLIBDIRS)
+
+
+ ###
++### NetBSD
++###
++
++ifeq ($(target),netbsd)
++override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/')
++DEFS += '-DUPX_CONFIG_H="config_h/linux.h"'
++DEFS += -D_FILE_OFFSET_BITS=64 -DWITH_UCL=1
++LDLIBS += -lucl
++ifeq ($(arch),i386)
++ CC += -march=i386 -mcpu=i586
++endif
++
++ifeq (1,2) # checkergcc
++ CC = checkergcc
++ CXX = checkerg++
++else
++ifeq ($(DEBUG),1)
++ CFLAGS += -O0 -g
++else
++ ##LDFLAGS += -static
++ STUBEDIT_EXE = objcopy -S -R .comment -R .note $@
++ ifeq ($(arch),i386)
++ STUBIFY_EXE = perl $(srcdir)/stub/scripts/brandelf.pl $@
++ CHMOD_EXE = chmod 755 $@
++ endif
++endif
++endif
++LDFLAGS += -L$(PREFIX)/lib -Wl,-rpath=$(PREFIX)/lib
++CFLAGS += -I$(PREFIX)/include
++CC = g++
++endif # netbsd
++
++###
+ ### Linux
+ ###
+
Home |
Main Index |
Thread Index |
Old Index