openbsd-ports/archivers/rar/Makefile

72 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2000/09/15 12:54:44 espie Exp $
1998-07-13 01:13:16 -04:00
ONLY_FOR_ARCHS= i386 sparc
.if ${MACHINE_ARCH} == "i386"
DISTFILES= rarbsd.sfx
PKGNAME= rar-2.02
.elif ${MACHINE_ARCH} == "sparc"
DISTFILES= rarsparc.sfx
PKGNAME= rar-2.01
.endif
SUPDISTFILES= rarsparc.sfx rarbsd.sfx
1998-07-13 01:13:16 -04:00
CATEGORIES= archivers
NEED_VERSION= 1.330
2000-03-31 15:26:16 -05:00
MASTER_SITES= ftp://rarsoft.ti.sk/pub/rar/
EXTRACT_CASES= *.sfx) chmod u+x ${FULLDISTDIR}/$$archive && \
${FULLDISTDIR}/$$archive;;
1999-09-23 17:52:29 -04:00
2000-09-06 02:03:10 -04:00
HOMEPAGE= http://www.rarsoft.com/
MAINTAINER= ports@openbsd.org
1998-10-06 18:37:07 -04:00
PERMIT_PACKAGE_CDROM= "Shareware. Requires registration."
PERMIT_PACKAGE_FTP= "Shareware. Requires registration."
PERMIT_DISTFILES_CDROM= "Shareware. Requires registration."
PERMIT_DISTFILES_FTP= Yes
2000-03-26 18:07:00 -05:00
NO_BUILD= Yes
WRKDIST= ${WRKDIR}
1998-07-13 01:13:16 -04:00
.if !defined(NO_WARNINGS)
pre-fetch:
.if ${MACHINE_ARCH} == "i386"
@echo
@echo "WARNING: This application requires a kernel compiled with"
@echo " 'option COMPAT_BSDOS' for proper operation. The"
@echo " GENERIC kernel contains this option."
@echo
.elif ${MACHINE_ARCH} == "sparc"
@echo
@echo "WARNING: This application requires a kernel compiled with"
@echo " 'option COMPAT_SVR4' for proper operation. The"
@echo " GENERIC kernel contains this option."
@echo
.endif
.endif
1998-07-13 01:13:16 -04:00
post-extract:
.if ${MACHINE_ARCH} == "sparc"
@cd ${WRKSRC} && \
mv RAR rar && mv UNRAR unrar && \
mv DEFAULT.SFX default.sfx && mv Rar_FAQ.Txt Rar_FAQ.txt
.endif
DOCS= Rar_FAQ.txt TechNote.Txt License.Txt Internet.Txt
1998-07-13 01:13:16 -04:00
do-install:
2000-03-26 18:07:00 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rar
${INSTALL_DATA_DIR} ${PREFIX}/share/rar
${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin/rar
${INSTALL_MAN} ${WRKSRC}/Rar.Txt ${PREFIX}/man/cat1/rar.1
cd ${WRKSRC}; ${INSTALL_MAN} ${DOCS} ${PREFIX}/share/doc/rar
2000-03-26 18:07:00 -05:00
${INSTALL_DATA} ${WRKSRC}/RarFiles.Lst ${PREFIX}/share/rar/rarfiles.lst
${INSTALL_DATA} ${WRKSRC}/default.sfx ${PREFIX}/share/rar
2000-03-26 18:07:00 -05:00
${INSTALL_DATA} ${WRKSRC}/Dos.SFX ${PREFIX}/share/rar/dos.sfx
1998-07-13 01:13:16 -04:00
.include <bsd.port.mk>