sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
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.
2018-10-24 14:27:57 +00:00

68 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2018/10/24 14:28:01 sthen Exp $
COMMENT= Commodore 64 emulator
DISTNAME= FrodoV4_1b.Src
PKGNAME= frodo-4.1b
REVISION= 10
DISTFILES= FrodoV4_1b.Src${EXTRACT_SUFX}
CATEGORIES= emulators games
MAINTAINER= Marc Espie <espie@openbsd.org>
HOMEPAGE= http://frodo.cebix.net/
# FreeWare
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= SDL c m pthread sndio ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
CONFIGURE_STYLE= gnu
MODULES= x11/tk
RUN_DEPENDS= ${MODTK_RUN_DEPENDS}
LIB_DEPENDS= sdl-*-!no_x11:devel/sdl
WISH= ${MODTK_BIN}
FRODOLIBDIR= ${PREFIX}/lib/frodo
CONFIGURE_ENV= CFLAGS='${CFLAGS} -D__unix -DX_USE_SHM -DUSE_SNDIO -fno-exceptions' \
LIBS='-lsndio'
MAKE_ENV=WISH=${WISH} FRODOLIBDIR=${FRODOLIBDIR}
MASTER_SITES= http://frodo.cebix.net/downloads/ \
ftp://sunsite.unc.edu/pub/micro/commodore/crossplatform/emulators/unix/
WRKDIST=${WRKDIR}/Frodo-4.1b
WRKSRC=${WRKDIST}/Src
post-patch:
cp ${FILESDIR}/SID_sndio.i ${WRKSRC}
NO_TEST= Yes
do-install:
${INSTALL_PROGRAM} ${WRKDIST}/Frodo ${PREFIX}/bin/frodo
${INSTALL_PROGRAM} ${WRKDIST}/FrodoSC ${PREFIX}/bin/frodoSC
${INSTALL_PROGRAM} ${WRKDIST}/FrodoPC ${PREFIX}/bin/frodoPC
${INSTALL_DATA_DIR} ${FRODOLIBDIR}/64prgs
${INSTALL_DATA} ${WRKDIST}/{1541,Basic,Char,Kernal}\ ROM \
${FRODOLIBDIR}
${INSTALL_DATA} "${WRKDIST}/Frodo Logo" ${FRODOLIBDIR}
${INSTALL_SCRIPT} "${WRKDIST}/TkGui.tcl" ${FRODOLIBDIR}
@cd ${WRKDIST}/64prgs; tar cf - . | \
(cd ${FRODOLIBDIR}/64prgs; tar xf -)
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/frodo
${INSTALL_DATA} ${WRKDIST}/CHANGES ${PREFIX}/share/doc/frodo
cd ${WRKDIST}/Docs; tar cf - . | \
(cd ${PREFIX}/share/doc/frodo; tar xf -)
.include <bsd.port.mk>