2005-02-21 16:59:44 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2005/02/21 21:59:44 sturm Exp $
|
1998-07-13 01:13:16 -04:00
|
|
|
|
2000-09-06 02:32:07 -04:00
|
|
|
ONLY_FOR_ARCHS= i386 sparc
|
|
|
|
|
2001-08-10 10:25:57 -04:00
|
|
|
.if ${MACHINE_ARCH} == "sparc" && !exists(/emul/svr4/usr/lib/libc.so.1)
|
|
|
|
IGNORE= "requires Solaris shared libraries"
|
|
|
|
.endif
|
|
|
|
|
2001-03-29 10:01:53 -05:00
|
|
|
COMMENT= "RAR archiver (binary port)"
|
|
|
|
|
2002-09-15 19:04:46 -04:00
|
|
|
DISTNAME=rar-2.0x
|
|
|
|
|
2000-09-06 02:32:07 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2000-09-15 08:54:44 -04:00
|
|
|
DISTFILES= rarbsd.sfx
|
1999-10-30 16:51:34 -04:00
|
|
|
PKGNAME= rar-2.02
|
2003-10-18 14:20:40 -04:00
|
|
|
EMUL= bsdos
|
2000-09-06 02:32:07 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc"
|
2000-09-15 08:54:44 -04:00
|
|
|
DISTFILES= rarsparc.sfx
|
2000-09-06 02:32:07 -04:00
|
|
|
PKGNAME= rar-2.01
|
2003-10-18 14:20:40 -04:00
|
|
|
EMUL= svr4
|
2000-09-06 02:32:07 -04:00
|
|
|
.endif
|
2000-09-15 08:54:44 -04:00
|
|
|
|
|
|
|
SUPDISTFILES= rarsparc.sfx rarbsd.sfx
|
|
|
|
|
1998-07-13 01:13:16 -04:00
|
|
|
CATEGORIES= archivers
|
2001-02-27 12:53:12 -05:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/rar/ \
|
|
|
|
ftp://ftp.netlab.sk/public/rarsoft/rar/
|
1999-10-30 16:51:34 -04:00
|
|
|
|
2001-02-27 12:53:12 -05:00
|
|
|
EXTRACT_CASES= *.sfx) ${SUDO} chmod a+x ${FULLDISTDIR}/$$archive && \
|
2001-03-29 10:01:53 -05:00
|
|
|
${FULLDISTDIR}/$$archive;;
|
1999-09-23 17:52:29 -04:00
|
|
|
|
2003-05-23 22:40:42 -04:00
|
|
|
HOMEPAGE= http://www.rarsoft.com/
|
2000-09-06 02:03:10 -04:00
|
|
|
|
2003-05-23 22:40:42 -04:00
|
|
|
# Restrictive
|
2000-03-04 12:58:29 -05: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
|
|
|
|
|
2000-02-10 18:14:27 -05:00
|
|
|
WRKDIST= ${WRKDIR}
|
2003-10-18 14:20:40 -04:00
|
|
|
SUBST_VARS+= EMUL
|
2005-02-21 16:59:44 -05:00
|
|
|
SYSTRACE_SUBST_VARS= FULLDISTDIR
|
2003-10-18 14:20:40 -04:00
|
|
|
SYSCTL= ${SUDO} sysctl -w kern.emul.${EMUL}
|
1998-07-13 01:13:16 -04:00
|
|
|
|
2003-10-18 14:20:40 -04:00
|
|
|
pre-extract:
|
|
|
|
@sysctl -n kern.emul.${EMUL} > ${WRKDIR}/.emul_${EMUL}
|
|
|
|
@${SYSCTL}=1
|
2000-09-06 02:32:07 -04:00
|
|
|
|
1998-07-13 01:13:16 -04:00
|
|
|
post-extract:
|
2000-09-06 02:32:07 -04:00
|
|
|
.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
|
2003-10-18 14:20:40 -04:00
|
|
|
@${SYSCTL}=`cat ${WRKDIR}/.emul_${EMUL}`
|
2000-09-06 02:32:07 -04:00
|
|
|
|
2000-12-19 10:23:28 -05:00
|
|
|
DOCS= Rar_FAQ.txt TechNote.Txt License.Txt Internet.Txt Rar.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
|
2000-09-06 02:32:07 -04:00
|
|
|
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
|
2000-09-06 02:32:07 -04:00
|
|
|
${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
|
|
|
|
2001-10-04 18:26:48 -04:00
|
|
|
NO_REGRESS= Yes
|
1998-07-13 01:13:16 -04:00
|
|
|
.include <bsd.port.mk>
|