diff options
author | makc <makc@FreeBSD.org> | 2010-07-12 02:56:14 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2010-07-12 02:56:14 +0800 |
commit | 47dbdae0fffdf3db61c9e58c65927c997f2cf15b (patch) | |
tree | bb71f0878469a44d0b3e7ec660b225c6ffb5bc50 /misc/xdelta3 | |
parent | 4706a4e201776daa5c8c1de9761eee3d74b5a91e (diff) | |
download | freebsd-ports-gnome-47dbdae0fffdf3db61c9e58c65927c997f2cf15b.tar.gz freebsd-ports-gnome-47dbdae0fffdf3db61c9e58c65927c997f2cf15b.tar.zst freebsd-ports-gnome-47dbdae0fffdf3db61c9e58c65927c997f2cf15b.zip |
Update to 3.0y
PR: ports/147642
Submitted by: Anonymous <swell.k at gmail.com>
Diffstat (limited to 'misc/xdelta3')
-rw-r--r-- | misc/xdelta3/Makefile | 46 | ||||
-rw-r--r-- | misc/xdelta3/distinfo | 6 |
2 files changed, 38 insertions, 14 deletions
diff --git a/misc/xdelta3/Makefile b/misc/xdelta3/Makefile index 0b7b62a2181b..34fb90471c2c 100644 --- a/misc/xdelta3/Makefile +++ b/misc/xdelta3/Makefile @@ -6,22 +6,46 @@ # PORTNAME= xdelta -PORTVERSION= 3.0u -CATEGORIES= misc devel -MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} -DISTNAME= ${PORTNAME}${PORTVERSION} +DISTVERSION= 3.0y +PORTREVISION?= 0 +PORTEPOCH?= 1 +CATEGORIES?= misc devel +MASTER_SITES= GOOGLE_CODE +DISTNAME= ${PORTNAME}${DISTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= Open-source binary diff, VCDIFF/RFC 3284 delta compression +MAINTAINER?= ports@FreeBSD.org +COMMENT?= Open-source binary diff, VCDIFF/RFC 3284 delta compression -ALL_TARGET= xdelta3 USE_GMAKE= yes -PLIST_FILES= bin/xdelta3 -post-patch: - ${REINPLACE_CMD} -E -e 's/^(CFLAGS)=/\1+=/' ${WRKSRC}/Makefile +.include <bsd.port.pre.mk> + +.if ${SLAVE_PORT:Mno} +PLIST_FILES= bin/xdelta3 +.endif +post-patch: .SILENT + ${REINPLACE_CMD} -e '/^CFLAGS/s/=/+&/' \ + -e 's/-O3//; s/-g//' \ + -e '/^all:/,/^$$/ { s/:.*/: xdelta3/; /testing/d; }' \ + ${WRKSRC}/Makefile +.if ${SLAVE_PORT:Myes} + ${REINPLACE_CMD} -i.slave.bak -e '/^SWIG_FLAGS/s/=/& `python$$(PYVER)-config --cflags` -fpic/' \ + -e '/^xdelta3module\.so:/,/^$$/ { s/ld/$$(CC)/; \ + s/.*libpython.*\.so.*/`python$$(PYVER)-config --ldflags`/; \ + /-lc/d; }' \ + -e 's|/usr/include/python$$(PYVER)|${PYTHON_INCLUDEDIR}|' \ + -e 's|/usr/lib/python$$(PYVER)|${PYTHON_LIBDIR}|' \ + -e 's|/usr/lib/libpython|${LOCALBASE}/lib/libpython|' \ + -e '/^all:/s/:.*/: swigtgt/' \ + -e '/^PYVER/s/=.*/= ${PYTHON_VER}/' \ + ${WRKSRC}/Makefile + ${REINPLACE_CMD} -e "/^REL/s/=.*/='${PORTVERSION}'/" \ + -e "/extra_compile_args.*\[/,/]/ { s/'-O3',//; s/'-g',//; }" \ + ${WRKSRC}/${PYSETUP} +.else do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xdelta3 ${PREFIX}/bin/ +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/misc/xdelta3/distinfo b/misc/xdelta3/distinfo index 7ac4d74218b0..770fbef56a01 100644 --- a/misc/xdelta3/distinfo +++ b/misc/xdelta3/distinfo @@ -1,3 +1,3 @@ -MD5 (xdelta3.0u.tar.gz) = 361e9be8d5a833bb40050c779d26066d -SHA256 (xdelta3.0u.tar.gz) = 218c5fc7e44beae2937a1af5d6fe9896350ac5224a8df1b32a868e42f96dc5d2 -SIZE (xdelta3.0u.tar.gz) = 219264 +MD5 (xdelta3.0y.tar.gz) = 8246e6ba89a5a6b9efc24f9552fcf940 +SHA256 (xdelta3.0y.tar.gz) = 13fc809e51016d5633b12029efed2dd0c8cb050154809684938dc291faf16a79 +SIZE (xdelta3.0y.tar.gz) = 228808 |