summaryrefslogtreecommitdiff
path: root/archivers/upx
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2004-01-07 15:12:59 +0000
committerben <ben@pkgsrc.org>2004-01-07 15:12:59 +0000
commitb22712fdc69c3de833cd7a8b19acbdeb01cd1c04 (patch)
treeff575e4f350962c44b8fa7dee01f262ea6481bd3 /archivers/upx
parentfe88d8c578abe038429c33b0bcfb349523a8bd3a (diff)
downloadpkgsrc-b22712fdc69c3de833cd7a8b19acbdeb01cd1c04.tar.gz
Initial import of upx-1.24, based on wip/upx and the package provided by
fab@gnux.info 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 (limited to 'archivers/upx')
-rw-r--r--archivers/upx/DESCR4
-rw-r--r--archivers/upx/Makefile28
-rw-r--r--archivers/upx/PLIST4
-rw-r--r--archivers/upx/distinfo5
-rw-r--r--archivers/upx/patches/patch-aa43
5 files changed, 84 insertions, 0 deletions
diff --git a/archivers/upx/DESCR b/archivers/upx/DESCR
new file mode 100644
index 00000000000..f5950f44087
--- /dev/null
+++ b/archivers/upx/DESCR
@@ -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 --git a/archivers/upx/Makefile b/archivers/upx/Makefile
new file mode 100644
index 00000000000..673e61a5c27
--- /dev/null
+++ b/archivers/upx/Makefile
@@ -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
+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 --git a/archivers/upx/PLIST b/archivers/upx/PLIST
new file mode 100644
index 00000000000..b53a0f4590a
--- /dev/null
+++ b/archivers/upx/PLIST
@@ -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 --git a/archivers/upx/distinfo b/archivers/upx/distinfo
new file mode 100644
index 00000000000..898ec0121ac
--- /dev/null
+++ b/archivers/upx/distinfo
@@ -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 --git a/archivers/upx/patches/patch-aa b/archivers/upx/patches/patch-aa
new file mode 100644
index 00000000000..c40ddc1c960
--- /dev/null
+++ b/archivers/upx/patches/patch-aa
@@ -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
+ ###
+