pkgsrc-WIP-changes archive

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

wine64: Adapt Makefile to use wine wrapper



Module Name:	pkgsrc-wip
Committed By:	Naveen Narayanan <zerous@nocebo.space>
Pushed By:	zerous
Date:		Sun Aug 4 21:37:13 2019 +0200
Changeset:	a7b36f372725d313382d4b7109d3651b93098641

Modified Files:
	wine64/Makefile
	wine64/PLIST

Log Message:
wine64: Adapt Makefile to use wine wrapper

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a7b36f372725d313382d4b7109d3651b93098641

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

diffstat:
 wine64/Makefile | 9 ++++++++-
 wine64/PLIST    | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diffs:
diff --git a/wine64/Makefile b/wine64/Makefile
index 441030eb88..d160f87531 100644
--- a/wine64/Makefile
+++ b/wine64/Makefile
@@ -33,7 +33,7 @@ NOT_PAX_MPROTECT_SAFE+=	bin/wine64
 
 # XXX: pkgsrc complains that i386.so.2 is missing
 CHECK_SHLIBS_SKIP+=	emul/netbsd32/lib/wine*
-CHECK_SHLIBS_SKIP+=	bin/wine
+CHECK_SHLIBS_SKIP+=	libexec/wine
 
 BUILD32=		${WRKSRC}/wine32
 BUILD64=		${WRKSRC}/wine64
@@ -54,6 +54,13 @@ do-install:
 	cd ${BUILD32} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${MAKE} ${INSTALL_MAKE_FLAGS} install
 	cd ${BUILD64} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} ${MAKE} ${INSTALL_MAKE_FLAGS} install
 
+post-install:
+	${SED} -e 's,@PREFIX@,${PREFIX},g' <${FILESDIR}/wine.in \
+	>${WRKDIR}/wine
+	${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/libexec
+	${MV} ${DESTDIR}${PREFIX}/bin/wine ${DESTDIR}${PREFIX}/libexec
+	${INSTALL_SCRIPT} ${WRKDIR}/wine ${DESTDIR}${PREFIX}/bin/wine
+
 .include "../../graphics/freetype2/buildlink3.mk"
 .include "../../graphics/giflib/buildlink3.mk"
 .include "../../graphics/lcms2/buildlink3.mk"
diff --git a/wine64/PLIST b/wine64/PLIST
index bc8f53c7f5..e9c9c2f498 100644
--- a/wine64/PLIST
+++ b/wine64/PLIST
@@ -4828,6 +4828,7 @@ lib/wine/xmllite.dll.so
 lib/wine/xolehlp.dll.so
 lib/wine/xpsprint.dll.so
 lib/wine/xpssvcs.dll.so
+libexec/wine
 man/de.UTF-8/man1/wine.1
 man/de.UTF-8/man1/winemaker.1
 man/de.UTF-8/man1/wineserver.1


Home | Main Index | Thread Index | Old Index