pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/converters/dsk2rom



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Dec 21 23:30:21 UTC 2019

Modified Files:
        pkgsrc/converters/dsk2rom: distinfo
        pkgsrc/converters/dsk2rom/patches: patch-Makefile
            patch-pletter_pletter.cpp

Log Message:
Don't try to build header files. Fix C/C++ interaction.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/converters/dsk2rom/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/converters/dsk2rom/patches/patch-Makefile \
    pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/converters/dsk2rom/distinfo
diff -u pkgsrc/converters/dsk2rom/distinfo:1.1 pkgsrc/converters/dsk2rom/distinfo:1.2
--- pkgsrc/converters/dsk2rom/distinfo:1.1      Mon Aug 13 15:53:49 2018
+++ pkgsrc/converters/dsk2rom/distinfo  Sat Dec 21 23:30:21 2019
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2018/08/13 15:53:49 nia Exp $
+$NetBSD: distinfo,v 1.2 2019/12/21 23:30:21 joerg Exp $
 
 SHA1 (dsk2rom-0.80.tar.gz) = ed1ff7e18f9698cc1141197cb188de326a38b7b0
 RMD160 (dsk2rom-0.80.tar.gz) = 0d32fe2519013a77e6b28e0c4e833afc101fd6d8
 SHA512 (dsk2rom-0.80.tar.gz) = 846736ee6a552eaef48bfae76a123ec1dda4304f7e5ab09a5c70c939a1586c29b976e6cb55de0f75ed61e98be323f4be540ee5c4c172f5d5822c351406874fc2
 Size (dsk2rom-0.80.tar.gz) = 28727 bytes
-SHA1 (patch-Makefile) = e81bc8fbfe9dc02d82d216ccc57e3a36883eb7b4
-SHA1 (patch-pletter_pletter.cpp) = f478b46342b598af14e09a2cde8bcb762d9589e8
+SHA1 (patch-Makefile) = b3e27f2343af67b7bf3aa1f1488389e40887c9ad
+SHA1 (patch-pletter_pletter.cpp) = 2dd14d10119c1e5311db258de403ec653208ca42

Index: pkgsrc/converters/dsk2rom/patches/patch-Makefile
diff -u pkgsrc/converters/dsk2rom/patches/patch-Makefile:1.1 pkgsrc/converters/dsk2rom/patches/patch-Makefile:1.2
--- pkgsrc/converters/dsk2rom/patches/patch-Makefile:1.1        Mon Aug 13 15:53:49 2018
+++ pkgsrc/converters/dsk2rom/patches/patch-Makefile    Sat Dec 21 23:30:21 2019
@@ -1,11 +1,11 @@
-$NetBSD: patch-Makefile,v 1.1 2018/08/13 15:53:49 nia Exp $
+$NetBSD: patch-Makefile,v 1.2 2019/12/21 23:30:21 joerg Exp $
 
 Use native compiler for producing build executable, and
 CFLAGS from pkgsrc.
 
 --- Makefile.orig      2007-05-27 11:45:09.000000000 +0000
 +++ Makefile
-@@ -8,13 +8,10 @@ dsk2rom_e = dsk2rom
+@@ -8,21 +8,20 @@ dsk2rom_e = dsk2rom
  bin2h_e   = bin2h
  endif
  
@@ -20,11 +20,14 @@ CFLAGS from pkgsrc.
  
  pletter/pletter.o: pletter/pletter.cpp pletter/pletter.h
  
-@@ -22,7 +19,7 @@ dsk2rom.h: bin2h
+ dsk2rom.h: bin2h
        $(shell ./${bin2h_e} dsk2rom dsk2rom.rom dsk2rom.h)
  
- dsk2rom: dsk2rom.c dsk2rom.h pletter/pletter.o
+-dsk2rom: dsk2rom.c dsk2rom.h pletter/pletter.o
 -      $(CC) $(CFLAGS) $^ -o $(dsk2rom_e)
++dsk2rom.o: dsk2rom.c dsk2rom.h
++
++dsk2rom: dsk2rom.o pletter/pletter.o
 +      $(CXX) $(CFLAGS) $(LDFLAGS) $^ -o $(dsk2rom_e)
  
  clean:
Index: pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp
diff -u pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp:1.1 pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp:1.2
--- pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp:1.1     Mon Aug 13 15:53:49 2018
+++ pkgsrc/converters/dsk2rom/patches/patch-pletter_pletter.cpp Sat Dec 21 23:30:21 2019
@@ -1,6 +1,7 @@
-$NetBSD: patch-pletter_pletter.cpp,v 1.1 2018/08/13 15:53:49 nia Exp $
+$NetBSD: patch-pletter_pletter.cpp,v 1.2 2019/12/21 23:30:21 joerg Exp $
 
 Add missing includes.
+pletter is called from C code.
 
 --- pletter/pletter.cpp.orig   2007-05-27 11:18:42.000000000 +0000
 +++ pletter/pletter.cpp
@@ -14,3 +15,12 @@ Add missing includes.
  #include <string>
  using namespace std;
  
+@@ -306,7 +309,7 @@ int main(int argc, char *argv[]) {
+ 
+ //-----------------------------------------------------------------------------
+ 
+-void pletter( unsigned char*  input,  int  input_length,
++extern "C" void pletter( unsigned char*  input,  int  input_length,
+             unsigned char** output, int* output_length,
+             int pletmode  )
+ {



Home | Main Index | Thread Index | Old Index