summaryrefslogtreecommitdiff
path: root/archivers/lha/Makefile
blob: b40a56885b34c4b3b7502656ecf22cfa0abb7f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $NetBSD: Makefile,v 1.40 2016/02/25 09:28:36 jperkin Exp $

DISTNAME=	lha-114i
PKGNAME=	lha-114.9
PKGREVISION=	4
CATEGORIES=	archivers
MASTER_SITES=	http://www2m.biglobe.ne.jp/~dolphin/lha/prog/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www2m.biglobe.ne.jp/~dolphin/lha/lha-unix.htm
COMMENT=	Archive files using LZW compression (.lzh files)
LICENSE=	lha-license

RESTRICTED=	Other than for-free distribution of the unmodified source \
		over a network, redistribution terms are complex.
NO_SRC_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP=	${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

MAKE_FLAGS+=	MAKE=${MAKE_PROGRAM:Q}

OPSYSVARS+=	LHA_CPPFLAGS
LHA_CPPFLAGS=	-DSYSTIME_HAS_NO_TM -DMKTIME -DUSESTRCASECMP -DSYSV_SYSTEM_DIR
LHA_CPPFLAGS.Darwin+=	-DHAVE_NO_LCHOWN
MAKE_FLAGS+=	MACHINE=${LHA_CPPFLAGS:Q}

INSTALLATION_DIRS=	bin ${PKGMANDIR}/ja_JP.EUC/man1

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/lha ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/man/lha.n \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/ja_JP.EUC/man1/lha.1

.include "../../mk/bsd.pkg.mk"