47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.59 2020/08/31 18:09:33 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= eboard-1.1.1
|
|
PKGREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=eboard/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.bergo.eng.br/eboard/
|
|
COMMENT= Graphical user interface for playing chess
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ENV+= PKGMANDIR=${PKGMANDIR}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
CONFIGURE_ARGS+= --man-prefix=${PREFIX}/${PKGMANDIR}
|
|
USE_LANGUAGES= c c++03
|
|
USE_TOOLS+= perl gmake pkg-config
|
|
CONFIG_SHELL= perl
|
|
REPLACE_PERL+= configure
|
|
LDFLAGS+= ${LIBOSSAUDIO}
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
SUBST_CLASSES+= mf
|
|
SUBST_STAGE.mf= post-configure
|
|
SUBST_MESSAGE.mf= Fixing autogenerated Makefile
|
|
SUBST_FILES.mf= Makefile
|
|
SUBST_SED.mf= -e 's/^CXXFLAGS.*=/CXXFLAGS += $${CPPFLAGS} /'
|
|
SUBST_SED.mf+= -e 's/^LDFLAGS.*=/LDFLAGS += $${CXXFLAGS}/'
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-O6
|
|
|
|
# Can only handle ASCII characters in several places.
|
|
# global.cc: In member function 'void Global::readRC()':
|
|
# global.cc:466:46: error: array subscript has type 'char' [-Werror=char-subscripts]
|
|
# case 4: p=t.token(sep); TabPos=rev[p->at(0)]; break;
|
|
# ^
|
|
# Also warns a lot about -Wwrite-strings and others.
|
|
# Let's hope that nobody uses this for exploits.
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../x11/gtk2/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|