25f0e460f2
some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.2 2018/10/24 14:28:04 sthen Exp $
|
|
|
|
COMMENT = chess database software
|
|
DISTNAME = scid-4.6.4
|
|
EXTRACT_SUFX = .zip
|
|
CATEGORIES = games x11
|
|
REVISION = 0
|
|
|
|
HOMEPAGE = http://scid.sourceforge.net/
|
|
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} ${MODTCL_WANTLIB} c m z
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=scid/}
|
|
|
|
# C++11
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MODULES = lang/python \
|
|
x11/tk
|
|
MODTK_VERSION = 8.6
|
|
MODPY_ADJ_FILES = scripts/pgnfix.py
|
|
|
|
LIB_DEPENDS = ${MODTCL_LIB_DEPENDS}
|
|
|
|
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
|
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
USE_GMAKE = Yes
|
|
MAKE_FLAGS = CXX="${CXX}"
|
|
|
|
TEST_DEPENDS = devel/cmake \
|
|
devel/gtest
|
|
|
|
pre-configure:
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/configure
|
|
sed -i -e 's,$${CXX},${CXX},g' -e 's,$${CXXFLAGS},${CXXFLAGS},g' -e \
|
|
's,$${LOCALBASE},${LOCALBASE},g' ${WRKSRC}/configure
|
|
sed -i 's,$${CXXFLAGS},${CXXFLAGS},g' \
|
|
${WRKSRC}/engines/togaII1.2.1a/src/Makefile
|
|
|
|
post-configure:
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/scripts/spf2spi.tcl
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/tcl/contrib/ezsmtp/install.tcl
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/tcl/lang/checklangs.tcl
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/tcl/lang/propagatelang.tcl
|
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/tcl/lang/removetoken.tcl
|
|
|
|
.include <bsd.port.mk>
|