View | Details | Raw Unified | Return to bug 200142 | Differences between
and this patch

Collapse All | Expand All

(-)b/ports-mgmt/pkg/Makefile (-1 / +11 lines)
Lines 71-76 pre-everything:: Link Here
71
.endif
71
.endif
72
.endif
72
.endif
73
73
74
.if !exists(/usr/libdata/pkgconfig/liblzma.pc)
75
LIBLZMA_LIBS=	-llzma
76
.else
77
LIBLZMA_PC!=	${EGREP} ^Libs /usr/libdata/pkgconfig/liblzma.pc
78
LIBLZMA_LIBS=	${LIBLZMA_PC:M-l*}
79
.endif
80
74
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :)
81
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :)
75
PKG_DEPENDS=
82
PKG_DEPENDS=
76
.undef INSTALLS_DEPENDS
83
.undef INSTALLS_DEPENDS
Lines 81-86 PKG_DEPENDS= Link Here
81
PKG_BIN=	${WRKSRC}/src/pkg-static
88
PKG_BIN=	${WRKSRC}/src/pkg-static
82
.endif
89
.endif
83
90
91
post-patch:
92
	${REINPLACE_CMD} -e "s|-llzma|${LIBLZMA_LIBS}|g" ${WRKSRC}/auto.def \
93
		${WRKSRC}/src/Makefile.autosetup ${WRKSRC}/tests/Makefile.autosetup
94
84
post-install:
95
post-install:
85
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
96
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
86
97
87
- 

Return to bug 200142