From owner-svn-ports-head@freebsd.org Fri Feb 8 07:44:48 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48D6814D72CD; Fri, 8 Feb 2019 07:44:48 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E411B6DBF2; Fri, 8 Feb 2019 07:44:47 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D8643E18C; Fri, 8 Feb 2019 07:44:47 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x187ilTe008084; Fri, 8 Feb 2019 07:44:47 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x187ijW3008076; Fri, 8 Feb 2019 07:44:45 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201902080744.x187ijW3008076@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 8 Feb 2019 07:44:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492411 - in head/emulators: . teo teo/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/emulators: . teo teo/files X-SVN-Commit-Revision: 492411 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E411B6DBF2 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.953,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 07:44:48 -0000 Author: tobik Date: Fri Feb 8 07:44:45 2019 New Revision: 492411 URL: https://svnweb.freebsd.org/changeset/ports/492411 Log: New port: emulators/teo Teo is an emulator of the Thomson TO8 microcomputer for PC, running on MSDOS, Windows, Linux, and FreeBSD. The compatibility is close to 100% for softwares which don't use non emulated peripherals and don't hold physical protections. WWW: https://sourceforge.net/projects/teoemulator/ PR: 235563 Submitted by: Thomas Bernard Added: head/emulators/teo/ head/emulators/teo/Makefile (contents, props changed) head/emulators/teo/distinfo (contents, props changed) head/emulators/teo/files/ head/emulators/teo/files/patch-makefile.all (contents, props changed) head/emulators/teo/files/patch-makefile.lnx (contents, props changed) head/emulators/teo/files/patch-src_linux_ufloppy.c (contents, props changed) head/emulators/teo/files/patch-src_std.c (contents, props changed) head/emulators/teo/pkg-descr (contents, props changed) head/emulators/teo/pkg-plist (contents, props changed) Modified: head/emulators/Makefile Modified: head/emulators/Makefile ============================================================================== --- head/emulators/Makefile Fri Feb 8 07:06:23 2019 (r492410) +++ head/emulators/Makefile Fri Feb 8 07:44:45 2019 (r492411) @@ -135,6 +135,7 @@ SUBDIR += stella SUBDIR += stonx SUBDIR += swine + SUBDIR += teo SUBDIR += tiemu3 SUBDIR += tilem SUBDIR += tme Added: head/emulators/teo/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/Makefile Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,39 @@ +# Created by: Thomas Bernard +# $FreeBSD$ + +PORTNAME= teo +PORTVERSION= 1.8.4 +CATEGORIES= emulators +MASTER_SITES= SF/teoemulator/linux/${PORTVERSION} +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= nanard@free.fr +COMMENT= Thomson TO8 emulator + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/licence-en.txt + +LIB_DEPENDS= libasound.so:audio/alsa-lib \ + libpng.so:graphics/png + +USES= gmake gnome pkgconfig +USE_GNOME= cairo gdkpixbuf2 gtk30 +USE_XORG= x11 xext + +ALL_TARGET= default +WRKSRC= ${WRKDIR}/teo + +post-patch: + @${ECHO_CMD} "MAKEFILE_INC = makefile.lnx" > ${WRKSRC}/Makefile + @${ECHO_CMD} "include makefile.all" >> ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|"system/|"${DATADIR}/|' \ + ${WRKSRC}/src/hardware.c ${WRKSRC}/src/linux/udebug/udtoolb.c + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/teo ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}${DATADIR}/rom + ${INSTALL_DATA} ${WRKSRC}/system/rom/* ${STAGEDIR}${DATADIR}/rom + @${MKDIR} ${STAGEDIR}${DATADIR}/icons + ${INSTALL_DATA} ${WRKSRC}/system/icons/* ${STAGEDIR}${DATADIR}/icons + +.include Added: head/emulators/teo/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/distinfo Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,3 @@ +TIMESTAMP = 1549611723 +SHA256 (teo-1.8.4-src.tar.gz) = 93b636861a67cc72223713c2708391eaf969a7a10ccf2f0288fb41ae6e22c437 +SIZE (teo-1.8.4-src.tar.gz) = 1552423 Added: head/emulators/teo/files/patch-makefile.all ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/files/patch-makefile.all Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,11 @@ +--- makefile.all.orig 2019-02-06 11:40:40 UTC ++++ makefile.all +@@ -151,8 +151,6 @@ TEO_SRC_WIN_FILES = \ + + # ------ compiler flags ------ + +-CC = gcc +- + WFLAGS = -Wall + + ifdef PGCC Added: head/emulators/teo/files/patch-makefile.lnx ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/files/patch-makefile.lnx Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,28 @@ +--- makefile.lnx.orig 2019-02-06 11:40:45 UTC ++++ makefile.lnx +@@ -15,7 +15,7 @@ UNIX_TOOLS = 1 + ifdef DEBUGMODE + + # -- debugging build -- +-CFLAGS = -g -DDEBUG $(WFLAGS) ++CFLAGS += -g -DDEBUG $(WFLAGS) + LFLAGS = -g + DESCRIPTION = debugging + +@@ -23,14 +23,14 @@ else + ifdef PROFILEMODE + + # -- profiling build -- +-CFLAGS = -pg $(WFLAGS) $(OFLAGS) ++CFLAGS += -pg $(WFLAGS) $(OFLAGS) + LFLAGS = -pg + DESCRIPTION = profiling + + else + + # -- optimised build -- +-CFLAGS = $(WFLAGS) $(OFLAGS) ++CFLAGS += $(WFLAGS) + LFLAGS = -s + DESCRIPTION = optimized + Added: head/emulators/teo/files/patch-src_linux_ufloppy.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/files/patch-src_linux_ufloppy.c Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,37 @@ +# HG changeset patch +# User François Mouret +# Date 1544541950 -3600 +# Tue Dec 11 16:25:50 2018 +0100 +# Node ID e49c586caa6bfd5cbc710fbbef05cf6f3c361fcd +# Parent e5023114c1b22b12a07de65eaa3460cae578ec49 +Avoid floppy reactions for non Linux systems (thanks to Thomas Bernard) + +--- src/linux/ufloppy.c.orig 2017-11-03 16:40:23 UTC ++++ src/linux/ufloppy.c +@@ -44,6 +44,7 @@ + */ + + ++#if defined(linux) + #ifndef SCAN_DEPEND + #include + #include +@@ -404,3 +405,18 @@ void ufloppy_Exit (void) + } + } + ++#else ++ ++/* for non linux systems, such as FreeBSD, etc. */ ++ ++int ufloppy_Init (int to_drive_type[4], int enable_write) ++{ ++ return 0; ++} ++ ++void ufloppy_Exit (void) ++{ ++} ++ ++#endif ++ Added: head/emulators/teo/files/patch-src_std.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/files/patch-src_std.c Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,12 @@ +--- src/std.c.orig 2017-11-03 16:40:23 UTC ++++ src/std.c +@@ -364,8 +364,7 @@ char *std_ApplicationPath (const char di + { + static char *fname = NULL; + +- fname = NULL; +-#ifdef DEBIAN_BUILD ++#if !defined(__DJGPP__) && !defined(_WIN32) + /* create private directory if necessary */ + fname = std_strdup_printf ("%s/.config/%s", getenv("HOME"), dirname); + if (access (fname, F_OK) < 0) Added: head/emulators/teo/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/pkg-descr Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,7 @@ +Teo is an emulator of the Thomson TO8 microcomputer for PC, running +on MSDOS, Windows, Linux, and FreeBSD. + +The compatibility is close to 100% for softwares which don't use +non emulated peripherals and don't hold physical protections. + +WWW: https://sourceforge.net/projects/teoemulator/ Added: head/emulators/teo/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/teo/pkg-plist Fri Feb 8 07:44:45 2019 (r492411) @@ -0,0 +1,11 @@ +bin/teo +%%DATADIR%%/icons/leave.ico +%%DATADIR%%/icons/run.ico +%%DATADIR%%/icons/step.ico +%%DATADIR%%/icons/stepover.ico +%%DATADIR%%/rom/basic1.rom +%%DATADIR%%/rom/basic512.rom +%%DATADIR%%/rom/expl.rom +%%DATADIR%%/rom/extramon.rom +%%DATADIR%%/rom/monitor1.rom +%%DATADIR%%/rom/monitor2.rom