Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= xdelta |
8 |
PORTNAME= xdelta |
9 |
DISTVERSION= 3.0y |
9 |
DISTVERSION= 3.0.0 |
10 |
PORTREVISION?= 0 |
10 |
PORTREVISION?= 0 |
11 |
PORTEPOCH?= 1 |
11 |
PORTEPOCH?= 1 |
12 |
CATEGORIES?= misc devel |
12 |
CATEGORIES?= misc devel |
Lines 17-22
MAINTAINER?= ports@FreeBSD.org
Link Here
|
17 |
COMMENT?= Open-source binary diff, VCDIFF/RFC 3284 delta compression |
17 |
COMMENT?= Open-source binary diff, VCDIFF/RFC 3284 delta compression |
18 |
|
18 |
|
19 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
|
|
20 |
PLIST_FILES?= bin/xdelta3 |
20 |
|
21 |
|
21 |
.include <bsd.port.pre.mk> |
22 |
.include <bsd.port.pre.mk> |
22 |
|
23 |
|
Lines 24-55
USE_GMAKE= yes
Link Here
|
24 |
BROKEN= Does not compile on sparc64 |
25 |
BROKEN= Does not compile on sparc64 |
25 |
.endif |
26 |
.endif |
26 |
|
27 |
|
27 |
.if ${SLAVE_PORT:Mno} |
28 |
post-patch: master-post-patch |
28 |
PLIST_FILES= bin/xdelta3 |
|
|
29 |
.endif |
30 |
|
29 |
|
31 |
post-patch: .SILENT |
30 |
master-post-patch: .SILENT |
32 |
${REINPLACE_CMD} -e '/^CFLAGS/s/=/+&/' \ |
31 |
${REINPLACE_CMD} -e '/^CFLAGS/s/=/+&/' \ |
33 |
-e 's/-O3//; s/-g//' \ |
32 |
-e 's/-O3//; s/-g//' \ |
34 |
-e '/^all:/,/^$$/ { s/:.*/: xdelta3/; /testing/d; }' \ |
33 |
-e '/^all:/,/^$$/ { s/:.*/: xdelta3/; s/make/$$(MAKE)/; }' \ |
35 |
${WRKSRC}/Makefile |
|
|
36 |
.if ${SLAVE_PORT:Myes} |
37 |
${REINPLACE_CMD} -i.slave.bak -e '/^SWIG_FLAGS/s/=/& `python$$(PYVER)-config --cflags` -fpic/' \ |
38 |
-e '/^xdelta3module\.so:/,/^$$/ { s/ld/$$(CC)/; \ |
39 |
s/.*libpython.*\.so.*/`python$$(PYVER)-config --ldflags`/; \ |
40 |
/-lc/d; }' \ |
41 |
-e 's|/usr/include/python$$(PYVER)|${PYTHON_INCLUDEDIR}|' \ |
42 |
-e 's|/usr/lib/python$$(PYVER)|${PYTHON_LIBDIR}|' \ |
43 |
-e 's|/usr/lib/libpython|${LOCALBASE}/lib/libpython|' \ |
44 |
-e '/^all:/s/:.*/: swigtgt/' \ |
45 |
-e '/^PYVER/s/=.*/= ${PYTHON_VER}/' \ |
46 |
${WRKSRC}/Makefile |
34 |
${WRKSRC}/Makefile |
47 |
${REINPLACE_CMD} -e "/^REL/s/=.*/='${PORTVERSION}'/" \ |
35 |
|
48 |
-e "/extra_compile_args.*\[/,/]/ { s/'-O3',//; s/'-g',//; }" \ |
36 |
.if ${SLAVE_PORT:Mno} |
49 |
${WRKSRC}/${PYSETUP} |
|
|
50 |
.else |
51 |
do-install: |
37 |
do-install: |
52 |
${INSTALL_PROGRAM} ${WRKSRC}/xdelta3 ${PREFIX}/bin/ |
38 |
${INSTALL_PROGRAM} ${WRKSRC}/xdelta3 ${PREFIX}/bin/ |
53 |
.endif |
39 |
.endif |
54 |
|
40 |
|
|
|
41 |
.if !target(test) |
42 |
test: build |
43 |
${WRKSRC}/xdelta3 test |
44 |
.endif |
45 |
|
46 |
.if !target(regression-test) |
47 |
regression-test: build |
48 |
${WRKSRC}/testing/xdelta3-regtest |
49 |
.endif |
50 |
|
55 |
.include <bsd.port.post.mk> |
51 |
.include <bsd.port.post.mk> |