1 # $NetBSD: Makefile,v 1.58 2008/09/21 10:45:34 wiz Exp $
3 DISTNAME= unrarsrc-3.8.3
4 PKGNAME= ${DISTNAME:S/src//}
6 MASTER_SITES= http://www.rarlab.com/rar/ \
7 ftp://ftp.rarlab.com/rar/
9 MAINTAINER= wiz@NetBSD.org
10 HOMEPAGE= http://www.rarlab.com/
11 COMMENT= Extract, view & test RAR archives
13 PKG_INSTALLATION_TYPES= overwrite pkgviews
14 PKG_DESTDIR_SUPPORT= user-destdir
18 # XXX: makefile.unix has DOS line endings
21 MAKE_FILE= makefile.unix
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:
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}
35 WRKSRC= ${WRKDIR}/unrar
37 INSTALLATION_DIRS= bin share/doc/unrar
40 ${INSTALL_PROGRAM} ${WRKSRC}/unrar ${DESTDIR}${PREFIX}/bin
41 cd ${WRKSRC} && ${INSTALL_DATA} readme.txt license.txt \
42 ${DESTDIR}${PREFIX}/share/doc/unrar
44 .include "../../mk/bsd.prefs.mk"
46 # Don't set _LARGEFILE_SOURCE for platforms w/o ftello() and fseeko().
48 .for platform in Interix-* NetBSD-1.5*
49 . if ${MACHINE_PLATFORM:M${platform}} != ""
50 .MAKEFLAGS+= DEFINES=""
54 .include "../../mk/bsd.pkg.mk"