head	1.3;
access;
symbols
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2007.05.26.08.45.14;	author fjoe;	state dead;
branches;
next	1.2;

1.2
date	2005.01.08.11.16.50;	author fjoe;	state Exp;
branches;
next	1.1;

1.1
date	2004.02.17.03.05.13;	author fjoe;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update to 3.00.

PR:		112560
Submitted by:	Peter Johnson
@
text
@--- Makefile.orig	Tue Feb  3 15:50:45 2004
+++ Makefile	Wed Jan  5 13:44:11 2005
@@@@ -3,6 +3,7 @@@@
 #
 # usage:
 #   `make target=linux'             # linux
+#   `make target=freebsd'           # freebsd
 #   `make target=dos32-djggp2'      # dos32 - djggp2
 #   `make target=win32-cygwin'      # win32 - cygwin
 #   `make target=win32-mingw32'     # win32 - mingw32
@


1.2
log
@Update to 1.25.

PR:		72472
@
text
@@


1.1
log
@New port: upx 1.24

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.
@
text
@d1 2
a2 2
--- Makefile.orig	Mon Oct 28 16:43:34 2002
+++ Makefile	Tue Feb 17 08:20:39 2004
d8 3
a10 33
 #   `make target=djggp2'            # dos32 - djggp2 2.03
 #   `make target=cygwin'            # win32 - cygwin 1.3.x
 #   `make target=mingw32'           # win32 - mingw32
@@@@ -221,6 +222,29 @@@@
 
 endif	# linux
 
+
+###
+### FreeBSD
+###
+
+ifeq ($(target),freebsd)
+override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/')
+DEFS += '-DUPX_CONFIG_H="config_h/freebsd.h"'
+
+ifeq ($(DEBUG),1)
+  ##CFLAGS += -O0 -gstabs+3
+  ##CFLAGS += -O0 -gdwarf-2
+  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	# freebsd
 
 ###
 ### Linux cross compilers
@

