2012-10-25 08:55:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2012/10/25 06:55:45 asau Exp $
|
2005-10-02 13:10:45 +02:00
|
|
|
#
|
|
|
|
# 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
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 1
|
2005-10-02 13:10:45 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
MASTER_SITES= ${CONVERTLIT_MASTER_SITES}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-10-02 13:10:45 +02:00
|
|
|
HOMEPAGE= ${CONVERTLIT_HOMEPAGE}
|
|
|
|
COMMENT= Convert Microsoft Legal Reader format eBooks into open format
|
|
|
|
|
2005-11-04 20:52:30 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
BUILD_DIRS= lib clit18
|
2009-09-03 15:39:39 +02:00
|
|
|
MAKE_FILE= Makefile
|
2005-10-02 13:10:45 +02:00
|
|
|
USE_TOOLS+= gmake
|
|
|
|
|
2005-11-04 20:52:30 +01:00
|
|
|
SUBST_CLASSES+= d2u
|
|
|
|
SUBST_STAGE.d2u= pre-configure
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.d2u= Stripping CRLF line ends.
|
2005-11-04 20:52:30 +01:00
|
|
|
SUBST_FILES.d2u+= *.h *.c */*.h */*.c */*/*.h */*/*.c
|
|
|
|
SUBST_FILTER_CMD.d2u= ${TR} -d '\r'
|
|
|
|
|
2009-10-06 23:37:10 +02:00
|
|
|
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,'
|
|
|
|
|
2005-10-02 13:10:45 +02:00
|
|
|
RESTRICTED= Possible legal problems
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
|
2009-07-08 00:22:58 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2005-10-02 13:10:45 +02:00
|
|
|
do-install:
|
2009-07-08 00:22:58 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/clit18/clit ${DESTDIR}${PREFIX}/bin/convertlit
|
2005-10-02 13:10:45 +02:00
|
|
|
|
|
|
|
.include "../../math/ltm/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|