freebsd-ports/archivers/rar/Makefile
Satoshi Asami 5114e2637e Adjust port Makefiles to new EXTRACT_* variable defaults. See log of
bsd.port.mk rev. 1.304 for details on the change.

The fix here is one of the following.

(1) Define USE_BZIP2 instead of BUILD_DEPENDS on bzip2 and redefining
    EXTRACT_* commands.

(2) Change ${EXTRACT_CMD} to ${TAR} when the command is obviously
    calling the "tar" command (i.e., arguments like "-xzf" are spelled
    out).

(3) If ${EXTRACT_CMD} is called directly with ${EXTRACT_BEFORE_ARGS},
    add ${EXTRACT_AFTER_ARGS} to the command line as well.

(4) If any of EXTRACT_CMD, EXTRACT_BEFORE_ARGS or EXTRACT_AFTER_ARGS
    is set, define the other two too.
1999-02-03 11:12:01 +00:00

57 lines
1.4 KiB
Makefile

# New ports collection makefile for: rar
# http://www.inetpros.net/rar.htm
# Version required: 2.01
# Date created: 15 May 1996
# Whom: ache
#
# $Id: Makefile,v 1.11 1998/12/12 16:23:37 obrien Exp $
#
DISTNAME= rarbsd
PKGNAME= rar-2.01
CATEGORIES= archivers
MASTER_SITES= ftp://ftp.kiarchive.ru/pub/unix/arcers/
EXTRACT_SUFX= .exe
MAINTAINER= ache@FreeBSD.ORG
NO_PACKAGE= Only unmodified original package can be distributed
NO_WRKSUBDIR= yes
EXTRACT_CMD= # empty
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= # empty
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "elf"
STRIP=
.endif
post-fetch:
@chmod a+x ${DISTDIR}/${DISTFILES}
do-build:
cd ${WRKSRC} && \
for i in *.Txt *.Lst; do \
${TR} -d '\015' < $$i > $$i.tmp; \
${MV} $$i.tmp $$i; \
done
do-install:
install -d -m 755 -o ${SHAREOWN} -g ${SHAREGRP} \
${PREFIX}/share/doc/rar ${PREFIX}/share/rar
cd ${WRKSRC} && \
${INSTALL_PROGRAM} RAR ${PREFIX}/bin/rar && \
${INSTALL_MAN} Rar.Txt ${PREFIX}/man/cat1/rar.1 && \
${INSTALL_MAN} Rar_FAQ.Txt TechNote.Txt License.Txt Internet.Txt \
${PREFIX}/share/doc/rar && \
${INSTALL_DATA} RarFiles.Lst \
${PREFIX}/share/rar/rarfiles.lst && \
${INSTALL_DATA} DEFAULT.SFX \
${PREFIX}/share/rar/default.sfx && \
${INSTALL_DATA} Dos.SFX \
${PREFIX}/share/rar/dos.sfx
.include <bsd.port.post.mk>