c2ec2ad0df
Previous commits uncovered another error: [00:02:28] Warning: (emulators/i386-wine-devel): Error: Duplicated origin for -: emulators/i386-wine-devel AND emulators/i386-wine. Rerun with -v to see which ports are depending on these. This is because PORTNAME and PORTVERSION are not defined. Submitted by: salvadore (maintainer)
78 lines
2.8 KiB
Makefile
78 lines
2.8 KiB
Makefile
# Created by: David Naylor <dbn@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
DISTVERSION= 3.0.4
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
MASTER_SITES= LOCAL/dbn/repos/wine/${DIST_SUBDIR}/
|
|
DISTNAME= ${PKGNAME}
|
|
EXTRACT_SUFX= .txz
|
|
DIST_SUBDIR= freebsd:${OSREL:C/\..*//}:x86:64
|
|
|
|
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-staging-[0-9]* i386-wine-devel-[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
|
|
BUNDLE_LIBS= yes
|
|
|
|
GECKO_RUN_DEPENDS= ${DATADIR}/gecko/wine-gecko-2.47.1-x86.msi:emulators/wine-gecko
|
|
MONO_RUN_DEPENDS= ${DATADIR}/mono/wine-mono-4.9.4.msi:emulators/wine-mono
|
|
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
.for osrel in 11 12 13
|
|
.if ${OSREL:C/\..*//} == ${osrel}
|
|
PLIST_SUB+= OSREL${osrel}=""
|
|
.else
|
|
PLIST_SUB+= OSREL${osrel}="@comment "
|
|
.endif
|
|
.endfor
|
|
|
|
.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1103000 && ${OSVERSION} < 1200000) && !(${OSVERSION} >= 1200086 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300003 && ${OSVERSION} < 1400000))
|
|
IGNORE= binaries compiled for FreeBSD 11.3+, 12.0+ and -current only
|
|
DISTFILES=
|
|
.endif
|
|
|
|
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} | ${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} PKGNAMESUFFIX=${suffix}
|
|
.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.*
|