blob: ea783e90ba9b0bc9b9acaf893b5b9e2e4c04f060 (
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
|
# $NetBSD: Makefile,v 1.11 2011/11/29 06:18:59 sbd Exp $
#
DISTNAME= scid-3.6.1
PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scid/}
MAINTAINER= luapzz@gmail.com
HOMEPAGE= http://scid.sourceforge.net/
COMMENT= Shane's Chess Information Database
PKG_DESTDIR_SUPPORT= user-destdir
USE_PKGLOCALEDIR= yes
HAS_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
# Make the LINK command CXX and the LDFLAGS.
LINK= ${CXX} ${LDFLAGS}
CONFIGURE_ENV+= TCLCONFIG_SH=${TCLCONFIG_SH:Q}
CONFIGURE_ARGS+= BINDIR=${PREFIX}/bin SHAREDIR=${PREFIX}/share/scid
CONFIGURE_ARGS+= COMPILE=${CXX:Q} OPTIMIZE=${CFLAGS:Q} LINK=${LINK:Q}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing paths to tcl.h and tk.h.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= configure
SUBST_SED.paths= -e 's,@TCLPREFIX@,${BUILDLINK_PREFIX.tcl},g' \
-e 's,@TKPREFIX@,${BUILDLINK_PREFIX.tk},g' \
-e 's,@LIBDL@,${BUILDLINK_LDADD.dl},g'
MAKE_ENV+= X_LDFLAGS=${X11_LDFLAGS:Q}
REPLACE_PYTHON+= scripts/pgnfix.py
.include "../../lang/python/application.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|