Index: head/emulators/i386-wine-devel/Makefile =================================================================== --- head/emulators/i386-wine-devel/Makefile (revision 533163) +++ head/emulators/i386-wine-devel/Makefile (revision 533164) @@ -1,21 +1,37 @@ # Created by: David Naylor (dbn@FreeBSD.org) # $FreeBSD$ # Special bootstrapper to allow: # - i386 specific port to be slave to ${PORTSDIR}/emulators/wine-devel # - amd64 specific port to be normal port (based on binary package) PORTNAME= wine # define a dummy DISTVERSION to avoid errors with poudriere bulk -a # on architectures unsupported by this port DISTVERSION?= 0 PKGNAMEPREFIX= i386- PKGNAMESUFFIX= -devel CATEGORIES= emulators MAINTAINER= salvadore@FreeBSD.org COMMENT= 32-bit Microsoft Windows compatibility environment for 64-bit FreeBSD ONLY_FOR_ARCHS= i386 amd64 +CONFLICTS_INSTALL= wine-[0-9]* wine-devel-[0-9]* i386-wine-[0-9]* + +PKGINSTALL= ${.CURDIR}/files/pkg-install +PKGDEINSTALL= ${PKGINSTALL} + +distinfo-update: + ${RM} ${.CURDIR}/distinfo ${.CURDIR}/distinfo~ +.for osrel in 11 12 13 + ${MAKE} fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} + ${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} + ${CAT} ${.CURDIR}/distinfo >> ${.CURDIR}/distinfo~ + ${RM} ${.CURDIR}/distinfo +.endfor + ${SED} -e '2,$${' -e '/^TIMESTAMP/d' -e '}' distinfo~ > ${.CURDIR}/distinfo + ${RM} ${.CURDIR}/distinfo~ + .include Index: head/emulators/i386-wine-devel/Makefile.amd64 =================================================================== --- head/emulators/i386-wine-devel/Makefile.amd64 (revision 533163) +++ head/emulators/i386-wine-devel/Makefile.amd64 (revision 533164) @@ -1,85 +1,60 @@ # Created by: David Naylor # $FreeBSD$ DISTVERSION= 5.5 PORTEPOCH= 1 MASTER_SITES= LOCAL/salvadore/i386-wine-devel/${DIST_SUBDIR}/ DISTNAME= ${PKGNAME} -EXTRACT_SUFX= .txz DIST_SUBDIR= FreeBSD:${OSREL:C/\..*//}:amd64 LICENSE= LGPL21 LGPL3 LICENSE_COMB= dual LICENSE_FILE= ${WRKDIR}/LICENSE -OPTIONS_DEFINE= GECKO MONO -GECKO_DESC= Bundle Gecko MSI package for Wine -MONO_DESC= Bundle Mono MSI package for Wine - -CONFLICTS_INSTALL?= wine-[0-9]* wine-staging-[0-9]* wine-devel-[0-9]* \ - i386-wine-[0-9]* i386-wine-staging-[0-9]* - EXTRACT_AFTER_ARGS= -C / --exclude +COMPACT_MANIFEST --exclude +MANIFEST \ --exclude +MTREE_DIRS --exclude share/licenses/'*' \ --exclude libdata/ldconfig32/${PKGNAMEPREFIX}${PORTNAME} \ -s '|/usr/local|${STAGEDIR}${PREFIX}|gs' NO_BUILD= yes -SLAVEDIR?= ${.CURDIR} -PKGINSTALL= ${SLAVEDIR}/files/pkg-install -PKGDEINSTALL= ${PKGINSTALL} -PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message USE_LDCONFIG32= ${PREFIX}/lib32 ${PREFIX}/lib32/wine -USES= tar:xz desktop-file-utils +USES= tar:txz desktop-file-utils BUNDLE_LIBS= yes +PKGMESSAGE= ${WRKDIR}/pkg-message -GECKO_RUN_DEPENDS= ${DATADIR}/gecko/wine-gecko-2.47.1-x86.msi:emulators/wine-gecko-devel -MONO_RUN_DEPENDS= ${DATADIR}/mono/wine-mono-4.9.4.msi:emulators/wine-mono-devel - .for osrel in 11 12 13 .if ${OSREL:C/\..*//} == ${osrel} PLIST_SUB+= OSREL${osrel}="" PLIST_SUB+= NOOSREL${osrel}="@comment " .if ${PKGNAMESUFFIX} == -devel PLIST_SUB+= DEVEL="" PLIST_SUB+= OSREL${osrel}-DEVEL="" .else PLIST_SUB+= DEVEL="@comment " PLIST_SUB+= OSREL${osrel}-DEVEL="@comment " .endif .else PLIST_SUB+= OSREL${osrel}="@comment " PLIST_SUB+= OSREL${osrel}-DEVEL="@comment " PLIST_SUB+= NOOSREL${osrel}="" .endif .endfor .if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000) && !(${OSVERSION} >= 1201000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300084 && ${OSVERSION} < 1400000)) IGNORE= binaries compiled for FreeBSD 11.3+, 12.1+ and 13.0-CURRENT (OSVERSION >= 1300084) only -DISTFILES= .endif +OPTIONS_DEFINE= GECKO MONO +GECKO_DESC= Bundle Gecko MSI package for Wine +MONO_DESC= Bundle Mono MSI package for Wine + +GECKO_RUN_DEPENDS= ${DATADIR}/gecko/wine-gecko-2.47.1-x86.msi:emulators/wine-gecko-devel +MONO_RUN_DEPENDS= ${DATADIR}/mono/wine-mono-4.9.4.msi:emulators/wine-mono-devel + do-extract: @${RM} -r ${WRKDIR} @${MKDIR} ${WRKDIR} ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} -C ${WRKDIR} --include '/usr/local/share/licenses/${DISTNAME}/LICENSE' -s '|/usr/local/share/licenses/${DISTNAME}/||g' do-install: ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS} - -${PLIST}: checksum - ${TAR} -tf ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS} > /dev/null - ${TAR} -tf ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS} | ${GREP} -v '/$$\|ldconfig32' | ${SED} 's|/usr/local/||g' | sort > ${PLIST} - -port-update: - ${RM} ${SLAVEDIR}/distinfo ${SLAVEDIR}/distinfo~ ${SLAVEDIR}/pkg-plist.* -.for osrel in 11 12 13 - ${MAKE} fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} - ${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} - ${CAT} ${SLAVEDIR}/distinfo >> ${SLAVEDIR}/distinfo~ - ${RM} ${SLAVEDIR}/distinfo - ${MAKE} pkg-plist.${osrel}${suffix:tu} PLIST=pkg-plist.${osrel}${suffix:tu} OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel} -.endfor - ${SED} -e '2,$${' -e '/^TIMESTAMP/d' -e '}' distinfo~ > ${SLAVEDIR}/distinfo - python ${FILESDIR}/mergeplist.py ${SLAVEDIR}/pkg-plist.* > ${PLIST} - ${RM} ${SLAVEDIR}/distinfo~ ${SLAVEDIR}/pkg-plist.* Index: head/emulators/i386-wine-devel/Makefile.i386 =================================================================== --- head/emulators/i386-wine-devel/Makefile.i386 (revision 533163) +++ head/emulators/i386-wine-devel/Makefile.i386 (revision 533164) @@ -1,74 +1,68 @@ # Created by: David Naylor # $FreeBSD$ # Use the wine port to do most of the heavy lifting -SLAVEDIR?= ${.CURDIR} -MASTERDIR= ${SLAVEDIR}/../wine-devel -PKGINSTALL= ${SLAVEDIR}/files/pkg-install -PKGDEINSTALL= ${PKGINSTALL} +MASTERDIR= ${.CURDIR}/../wine-devel RUN_DEPENDS= mesa-dri>0:graphics/mesa-dri -CONFLICTS_INSTALL?= wine-[0-9]* wine-staging-[0-9]* wine-devel-[0-9]* \ - i386-wine-[0-9]* i386-wine-staging-[0-9]* - ACTUAL-PACKAGE-DEPENDS= ${DO_NADA} WINELIBDIR= ${PREFIX}/lib32 CONFIGURE_ARGS+= --bindir=${PREFIX}/bin32 --libdir=${WINELIBDIR} PLIST_REINPLACE+= winelib PLIST_REINPLACE_WINELIB= s!lib/!lib32/!g WINE_SLAVE_BUILD= yes USE_LDCONFIG32= ${WINELIBDIR} ${WINELIBDIR}/wine BUNDLE_LIBS= yes .if !defined(WINE_CROSS_BUILD) IGNORE= This port is not for consumption on FreeBSD/i386. To cross-build for FreeBSD/amd64: make -DWINE_CROSS_BUILD .endif # Hook into post-install and do some adapting to make i386 binaries work nicely # under FreeBSD/amd64 post-install-script: # Fix pkg-plist references ${REINPLACE_CMD} -e 's!lib/!lib32/!g' ${TMPPLIST} # Install bounce script to access the 32-bit executables - ${INSTALL_SCRIPT} ${SLAVEDIR}/files/binbounce ${STAGEDIR}${PREFIX}/bin/wine + ${INSTALL_SCRIPT} ${.CURDIR}/files/binbounce ${STAGEDIR}${PREFIX}/bin/wine for i in `${GREP} ^bin ${TMPPLIST} | ${XARGS} -n1 basename` ; do \ [ "$${i}" = "wine" ] || ${LN} -f ${STAGEDIR}${PREFIX}/bin/wine ${STAGEDIR}${PREFIX}/bin/$${i} ; \ ${ECHO_CMD} bin32/$${i} >> ${TMPPLIST} ; \ done # Install libGL ${MKDIR} ${STAGEDIR}${PREFIX}/lib32/.libGL/dri ${INSTALL_DATA} ${LOCALBASE}/lib/libGL.so.1 ${STAGEDIR}${PREFIX}/lib32/.libGL/ ${ECHO_CMD} lib32/.libGL/libGL.so.1 >> ${TMPPLIST} # Install dri libraries (internal libGL requirements) for i in ${LOCALBASE}/lib/dri/*.so; do \ ${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/lib32/.libGL/dri/ ; \ ${ECHO_CMD} lib32/.libGL/dri/$${i##*/} >> ${TMPPLIST} ; \ done # Find all soft dependencies (via strings(1)) ${GREP} -v '[@%]' ${TMPPLIST} | ${SED} "s!^!${STAGEDIR}${PREFIX}/!g" | \ ${XARGS} -n1 file -F' ' | ${GREP} ELF | ${CUT} -f1 -d' ' | ${XARGS} strings | \ ${GREP} '^lib.*\.so' | ${SORT} -u > ${WRKDIR}/winesoftlibs for i in `${CAT} ${WRKDIR}/winesoftlibs` ; do \ if [ -e ${LOCALBASE}/lib/$${i} ] && [ -z "`${GREP} $${i} ${TMPPLIST}`" ]; then \ ${INSTALL_DATA} ${LOCALBASE}/lib/$${i} ${STAGEDIR}${PREFIX}/lib32/ ; \ ${ECHO_CMD} lib32/$${i} >> ${TMPPLIST} ; \ fi ; \ done # Find all libraries that are linked too (via ldd(1)) ${GREP} -v '[@%]' ${TMPPLIST} | ${SED} "s!^!${STAGEDIR}${PREFIX}/!g" | \ ${XARGS} -n1 file -F' ' | ${GREP} ELF | ${CUT} -f1 -d' ' | \ env LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib32:${LD_LIBRARY_PATH} ${XARGS} ldd -f '%p\n' \ | ${SORT} -u | ${GREP} -v '^\(/usr\)\?/lib' | ${GREP} -v "^${STAGEDIR}${PREFIX}/lib32/libwine.so" \ | ${GREP} -v "^${STAGEDIR}${PREFIX}/lib32/wine" > ${WRKDIR}/winelibs for i in `${CAT} ${WRKDIR}/winelibs` ; do \ if [ -z "`${GREP} $${i##*/} ${TMPPLIST}`" ]; then \ ${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/lib32/ ; \ ${ECHO_CMD} lib32/$${i##*/} >> ${TMPPLIST} ; \ fi ; \ done # Install nvidia patching script - ${INSTALL_SCRIPT} ${SLAVEDIR}/files/nvidia.sh ${STAGEDIR}${DATADIR}/patch-nvidia.sh + ${INSTALL_SCRIPT} ${.CURDIR}/files/nvidia.sh ${STAGEDIR}${DATADIR}/patch-nvidia.sh ${ECHO_CMD} ${DATADIR:S|$(PREFIX)/||}/patch-nvidia.sh >> ${TMPPLIST} .include "${MASTERDIR}/Makefile" Index: head/emulators/i386-wine-devel/files/mergeplist.py =================================================================== --- head/emulators/i386-wine-devel/files/mergeplist.py (revision 533163) +++ head/emulators/i386-wine-devel/files/mergeplist.py (nonexistent) @@ -1,133 +0,0 @@ -#!/usr/bin/env python2 - -import sys - -# -# added peek() method -import collections - -class OrderedSet(collections.MutableSet): - - def __init__(self, iterable=None): - self.end = end = [] - end += [None, end, end] # sentinel node for doubly linked list - self.map = {} # key --> [key, prev, next] - if iterable is not None: - self |= iterable - - def __len__(self): - return len(self.map) - - def __contains__(self, key): - return key in self.map - - def add(self, key): - if key not in self.map: - end = self.end - curr = end[1] - curr[2] = end[1] = self.map[key] = [key, curr, end] - - def discard(self, key): - if key in self.map: - key, prev, next = self.map.pop(key) - prev[2] = next - next[1] = prev - - def peek(self, last=False): - end = self.end - curr = end[1] if last else end[2] - if curr is not end: - return curr[0] - raise IndexError("OrderedSet is empty, cannot peek item") - - def __iter__(self): - end = self.end - curr = end[2] - while curr is not end: - yield curr[0] - curr = curr[2] - - def __reversed__(self): - end = self.end - curr = end[1] - while curr is not end: - yield curr[0] - curr = curr[1] - - def pop(self, last=False): - if not self: - raise KeyError('set is empty') - key = self.end[1][0] if last else self.end[2][0] - self.discard(key) - return key - - def __repr__(self): - if not self: - return '%s()' % (self.__class__.__name__,) - return '%s(%r)' % (self.__class__.__name__, list(self)) - - def __eq__(self, other): - if isinstance(other, OrderedSet): - return len(self) == len(other) and list(self) == list(other) - return set(self) == set(other) -# - -def main(plists): - prev = prev_short = None - for line in gen_list(plists): - if line.startswith("%%"): - line_short = line.split("%%", 3)[1:] - line_short = "%%%%%s%%%%%s" % (line_short[0].split("-", 2)[0], line_short[1]) - if prev_short == line_short: - print(line_short) - line = line_short = None - elif prev is not None: - print(prev) - prev, prev_short = line, line_short - else: - if prev is not None: - print(prev) - prev = prev_short = None - print line - if prev is not None: - print(prev) - -def gen_list(plists): - plists_len = len(plists) - plists.sort(key=lambda x: int(x.rsplit('.', 2)[-1].split('-', 2)[0])) - names = ["OSREL" + plist.rsplit('.', 2)[-1] for plist in plists] - for i in range(plists_len): - with open(plists[i], 'r') as file: - plists[i] = OrderedSet(line.strip() for line in file.readlines()) - empty = sum(len(plist) == 0 for plist in plists) - while empty < plists_len: - # Test if the top of the plists are all common - if not empty: - line = plists[0].peek() - if not empty and all(line == plist.peek() for plist in plists): - yield line - for plist in plists: - plist.pop() - else: - # Find which of the plists have non-common lines - lines = {} - for i in range(plists_len): - while len(plists[i]) and not all(plists[i].peek() in plist for plist in plists): - lines.setdefault(plists[i].pop(), []).append(names[i]) - for line in sorted(lines.keys()): - suffix = lines[line][0].split('-', 2) - suffix = len(suffix) == 2 and suffix[-1] - single_suffix = False - if suffix: - plists_suffix_len = sum(1 for name in names if name.endswith(suffix)) - single_suffix = plists_suffix_len == sum(1 for _ in lines[line]) and \ - all(name.split('-', 2)[-1] == suffix for name in lines[line]) - if single_suffix: - yield "%%" + suffix + "%%" + line - else: - for name in lines[line]: - yield "%%" + name + "%%" + line - empty = sum(len(plist) == 0 for plist in plists) - -if __name__ == '__main__': - main(sys.argv[1:]) Property changes on: head/emulators/i386-wine-devel/files/mergeplist.py ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property