Pullup ticket #2800.
[pkgsrc.git] / archivers / unrar / Makefile
1 # $NetBSD: Makefile,v 1.58 2008/09/21 10:45:34 wiz Exp $
2
3 DISTNAME=       unrarsrc-3.8.3
4 PKGNAME=        ${DISTNAME:S/src//}
5 CATEGORIES=     archivers
6 MASTER_SITES=   http://www.rarlab.com/rar/ \
7                 ftp://ftp.rarlab.com/rar/
8
9 MAINTAINER=     wiz@NetBSD.org
10 HOMEPAGE=       http://www.rarlab.com/
11 COMMENT=        Extract, view & test RAR archives
12
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 NO_CONFIGURE=   YES
17 USE_LANGUAGES=  c++
18 # XXX: makefile.unix has DOS line endings
19 USE_TOOLS+=     gmake
20
21 MAKE_FILE=      makefile.unix
22
23 LICENSE=        unrar-license
24 RESTRICTED=     Do not charge a fee for redistribution.  Do not use to develop a rar archiver.
25 # Reading the license implies NO_BIN_ON_FTP should be set because no
26 # permission is granted to distribute derived works (e.g., binaries).
27 # From private mail addressed to pkgsrc maintainers:
28 #
29 # Date: Wed, 10 Sep 2008 18:27:35 +0600
30 # From: Eugene Roshal <roshal@rarlab.com>
31 # You can redistribute either original or modified binaries or sources.
32 NO_SRC_ON_CDROM=${RESTRICTED}
33 NO_BIN_ON_CDROM=${RESTRICTED}
34
35 WRKSRC=         ${WRKDIR}/unrar
36
37 INSTALLATION_DIRS=      bin share/doc/unrar
38
39 do-install:
40         ${INSTALL_PROGRAM} ${WRKSRC}/unrar ${DESTDIR}${PREFIX}/bin
41         cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt  \
42                 ${DESTDIR}${PREFIX}/share/doc/unrar
43
44 .include "../../mk/bsd.prefs.mk"
45
46 # Don't set _LARGEFILE_SOURCE for platforms w/o ftello() and fseeko().
47 #
48 .for platform in Interix-* NetBSD-1.5*
49 .  if ${MACHINE_PLATFORM:M${platform}} != ""
50 .MAKEFLAGS+=    DEFINES=""
51 .  endif
52 .endfor
53
54 .include "../../mk/bsd.pkg.mk"