pkgsrc/devel/sgb/Makefile
rillig 4f4f64fdce mark packages that fail with -Werror=char-subscripts
These packages are susceptible to bugs when confronted with non-ASCII
characters.

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94182.

It takes some time to analyze and fix these individually, therefore they
are only marked as "needs work".
2020-05-20 06:09:03 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2020/05/20 06:09:08 rillig Exp $
DISTNAME= sgb-2007-03.28
PKGNAME= sgb-20070328
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cs.stanford.edu/pub/sgb/
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= https://www-cs-faculty.stanford.edu/~knuth/sgb.html
COMMENT= The Stanford GraphBase
DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
DEPENDS+= web2c-[0-9]*:../../print/web2c
MAKE_JOBS_SAFE= no
USE_LIBTOOL= yes
WRKSRC= ${WRKDIR}
BUILD_TARGET= lib doc
TEST_TARGET= tests
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= Makefile
SUBST_VARS.paths= LOCALBASE
SUBST_SED.paths+= -e 's,@PREFIX@,$${DESTDIR}${PREFIX},g'
# gb_io.w: In function 'icode_setup':
# gb_io.w:217:34: error: array subscript has type 'char' [-Werror=char-subscripts]
# for (p=imap,k=0; *p; p++,k++) icode[*p]=k;
# Maybe fix this later.
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/sgb
.for f in abstract.dvi README ERRATA
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/sgb
.endfor
.include "../../mk/bsd.pkg.mk"