Commit f32fd082 authored by Muhammad Moinur Rahman's avatar Muhammad Moinur Rahman
Browse files

emulators/lisaem: Cleanup EXPIRED ports

Approved by:	portmgr
parent 3637dcfb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17727,3 +17727,4 @@ security/fprintd||2022-12-31|Has expired: Very outdated, unsupported upstream wh
cad/linux-eagle5||2022-12-31|Has expired: Deprecated upstream, superseded by Autodesk EAGLE 9
net-p2p/amule-devel|net-p2p/amule|2022-12-31|Has expired: Superseded by non development port
graphics/comical||2022-12-31|Has expired: Abandoned project and use deprecated wxgtk28
emulators/lisaem||2022-12-31|Broken for more than a year and use deprecated wxgtk28
+0 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@
    SUBDIR += linux-power10-functional-sim
    SUBDIR += linux-power9-functional-sim
    SUBDIR += linux_base-c7
    SUBDIR += lisaem
    SUBDIR += magia
    SUBDIR += mame
    SUBDIR += mastergear

emulators/lisaem/Makefile

deleted100644 → 0
+0 −51
Original line number Diff line number Diff line
PORTNAME=	lisaem
PORTVERSION=	1.2.6.2
PORTREVISION=	2
CATEGORIES=	emulators
MASTER_SITES=	http://lisaem.sunder.net/downloads/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Apple Lisa 2 Emulator
WWW=		https://lisaem.sunder.net/

DEPRECATED=	Broken for more than a year and use deprecated wxgtk28
EXPIRATION_DATE=	2022-12-31

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_FreeBSD_13=	ld: error: duplicate symbol: mem68k_fetch_byte
BROKEN_FreeBSD_14=	ld: error: duplicate symbol: mem68k_fetch_byte

BUILD_DEPENDS=	pngtopnm:graphics/netpbm

USES=		compiler:c++11-lang tar:bzip2
USE_WX=		2.8

BINARY_ALIAS=	wx-config=${WX_CONFIG}

CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang=	-Wno-c++11-narrowing

DESKTOP_ENTRIES="LisaEm" "" "lisaem" "lisaem" "" ""

post-patch:
	@${REINPLACE_CMD} -e \
		's|^inline |static inline |' ${WRKSRC}/lisa/zilog8530.c

do-build:
	${FIND} ${WRKSRC} -type l -delete
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh build \
		--without-optimize
	${GREP} -v "^//" ${WRKSRC}/resources/lisa128x85.xpm | \
		${LOCALBASE}/bin/xpmtoppm | ${LOCALBASE}/bin/pnmtopng \
		>  ${WRKDIR}/lisaem.png

do-install:
	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * ${STAGEDIR}${PREFIX}/bin)
	(cd ${WRKDIR} && ${INSTALL_DATA} lisaem.png ${STAGEDIR}${PREFIX}/share/pixmaps)
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC}/resources && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR})
	${LN} -sf lisaem ${STAGEDIR}${PREFIX}/share/LisaEm

.include <bsd.port.mk>

emulators/lisaem/distinfo

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
SHA256 (lisaem-1.2.6.2.tar.bz2) = e971b529da91a1cd0f61c957f4e66e87746ddb7e336907a004d1ca8d56c64c98
SIZE (lisaem-1.2.6.2.tar.bz2) = 1916162
+0 −134
Original line number Diff line number Diff line
--- build.sh.orig	2015-09-03 19:56:33 UTC
+++ build.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 #### Edit these options for your system
 
@@ -46,7 +46,7 @@ done
 
 if [ -z "$CYGWIN" ];
 then
