Index: /usr/ports/archivers/paq/Makefile =================================================================== --- /usr/ports/archivers/paq/Makefile (revision 414574) +++ /usr/ports/archivers/paq/Makefile (working copy) @@ -55,7 +55,6 @@ exe_jo.cpp jpeg_jo.cpp lzpre.cpp lzppre.cpp readme_bwt.txt \ readme_bwt_j3.txt readme_exe_j1.txt readme_lazy210.txt zpsfx.cpp READMES+= bwt_j3 exe_j1 lazy210 -EXTRA_PATCHES+= ${FILESDIR}/patch_zpsfx.cpp .endif WDATA= bmp_j4.cfg bwt_j3.cfg bwt_slowmode1_1GB_block.cfg \ bwt_slowmode1_256MB_block.cfg bwt_slowmode1_4MB_block.cfg \ Index: /usr/ports/archivers/paq/files/patch-zpsfx.cpp =================================================================== --- /usr/ports/archivers/paq/files/patch-zpsfx.cpp (revision 0) +++ /usr/ports/archivers/paq/files/patch-zpsfx.cpp (working copy) @@ -0,0 +1,77 @@ +--- zpsfx.cpp.orig 2012-04-09 04:01:23.000000000 -0400 ++++ zpsfx.cpp 2012-04-09 04:02:25.000000000 -0400 +@@ -16,19 +16,38 @@ + the executable smaller. -DNDEBUG turns off run time checks. + To convert a ZPAQ archive to a self extracting archive: + ++On Windows: ++ + copy/b zpsfx.exe+zpsfx.tag+archive.zpaq archive.exe + ++On FreeBSD(the choice of archive name is discretionary): ++ ++ cat zpsfx zpsfx.tag archive.zpaq > archive.sfx ++ + zpsfx.tag is a 13 byte file used to mark the start of the compressed data + that is appended. Alternatively, zpaq with the "t" modifier will append + the same tag ("a" appends). + ++On Windows: ++ + copy zpsfx.exe archive.exe + zpaq ta archive.exe files... + ++On FreeBSD: ++ ++ cp zpsfx archive.sfx ++ zpaq ta archive.sfx files... ++ + To extract: + ++On Windows: ++ + archive.exe + ++On FreeBSD: ++ ++ archive.sfx ++ + The program reads itself and decompresses the appended archive. + You must enter the .exe extension as shown. If the file is not in + the current folder then you need to specify the path. The PATH environment +@@ -44,7 +63,11 @@ + #include + #include + #include ++#ifdef unix ++#include ++#else + #include ++#endif + + // An error handler is required as shown in this example. libzpaq will + // call it with an English language message in case of a fatal error. +@@ -96,7 +119,11 @@ + + // Return '/' in Linux or '\' in Windows + char slash() { ++#ifdef unix ++ return '/'; ++#else + return '\\'; ++#endif + } + + // Create directories as needed. For example if path="/tmp/foo/bar" +@@ -106,7 +133,11 @@ + for (int i=0; i archive.sfx -+ - zpsfx.tag is a 13 byte file used to mark the start of the compressed data - that is appended. Alternatively, zpaq with the "t" modifier will append - the same tag ("a" appends). - -+On Windows: -+ - copy zpsfx.exe archive.exe - zpaq ta archive.exe files... - -+On FreeBSD: -+ -+ cp zpsfx archive.sfx -+ zpaq ta archive.sfx files... -+ - To extract: - -+On Windows: -+ - archive.exe - -+On FreeBSD: -+ -+ archive.sfx -+ - The program reads itself and decompresses the appended archive. - You must enter the .exe extension as shown. If the file is not in - the current folder then you need to specify the path. The PATH environment -@@ -44,7 +63,11 @@ - #include - #include - #include -+#ifdef unix -+#include -+#else - #include -+#endif - - // An error handler is required as shown in this example. libzpaq will - // call it with an English language message in case of a fatal error. -@@ -96,7 +119,11 @@ - - // Return '/' in Linux or '\' in Windows - char slash() { -+#ifdef unix -+ return '/'; -+#else - return '\\'; -+#endif - } - - // Create directories as needed. For example if path="/tmp/foo/bar" -@@ -106,7 +133,11 @@ - for (int i=0; i