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