diff --git a/archivers/libunrar/Makefile b/archivers/libunrar/Makefile index 9a65286e67c4..10fec073ec79 100644 --- a/archivers/libunrar/Makefile +++ b/archivers/libunrar/Makefile @@ -13,16 +13,15 @@ COMMENT= Library to work with RAR archives WRKSRC= ${WRKDIR}/unrar -NO_STAGE= yes USES= gmake MAKEFILE= makefile.unix ALL_TARGET= lib USE_LDCONFIG= yes do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/libunrar.so.3 ${PREFIX}/lib/ - cd ${PREFIX}/lib && ${LN} -sf libunrar.so.3 libunrar.so - ${MKDIR} ${PREFIX}/include/libunrar3 - ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${PREFIX}/include/libunrar3/dll.hpp + ${INSTALL_LIB} ${WRKSRC}/libunrar.so.3 ${STAGEDIR}${PREFIX}/lib/ + cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libunrar.so.3 libunrar.so + ${MKDIR} ${STAGEDIR}${PREFIX}/include/libunrar3 + ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${STAGEDIR}${PREFIX}/include/libunrar3/dll.hpp .include