1 # $NetBSD: Makefile,v 1.61 2009/05/19 08:59:01 wiz Exp $
3 DISTNAME= unrarsrc-3.9.5
4 PKGNAME= ${DISTNAME:S/src//}
6 MASTER_SITES= http://www.rarlab.com/rar/
8 MAINTAINER= wiz@NetBSD.org
9 HOMEPAGE= http://www.rarlab.com/
10 COMMENT= Extract, view & test RAR archives
11 LICENSE= unrar-license
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:
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}
24 PKG_INSTALLATION_TYPES= overwrite pkgviews
25 PKG_DESTDIR_SUPPORT= user-destdir
29 # XXX: makefile.unix has DOS line endings
32 MAKE_FILE= makefile.unix
34 WRKSRC= ${WRKDIR}/unrar
36 INSTALLATION_DIRS= bin share/doc/unrar
39 ${INSTALL_PROGRAM} ${WRKSRC}/unrar ${DESTDIR}${PREFIX}/bin
40 cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt \
41 ${DESTDIR}${PREFIX}/share/doc/unrar
43 .include "../../mk/bsd.prefs.mk"
45 # Don't set _LARGEFILE_SOURCE for platforms w/o ftello() and fseeko().
47 .for platform in Interix-* NetBSD-1.5*
48 . if ${MACHINE_PLATFORM:M${platform}} != ""
49 .MAKEFLAGS+= DEFINES=""
53 .include "../../mk/bsd.pkg.mk"