1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/archivers/rar/Makefile
Eitan Adler b7b9ec7a12 Variable that start with _ are considered private to the defining
makefile and may not be used by ports makefiles.
In addition, avoid problems should the defaults ever change.

Approved by:	portmgr (tabthorpe)
2013-03-02 03:55:25 +00:00

58 lines
1.6 KiB
Makefile

# New ports collection makefile for: rar
# Date created: 15 May 1996
# Whom: ache
#
# $FreeBSD$
#
PORTNAME= rar
PORTVERSION= 4.2.0
PORTEPOCH= 3
CATEGORIES= archivers
MASTER_SITES= http://www.rarlab.com/rar/
DISTNAME= rarbsd-${PORTVERSION}
MAINTAINER= gabor@FreeBSD.org
COMMENT= File archiver (binary port)
LICENSE= RAR
LICENSE_NAME= RAR license
LICENSE_FILE= ${WRKSRC}/license.txt
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RESTRICTED= only unmodified original package can be distributed
NO_BUILD= yes
WRKSRC= ${WRKDIR}/rar
PLIST_FILES= bin/rar lib/default.sfx etc/rarfiles.lst man/cat1/rar.1
PORTDOCS= technote.txt license.txt whatsnew.txt order.htm \
readme.txt
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= fails to install on ia64/powerpc/sparc64: File format not recognized
.elif ${ARCH} == "amd64" || ${ARCH} == "ia64"
.if !defined(HAVE_COMPAT_IA32_KERN)
HAVE_COMPAT_IA32_KERN!= if ${SYSCTL} -n compat.ia32.maxvmem >/dev/null 2>&1; then ${ECHO_CMD} YES; fi
.endif
.if !defined(HAVE_COMPAT_IA32_KERN)
IGNORE= requires a kernel with compiled-in IA32 compatibility
.endif
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rar_static ${PREFIX}/bin/rar
${INSTALL_MAN} ${WRKSRC}/rar.txt ${PREFIX}/man/cat1/rar.1
${INSTALL_DATA} ${WRKSRC}/rarfiles.lst ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/default.sfx ${PREFIX}/lib
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>