Build both console and SDL versions.

OK juanfra@ (previous version), sthen@
This commit is contained in:
fcambus 2017-03-27 09:59:58 +00:00
parent a9c9b0395b
commit 08983bff73
3 changed files with 29 additions and 5 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/03/19 21:49:31 fcambus Exp $
# $OpenBSD: Makefile,v 1.2 2017/03/27 09:59:58 fcambus Exp $
COMMENT = interpreter for BBC Basic (Basic V)
DISTNAME = brandy-1.20.1
REVISION = 0
CATEGORIES = lang
@ -13,18 +14,28 @@ MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c m
WANTLIB += SDL c m
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=brandy/}
MAKE_FLAGS = CC="${CC}" LD="${CC}"
LIB_DEPENDS += devel/sdl
MAKE_FILE = makefile.text tbrandy
CFLAGS += -I${LOCALBASE}/include/SDL
LDFLAGS += -L${LOCALBASE}/lib
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS}" LD="${CC}" LDFLAGS="${LDFLAGS}"
MAKE_FILE = makefile
NO_TEST = Yes
post-build:
cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f makefile.text
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tbrandy ${PREFIX}/bin/brandy
${INSTALL_PROGRAM} ${WRKSRC}/brandy ${PREFIX}/bin/brandy-sdl
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/brandy
${INSTALL_DATA} ${WRKSRC}/docs/basic ${PREFIX}/share/doc/brandy
${INSTALL_DATA} ${WRKSRC}/docs/messages ${PREFIX}/share/doc/brandy

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-makefile,v 1.1 2017/03/27 09:59:58 fcambus Exp $
--- makefile.orig Sat Mar 18 21:34:08 2017
+++ makefile Sat Mar 18 21:35:05 2017
@@ -3,7 +3,7 @@
CC = gcc
LD = gcc
-CFLAGS += -g -DDEBUG -I/usr/include/SDL -DUSE_SDL
+CFLAGS += -DUSE_SDL
CFLAGS2 = -O2 -I/usr/include/SDL -DUSE_SDL
LDFLAGS +=

View File

@ -1,5 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/03/19 21:49:31 fcambus Exp $
@comment $OpenBSD: PLIST,v 1.2 2017/03/27 09:59:58 fcambus Exp $
@bin bin/brandy
@bin bin/brandy-sdl
share/doc/brandy/
share/doc/brandy/basic
share/doc/brandy/messages