freebsd-ports/archivers/rar/Makefile
Edwin Groothuis a7e297beb8 [fix] archivers/rar: add compat5x dependency and amd64 support
rar is FreeBSD/i386 5.x binary. On FreeBSD 6.x it requires
    misc/compat5x.  It works on amd64 architecture using lib32
    libraries and COMPAT_IA32 support in kernel.

PR:		ports/85432
Submitted by:	Simun Mikecin <numisemis@yahoo.com>
2005-08-30 03:44:30 +00:00

59 lines
1.3 KiB
Makefile

# New ports collection makefile for: rar
# Date created: 15 May 1996
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= rar
PORTVERSION= 3.50
PORTEPOCH= 1
CATEGORIES= archivers
MASTER_SITES= http://files1.rarlab.com/rar/ \
http://files2.rarlab.com/rar/ \
http://files3.rarlab.com/rar/ \
http://files4.rarlab.com/rar/ \
http://files5.rarlab.com/rar/ \
http://files6.rarlab.com/rar/
DISTNAME= rarbsd-3.5.0
MAINTAINER= ports@FreeBSD.org
COMMENT= File archiver (binary port)
ONLY_FOR_ARCHS= i386 amd64
NO_PACKAGE= Only unmodified original package can be distributed
NO_BUILD= yes
WRKSRC= ${WRKDIR}/rar
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000
IGNORE=is unsupported on versions prior to FreeBSD 5.3
.endif
.if ${OSVERSION} >= 600000
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
.endif
.if ${PORTOBJFORMAT} == "elf"
STRIP=
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin/rar
cd ${WRKSRC} && \
${INSTALL_MAN} rar.txt ${PREFIX}/man/cat1/rar.1 && \
${INSTALL_DATA} rarfiles.lst \
${PREFIX}/etc && \
${INSTALL_DATA} default.sfx \
${PREFIX}/lib
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} technote.txt license.txt \
order.htm readme.txt whatsnew.txt \
file_id.diz \
${DOCSDIR}
.endif
.include <bsd.port.post.mk>