pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/libunrar



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Jan 24 23:44:38 UTC 2024

Modified Files:
        pkgsrc/archivers/libunrar: Makefile

Log Message:
libunrar: install properly


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/archivers/libunrar/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/libunrar/Makefile
diff -u pkgsrc/archivers/libunrar/Makefile:1.1 pkgsrc/archivers/libunrar/Makefile:1.2
--- pkgsrc/archivers/libunrar/Makefile:1.1      Sun Sep  1 08:28:29 2013
+++ pkgsrc/archivers/libunrar/Makefile  Wed Jan 24 23:44:38 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/01 08:28:29 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2024/01/24 23:44:38 adam Exp $
 
 .include "../../archivers/unrar/Makefile.common"
 PKGNAME=       ${DISTNAME:S/^/lib/:S/src//}
@@ -7,10 +7,22 @@ BUILD_TARGET=         lib
 INSTALLATION_DIRS=     include lib
 CXXFLAGS+=             -DRARDLL
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${SHLIB_TYPE} == "dylib"
+SOEXT= dylib
+.else
+SOEXT= so
+.endif
+
 do-install:
        ${INSTALL_DATA} ${WRKSRC}/dll.hpp ${DESTDIR}${PREFIX}/include
        ${INSTALL_DATA} ${WRKSRC}/os.hpp ${DESTDIR}${PREFIX}/include
        ${INSTALL_DATA} ${WRKSRC}/raros.hpp ${DESTDIR}${PREFIX}/include
-       ${INSTALL_DATA} ${WRKSRC}/libunrar.so ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_LIB} ${WRKSRC}/libunrar.so ${DESTDIR}${PREFIX}/lib/libunrar.${SOEXT}
+.if ${OPSYS} == "Darwin"
+       install_name_tool -id ${PREFIX}/lib/libunrar.${SOEXT} \
+               ${DESTDIR}${PREFIX}/lib/libunrar.${SOEXT}
+.endif
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index