Summary: | [New Port] games/dotgnu-nim - traditional "Nim" game in C# | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Michael Johnson <ahze> |
Component: | Individual Port(s) | Assignee: | Pav Lucistnik <pav> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Michael Johnson
2004-03-19 11:50:20 UTC
Please ignore the lang/pnet patch and use this. It isn't friendly to all C# programs. === lang/pnet == diff -ruN lang/pnet.orig/Makefile.pnet lang/pnet/Makefile.pnet --- lang/pnet.orig/Makefile.pnet Mon Mar 22 20:51:51 2004 +++ lang/pnet/Makefile.pnet Tue Mar 23 02:48:48 2004 @@ -8,11 +8,48 @@ http://www.southern-storm.com.au/download/ PNET_MASTER_SITE_SUBDIR= dotgnu/pnet/ - ILSTRIP_CMD= ${LOCALBASE}/bin/ilstrip +ILRUN_CMD= ${LOCALBASE}/bin/ilrun .if defined(WITH_OPTIMIZED_CSFLAGS) -CSFLAGS=-O2 +CSFLAGS+=-O2 +.endif + +.if defined(PNET_STRAP_BIN) || defined(PNET_STRAP_SBIN) + +PNET_STRAP_SUFX?= .exe +PNET_BIN_WRKDIR?= ${WRKDIR}/PNET_STRAP/bin +PNET_SBIN_WRKDIR?= ${WRKDIR}/PNET_STRAP/sbin + +.for strap in ${PNET_STRAP_BIN} +PLIST_FILES+= bin/${strap} +.endfor +.for strap in ${PNET_STRAP_SBIN} +PLIST_FILES+= sbin/${strap} +.endfor + +pre-patch: pnet-strap +pnet-strap: + @${MKDIR} ${PNET_BIN_WRKDIR} + @${MKDIR} ${PNET_SBIN_WRKDIR} + +.for strap in ${PNET_STRAP_BIN} + @${ECHO_CMD} "#!${SH}" >> ${PNET_BIN_WRKDIR}/${strap} + @${ECHO_CMD} "${ILRUN_CMD} ${ILRUN_FLAGS} ${PREFIX}/bin/${strap}${PNET_STRAP_SUFX}" >> ${PNET_BIN_WRKDIR}/${strap} +.endfor +.for strap in ${PNET_STRAP_SBIN} + @${ECHO_CMD} -n "#!${SH}" >> ${PNET_SBIN_WRKDIR}/${strap} + @${EHCO_CMD} -n "${ILRUN_CMD} ${ILRUN_FLAGS} ${PREFIX}/sbin/${strap}${PNET_STRAP_SUFX}" >> ${PNET_SBIN_WRKDIR}/${strap} +.endfor + +post-install: pnet-strap-install +pnet-strap-install: +.for strap in ${PNET_STRAP_BIN} + @${INSTALL_SCRIPT} ${PNET_BIN_WRKDIR}/${strap} ${PREFIX}/bin +.endfor +.for strap in ${PNET_STRAP_SBIN} + @${INSTALL_SCRIPT} ${PNET_SBIN_WRKDIR}/${strap} ${PREFIX}/sbin +.endfor .endif pre-everything:: post-everything === games/dotgnu-nim == diff -ruN games/dotgnu-nim.orig/Makefile games/dotgnu-nim/Makefile --- games/dotgnu-nim.orig/Makefile Mon Mar 22 21:01:43 2004 +++ games/dotgnu-nim/Makefile Tue Mar 23 02:49:43 2004 @@ -23,22 +23,18 @@ WRKSRC= ${WRKDIR}/${PORTNAME} PORTDOCS= README \ screenshot.jpg -PNET_STRAP_BIN= nim -PLIST_FILES= bin/nim \ - bin/nim.exe +PNET_STRAP_BIN= nim +PLIST_FILES= bin/nim.exe STRIP= # Nothing To Strip .include "../../lang/pnet/Makefile.pnet" .include <bsd.port.pre.mk> -post-extract: ilrun-cp-strap - -post-patch: ilrun-do-strap +post-patch: @${REINPLACE_CMD} -e 's|cscc|cscc ${CSFLAGS}|' \ ${WRKSRC}/Makefile do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/${PNET_STRAP_BIN} ${PREFIX}/bin/nim @${INSTALL_PROGRAM} ${ILSTRIP_CMD} ${WRKSRC}/nim.exe ${PREFIX}/bin .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} State Changed From-To: open->feedback This does not run here: Uncaught exception: System.EntryPointNotFoundException: Entry point was not found at Xsharp.Font.CreateFont(String, Int32, FontStyle) at Xsharp.Font.CreateFont(String) at Xsharp.Font.CreateFromXLFD(String) at Xsharp.Application..ctor(String, String[]) at System.Drawing.Toolkit.DrawingToolkit..ctor() at System.Reflection.ClrConstructor.Invoke(BindingFlags, Binder, Object[], CultureInfo) at System.Reflection.ConstructorInfo.Invoke(Object[]) at System.Drawing.Toolkit.ToolkitManager.CreateDefaultToolkit() at System.Drawing.Toolkit.ToolkitManager.get_Toolkit() at System.Windows.Forms.Form.ClientToBounds(Size) at System.Windows.Forms.Control.SetClientSizeCore(Int32, Int32) at System.Windows.Forms.Control.set_ClientSize(Size) at com.thisiscool.csharp.nim.ui.MessageForm.LayoutControls() at com.thisiscool.csharp.nim.ui.MessageForm..ctor() at com.thisiscool.csharp.nim.ui.NimForm..ctor() at com.thisiscool.csharp.nim.ui.NimForm.Main() What did I wrong? Responsible Changed From-To: freebsd-ports-bugs->pav Handle Makefile -XPLIST_FILES= bin/nim \ - bin/nim.exe once pr-64750 is committed State Changed From-To: feedback->closed Feedback timeout. If you happen to make this work in future, please submit a new PR. Hello, I am facing the same problem for running Nim. Can you please let me know where to save following details: ======== Makefile -XPLIST_FILES= bin/nim \ - bin/nim.exe ======== Thank you. Regards, Dave |