Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174726998
D24972.id72152.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D24972.id72152.diff
View Options
Index: ports-mgmt/pkg/Makefile
===================================================================
--- ports-mgmt/pkg/Makefile
+++ ports-mgmt/pkg/Makefile
@@ -71,6 +71,13 @@
.endif
.endif
+.if !exists(/usr/libdata/pkgconfig/liblzma.pc)
+LIBLZMA_LIBS= -llzma
+.else
+LIBLZMA_PC!= ${EGREP} ^Libs /usr/libdata/pkgconfig/liblzma.pc
+LIBLZMA_LIBS= ${LIBLZMA_PC:M-l*}
+.endif
+
#define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :)
PKG_DEPENDS=
.undef INSTALLS_DEPENDS
@@ -81,6 +88,10 @@
PKG_BIN= ${WRKSRC}/src/pkg-static
.endif
+post-patch:
+ ${REINPLACE_CMD} -e "s|-llzma|${LIBLZMA_LIBS}|g" ${WRKSRC}/auto.def \
+ ${WRKSRC}/src/Makefile.autosetup ${WRKSRC}/tests/Makefile.autosetup
+
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/compat/pkg
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 6, 1:06 PM (4 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40298537
Default Alt Text
D24972.id72152.diff (776 B)
Attached To
Mode
D24972: Respect liblzma.pc if available.
Attached
Detach File
Event Timeline
Log In to Comment