- [ "`uname`" == "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
+ [ "`uname`" = "CYGWIN_NT-5.0" ] && CYGWIN="`uname`"
 fi
 
 
@@ -121,9 +121,9 @@ WITHBLITS="-DUSE_RAW_BITMAP_ACCESS"
    export RCINCS="--include-dir=`cygpath -wp ${WXDEV}/include/common` "
    export DEFINES="-D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -D __WIN32__"
    export CXXINCS="-I. -I ..\include -I ..\cpu68k -I ..\\wxui -I `cygpath -wp ${MINGW}/include`  -I `cygpath -wp ${MINGCPP}/backward`  -I `cygpath -wp ${MINGCPP}/mingw32`  -I `cygpath -wp ${MINGCPP}`  -I `cygpath -wp ${WXDEV}/include`  -I `cygpath -wp ${WXDEV}/`  -I `cygpath -wp ${WXDEV}/include/common/wx/msw`  -I `cygpath -wp ${WXDEV}/include/common/wx/generic`  -I `cygpath -wp ${WXDEV}/include/common/wx/fl`  -I `cygpath -wp ${WXDEV}/include/common/wx/gizmos`  -I `cygpath -wp ${WXDEV}/include/common/wx/html`  -I `cygpath -wp ${WXDEV}/include/common/wx/mmedia`  -I `cygpath -wp ${WXDEV}/include/common/wx/net`  -I `cygpath -wp ${WXDEV}/include/common/wx/ogl`  -I `cygpath -wp ${WXDEV}/include/common/wx/plot`  -I `cygpath -wp ${WXDEV}/include/common/wx/protocol`  -I `cygpath -wp ${WXDEV}/include/common/wx/stc`  -I `cygpath -wp ${WXDEV}/include/common/wx/svg`  -I `cygpath -wp ${WXDEV}/include/common/wx/xml`  -I `cygpath -wp ${WXDEV}/include/common/wx/xrc`  -I `cygpath -wp ${WXDEV}/include/common/wx`  -I `cygpath -wp ${WXDEV}/include/common`"
-   export CXXFLAGS="${CXXINCS} ${DEFINES}"
+   export CXXFLAGS="${CXXFLAGS} ${CXXINCS} ${DEFINES}"
    export CXXFLAGS="-Wno-write-strings ${CXXINCS} ${DEFINES}"  #2015.08.30 allow GCC 4.6.3 to ignore constant violation
-   export CFLAGS="${INCS} ${DEFINES} -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing $WARNINGS -Wno-format -Wno-unused -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__   -fexpensive-optimizations -O3"
+   export CFLAGS="${CFLAGS} ${INCS} ${DEFINES} -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing $WARNINGS -Wno-format -Wno-unused -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__"
    export GPROF=gprof.exe
    export RM="rm -f"
    export LINK=g++.exe
@@ -172,7 +172,7 @@ esac
 
 fi
 #$CYGWIN is pre-set.  Cache $DARWIN so we don't have to call uname over and over.
-[ "`uname`" == "Darwin" ] && DARWIN="Darwin"
+[ "`uname`" = "Darwin" ] && DARWIN="Darwin"
 
 
 # not needed on OS X
@@ -234,11 +234,11 @@ fi
 # if the object is older than the source, it will return true.
 ##############################################################################
 
-function NEEDED()
+NEEDED()
 {
  if [ -f $2 ]
  then
-   [ "`ls -tr $2 $1 2>/dev/null| tail -1`" == "$1" ] && return 0
+   [ "`ls -tr $2 $1 2>/dev/null| tail -1`" = "$1" ] && return 0
    return 1
  fi
  return 0
@@ -399,7 +399,7 @@ exit 1
 fi
 
 # create built by info and license
-BUILTBY="\"Compiled on `date` by $LOGNAME@`uname -n`  (`uname -v `)\n options:$WITHBLITS $WITHDEBUG $WITHTRACE $WITHUNICODE\""
+BUILTBY="\"options:$WITHBLITS $WITHDEBUG $WITHTRACE $WITHUNICODE\""
 echo "#define BUILTBY $BUILTBY" >./include/built_by.h
 echo -n "#define LICENSE "    >>./include/built_by.h
 cat LICENSE | sed 's/^/"/g' | sed 's/$/\\n"      \\/g' >>./include/built_by.h
@@ -475,9 +475,9 @@ then
  fi
 #2015.08.31 
  #CFLAGS="-Wwrite-strings -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
- CFLAGS="-Wno-write-strings -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
- CXXFLAGS="-Wno-write-strings -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
- LINKOPTS="`wx-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
+ CFLAGS="$CFLAGS -Wno-write-strings -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
+ CXXFLAGS="$CXXFLAGS -Wno-write-strings -I. -I../include -I../cpu68k -I../wxui $WXCONFIGFLAGS $WITHOPTIMIZE $WITHDEBUG"
+ LINKOPTS="$LDFLAGS `wx-config $STATIC  $WITHUNICODE  --libs --linkdeps --cppflags`"
  if [ -z "$LINKOPTS" ]
  then
     echo wx-config has failed, or returned an error.  Ensure that it exists in your path.
@@ -493,7 +493,7 @@ fi
 ###########################################################################
 
 # Has the configuration changed since last time? if so we may need to do a clean build.
-[ -f .last-opts ] && source .last-opts
+[ -f .last-opts ] && . .last-opts
 
 needclean=0
 #debug and tracelog changes affect the whole project, so need to clean it all
@@ -663,7 +663,6 @@ then
   $CC $CFLAGS $LDFLAGS -o ../bin/lisadiskinfo lisadiskinfo.c libdc42.o || exit 1
   if [ -z "$WITHDEBUG" ]
   then
-    strip ../bin/lisadiskinfo${EXT}
     if  [ -z "$WITHOUTUPX"                 ]; then
      if [ -x "`which upx 2>/dev/null`"     ]; then upx --best ../bin/lisadiskinfo${EXT} ; fi
     fi
@@ -682,7 +681,6 @@ then
   $CC $CFLAGS -o ../bin/lisafsh-tool lisafsh-tool.c libdc42.o || exit 1
   if [ -z "$WITHDEBUG" ]
   then
-    strip ../bin/lisafsh-tool${EXT}
     if  [ -z "$WITHOUTUPX"                 ]; then
      if [ -x "`which upx 2>/dev/null`"     ]; then upx --best ../bin/lisafsh-tool${EXT} ; fi
     fi
@@ -737,7 +735,7 @@ if [ "$VSTATIC" -gt 0 ]; then DEPS=1; else DEPS=0; fi
 if [ "$DEPS" -gt 0 ]
 then
   echo "  Compiling lisaem_static_resources.cpp..."
-  $CXX $CFLAGS -c lisaem_static_resources.cpp -o lisaem_static_resources.o || exit 1
+  $CXX $CXXFLAGS -c lisaem_static_resources.cpp -o lisaem_static_resources.o || exit 1
 fi
 LIST="$LIST lisaem_static_resources.o"
 
@@ -803,7 +801,7 @@ do
   if NEEDED ${i}.cpp ${i}.o
   then
      echo "  Compiling ${i}.cpp..."
-     $CXX -W $WARNINGS $WITHDEBUG $WITHTRACE $WITHBLITS $CFLAGS -c ${i}.cpp -o ${i}.o || exit 1
+     $CXX -W $WARNINGS $WITHDEBUG $WITHTRACE $WITHBLITS $CXXFLAGS -c ${i}.cpp -o ${i}.o || exit 1
   fi
 done
 
@@ -908,7 +906,6 @@ then
 	done
 	cp $RESCPYLIST LisaEm.app/Contents/Resources/   || exit 1
 
-    [ -z "$WITHDEBUG" ] && strip ./lisaem
     chmod 755 lisaem
     mv lisaem LisaEm
     mv LisaEm LisaEm.app/Contents/MacOS/
@@ -989,8 +986,6 @@ if [ -z "$WITHDEBUG" ]
 then
 
   echo "Freshly compiled `du -sh lisaem`"
-  strip lisaem${EXT}
-  echo "Stripped `du -sh lisaem`"
 
   # compress it if upx exists.
   if [ -z "$WITHOUTUPX"              ]; then
Loading