1999-04-30 04:41:21 +00:00
|
|
|
# New ports collection makefile for: linux_rar
|
|
|
|
# http://www.rarsoft.com/rar_archiver.htm
|
1999-05-05 14:27:56 +00:00
|
|
|
# Date created: 30 April 1999
|
1999-04-30 04:41:21 +00:00
|
|
|
# Whom: FUJISHIMA Satsuki <k5@respo.or.jp>
|
|
|
|
#
|
1999-08-25 04:25:23 +00:00
|
|
|
# $FreeBSD$
|
1999-04-30 04:41:21 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:24:42 +00:00
|
|
|
PORTNAME= linux_rar
|
2000-07-07 19:16:26 +00:00
|
|
|
PORTVERSION= 2.71
|
2000-02-28 08:34:04 +00:00
|
|
|
CATEGORIES= archivers linux
|
2000-05-29 03:57:11 +00:00
|
|
|
MASTER_SITES= ftp://ftp.netlab.sk/public/rarsoft/rar/ \
|
|
|
|
ftp://rarsoft.ti.sk/pub/rar/
|
2000-07-07 19:16:26 +00:00
|
|
|
DISTNAME= rarlnx271
|
2000-04-08 23:24:42 +00:00
|
|
|
EXTRACT_SUFX= .sfx
|
1999-04-30 04:41:21 +00:00
|
|
|
|
2000-04-08 23:24:42 +00:00
|
|
|
MAINTAINER= k5@cheerful.com
|
1999-04-30 04:41:21 +00:00
|
|
|
|
1999-11-14 02:15:35 +00:00
|
|
|
BUILD_DEPENDS= /compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
|
1999-07-21 14:55:43 +00:00
|
|
|
RUN_DEPENDS= /compat/linux/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base
|
1999-05-05 14:27:56 +00:00
|
|
|
|
1999-08-25 23:36:58 +00:00
|
|
|
NO_BUILD= yes
|
1999-04-30 04:41:21 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
1999-11-26 18:06:32 +00:00
|
|
|
NO_CDROM= NOFEE: Can not charge for distribution
|
2000-04-08 23:24:42 +00:00
|
|
|
NO_PACKAGE= Only unmodified original package can be distributed
|
1999-04-30 04:41:21 +00:00
|
|
|
|
|
|
|
EXTRACT_CMD= # empty
|
|
|
|
EXTRACT_BEFORE_ARGS= # empty
|
|
|
|
EXTRACT_AFTER_ARGS= # empty
|
2000-05-29 03:57:11 +00:00
|
|
|
STRIP= # empty: do not strip linux binary during INSTALL_PROGRAM
|
1999-11-14 02:15:35 +00:00
|
|
|
WRKSRC= ${WRKDIR}/rar
|
|
|
|
PLIST= ${WRKSRC}/PLIST
|
|
|
|
|
|
|
|
RARDOCS= license.txt rar_faq.txt rar_site.txt readme.txt register.frm \
|
|
|
|
register.txt rereg.txt technote.txt whatsnew.txt
|
|
|
|
RARFILES= rarfiles.lst default.sfx dos.sfx
|
1999-04-30 04:41:21 +00:00
|
|
|
|
|
|
|
post-fetch:
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} a+x ${DISTDIR}/${DISTFILES}
|
1999-04-30 04:41:21 +00:00
|
|
|
|
1999-11-14 02:15:35 +00:00
|
|
|
pre-configure:
|
|
|
|
@${ECHO_MSG} "To install unrar bundled with this package,"
|
2000-04-17 00:18:05 +00:00
|
|
|
@${ECHO_MSG} "set variable WITH_UNRAR=yes."
|
1999-11-14 02:15:35 +00:00
|
|
|
|
1999-04-30 04:41:21 +00:00
|
|
|
do-install:
|
1999-11-14 02:15:35 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/rar ${PREFIX}/share/rar
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/rar ${PREFIX}/bin
|
2000-05-29 03:57:11 +00:00
|
|
|
brandelf -t Linux ${PREFIX}/bin/rar
|
|
|
|
.if defined(WITH_UNRAR)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/unrar ${PREFIX}/bin
|
|
|
|
brandelf -t Linux ${PREFIX}/bin/unrar
|
|
|
|
@${ECHO} bin/unrar >> ${WRKSRC}/PLIST
|
|
|
|
.endif
|
1999-11-14 02:15:35 +00:00
|
|
|
.for i in ${RARDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/rar
|
|
|
|
.endfor
|
|
|
|
.for i in ${RARFILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/rar
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/rar.txt ${PREFIX}/man/cat1/rar.1
|
|
|
|
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${WRKSRC}
|
|
|
|
.if !defined(NOMANCOMPRESS)
|
|
|
|
@${GZIP_CMD} ${PREFIX}/man/cat1/rar.1
|
|
|
|
@${ECHO} man/cat1/rar.1.gz >> ${WRKSRC}/PLIST
|
|
|
|
.else
|
|
|
|
@${ECHO} man/cat1/rar.1 >> ${WRKSRC}/PLIST
|
|
|
|
.endif
|
1999-04-30 04:41:21 +00:00
|
|
|
|
1999-11-14 02:15:35 +00:00
|
|
|
post-install:
|
1999-11-26 18:06:32 +00:00
|
|
|
@${ECHO_MSG} "This is 40 days trial version of commercial software."
|
1999-11-14 02:15:35 +00:00
|
|
|
@${ECHO_MSG} "Read texts in ${PREFIX}/share/doc/rar before use."
|
1999-11-26 18:06:32 +00:00
|
|
|
.if defined(WITH_UNRAR)
|
|
|
|
@${ECHO_MSG} "However, unrar can be used for free."
|
|
|
|
.endif
|
1999-11-14 02:15:35 +00:00
|
|
|
|
1999-04-30 04:41:21 +00:00
|
|
|
.include <bsd.port.mk>
|