summaryrefslogtreecommitdiff
path: root/textproc/convertlit/Makefile
blob: fd5e0d058362e25aa51bf58eb83411c21768a801 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.9 2009/10/06 21:37:10 wiz Exp $
#
# In order to ensure compliance with U.S. and international law, please
# do not modify this file to provide pointers to the source or homepage
# for this software or submit any PRs telling us the contents of the
# HOMEPAGE or MASTER_SITES definitions in this Makefile.

DISTNAME=		clit18src
PKGNAME=		convertlit-1.8
PKGREVISION=		1
CATEGORIES=		textproc
MASTER_SITES=		${CONVERTLIT_MASTER_SITES}
EXTRACT_SUFX=		.zip

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		${CONVERTLIT_HOMEPAGE}
COMMENT=		Convert Microsoft Legal Reader format eBooks into open format

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=			${WRKDIR}
BUILD_DIRS=		lib clit18
MAKE_FILE=		Makefile
USE_TOOLS+=		gmake

SUBST_CLASSES+=		d2u
SUBST_STAGE.d2u=	pre-configure
SUBST_MESSAGE.d2u=	Stripping CRLF line ends.
SUBST_FILES.d2u+=		*.h *.c */*.h */*.c */*/*.h */*/*.c
SUBST_FILTER_CMD.d2u=	${TR} -d '\r'

SUBST_CLASSES+=		flags
SUBST_STAGE.flags=	pre-configure
SUBST_MESSAGE.flags=	Fixing CFLAGS and compiler invocation.
SUBST_FILES.flags+=		clit18/Makefile
SUBST_SED.flags+=	-e 's,^CFLAGS=.*,CFLAGS+=-funsigned-char -Wall -I ../lib -I ../lib/des -I .,'
SUBST_SED.flags+=	-e 's,gcc -o clit ..  ../libtommath-0.30/libtommath.a,gcc $$(LDFLAGS) -o clit $$^ -ltommath,'

RESTRICTED=		Possible legal problems
NO_SRC_ON_FTP=		${RESTRICTED}
NO_BIN_ON_FTP=		${RESTRICTED}
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/clit18/clit ${DESTDIR}${PREFIX}/bin/convertlit

.include "../../math/ltm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"