tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

archivers/xz builtin.mk



Hi,
   Can someone who understands builtin.mk files spot what I'm missing.

On current, which has liblzma built in, I'm trying to persuade a package to 
use the pkgsrc version (as the built in one doesn't have 
lzma_easy_encoder()).  I think I should be able to set "USE_XZ=yes" in the 
Makefile, but if I set that I still get pointed at the version in /usr/lib/

If however I set "PREFER.xz=pkgsrc" it does get the pkgsrc version.

--- Makefile    2010-11-04 22:34:17.000000000 +1300
+++ Makefile    2010-11-10 11:44:59.000000000 +1300
@@ -21,6 +21,11 @@
 CMAKE_ARGS+=   -DKDE_DISTRIBUTION_TEXT:STRING="NetBSD pkgsrc"
 CMAKE_ARGS+=   -DWITH_Avahi:BOOL=off
 
+CMAKE_ARGS+=   -DLIBLZMA_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.xz}/include
+CMAKE_ARGS+=   -
DLIBLZMA_LIBRARY:FILEPATH=${BUILDLINK_PREFIX.xz}/lib/liblzma.so
+USE_XZ=                yes     # NetBSD's builtin doesn't have 
lzma_easy_encoder()
+PREFER.xz=     pkgsrc
+
 MAKE_DIRS+=    ${PKG_SYSCONFDIR}/xdg/menus
 CONF_FILES+=   ${PREFIX}/share/examples/kdelibs4/applications.menu \
                ${PKG_SYSCONFDIR}/xdg/menus/applications.menu

cheers
mark


Home | Main Index | Thread Index | Old Index