Hello,

On 2022/11/16 02:06:46 +0100, tux0r <tu...@rosaelefanten.org> wrote:
> Finally, a new major version. Updated port attached.
> 
> tux0r.

here's a slightly tweaked diff.  I didn't know that you could use make
even without a Makefile in a 'simple' case like this (one source file,
one executable), but I'd prefer to be more explicit and just run c++.

To be fair, there's a Makefile that we could use in
NONWINDOWS/Makefile, but it would need some tweaks anyway and it's
just easier to build it by ourselves I guess.

I think -lm is needed on some arches/compilers.

a final note about the license: thanks for checking, last time i
looked i stopped at the first lines in the file...  Obviously IANAL
but i think they're all... compatible?

Will wait a few days before commiting this to see if anybody objects.

Otherwise, make test works and a simple usage (try to add a few files,
list all the versions, extract) works.

Thanks!

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/archivers/zpaqfranz/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    6 Sep 2022 07:07:39 -0000       1.6
+++ Makefile    18 Nov 2022 09:07:19 -0000
@@ -2,28 +2,29 @@ COMMENT =     journaling archiver for increm
 
 GH_ACCOUNT =   fcorbelli
 GH_PROJECT =   zpaqfranz
-GH_TAGNAME =   55.14
+GH_TAGNAME =   56.1
 
 CATEGORIES =   archivers
 MAINTAINER =   tux0r <tu...@rosaelefanten.org>
 
-# Public Domain
+# various: public domain, MIT, zlib, BSD 2-clause, Apache 2.0
 PERMIT_PACKAGE =       yes
 
-FIX_CRLF_FILES =       Makefile zpaqfranz.cpp
-
 COMPILER=      base-clang ports-gcc base-gcc
 
 WANTLIB =      ${COMPILER_LIBCXX} c m
 
-MAKE_FLAGS +=  CXX="${CXX}" \
-               CXXFLAGS="${CXXFLAGS}" \
-               CPPFLAGS="${CPPFLAGS}"
+CFLAGS +=      -Dunix
+LDFLAGS +=     -lm
+
+USE_WXNEEDED = Yes
 
-CPPFLAGS +=    -Dunix
-USE_WXNEEDED=  Yes
+do-build:
+       cd ${WRKSRC} && ${SET_ENV} ${MAKE_ENV} \
+               ${CXX} ${CFLAGS} -o zpaqfranz zpaqfranz.cpp ${LDFLAGS}
 
-post-install:
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/zpaqfranz ${PREFIX}/bin/
        ${INSTALL_MAN} ${WRKSRC}/man/zpaqfranz.1 ${PREFIX}/man/man1/
 
 do-test:
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/archivers/zpaqfranz/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo    5 Sep 2022 20:14:47 -0000       1.4
+++ distinfo    18 Nov 2022 08:48:47 -0000
@@ -1,2 +1,2 @@
-SHA256 (zpaqfranz-55.14.tar.gz) = NQu4rTUPFK5MEOypueG2kaAU4dXUGG54vI2ajgTMF6M=
-SIZE (zpaqfranz-55.14.tar.gz) = 10588313
+SHA256 (zpaqfranz-56.1.tar.gz) = PQNwOeVt0Zvw/xqhZy42NRrptFONopXGp2ylXhBWmY0=
+SIZE (zpaqfranz-56.1.tar.gz) = 3738177

Reply via email to