aboutsummaryrefslogtreecommitdiff
path: root/archivers/upx/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2004-02-17 03:05:13 +0000
committerMax Khon <fjoe@FreeBSD.org>2004-02-17 03:05:13 +0000
commit45eebd566c5ab44d538bf10ed87eaea2dcfb05f9 (patch)
tree2667b9621b928eec912e441215b83864391db2a7 /archivers/upx/Makefile
parent814c4bc578ae1eef3d8fcec3301f941137eec0b2 (diff)
downloadports-45eebd566c5ab44d538bf10ed87eaea2dcfb05f9.tar.gz
ports-45eebd566c5ab44d538bf10ed87eaea2dcfb05f9.zip
Notes
Diffstat (limited to 'archivers/upx/Makefile')
-rw-r--r--archivers/upx/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/archivers/upx/Makefile b/archivers/upx/Makefile
new file mode 100644
index 000000000000..2fcf0b01a9a6
--- /dev/null
+++ b/archivers/upx/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: upx
+# Date created: 17 Feb 2004
+# Whom: Max Khon <fjoe@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= upx
+PORTVERSION= 1.24
+CATEGORIES= archivers
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= upx/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= fjoe@FreeBSD.org
+COMMENT= The Ultimate Packer for eXecutables
+
+LIB_DEPENDS= ucl.1:${PORTSDIR}/archivers/ucl
+
+USE_GMAKE= yes
+USE_PERL5_BUILD=yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+MAKE_ENV= UCLDIR=${LOCALBASE} target=freebsd
+
+PORTDOCS= BUGS COPYING LICENSE NEWS README THANKS
+MAN1= upx.1
+PLIST_FILES= bin/upx
+
+post-patch:
+ @${CP} ${FILESDIR}/freebsd.h ${WRKSRC}/config_h
+ @${CP} ${FILESDIR}/l_b_n2?.h ${WRKSRC}/stub
+
+post-build:
+ @cd ${WRKSRC}/../doc && ${GMAKE}
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/upx ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/../doc/upx.1 ${MANPREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @for i in ${PORTDOCS}; do \
+ ${INSTALL_DATA} ${WRKSRC}/../$$i ${DOCSDIR}; \
+ done
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>