Changeset View
Changeset View
Standalone View
Standalone View
emulators/wine-devel/Makefile
Context not available. | |||||
DISTVERSION= 3.4 | DISTVERSION= 3.4 | ||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= emulators | CATEGORIES= emulators | ||||
MASTER_SITES= http://mirrors.ibiblio.org/wine/source/3.x/ \ | MASTER_SITES= http://mirrors.ibiblio.org/wine/source/3.x/:DEFAULT \ | ||||
SF/${PORTNAME}/Source | SF/${PORTNAME}/Source:DEFAULT | ||||
mat: No need to add `:DEFAULT`, it is the default. | |||||
PKGNAMESUFFIX?= -devel | PKGNAMESUFFIX= -devel | ||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | ||||
MAINTAINER?= gerald@FreeBSD.org | MAINTAINER= gerald@FreeBSD.org | ||||
COMMENT?= Microsoft Windows compatibility environment | COMMENT= Microsoft Windows compatibility environment | ||||
LICENSE= LGPL21 LGPL3 | LICENSE= LGPL21 LGPL3 | ||||
LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
Context not available. | |||||
prelink:sysutils/prelink | prelink:sysutils/prelink | ||||
LIB_DEPENDS= libxml2.so:textproc/libxml2 | LIB_DEPENDS= libxml2.so:textproc/libxml2 | ||||
CONFLICTS_INSTALL= wine-[0-9]* wine-staging-[0-9]* i386-wine-[0-9]* \ | CONFLICTS_INSTALL= wine-[0-9]* | ||||
i386-wine-staging-[0-9]* i386-wine-devel-[0-9]* | |||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS+=--verbose --disable-tests \ | CONFIGURE_ARGS=--verbose --disable-tests \ | ||||
--without-alsa --without-capi --without-dbus \ | --without-alsa --without-capi --without-dbus \ | ||||
--without-gettext --without-gettextpo \ | --without-gettext --without-gettextpo \ | ||||
--without-gphoto --without-gsm --without-gstreamer \ | --without-gphoto --without-gsm --without-gstreamer \ | ||||
Context not available. | |||||
--without-tiff \ | --without-tiff \ | ||||
--without-udev | --without-udev | ||||
CONFIGURE_ENV= CPPBIN="${CPP}" FLEX="${LOCALBASE}/bin/flex" | CONFIGURE_ENV= CPPBIN="${CPP}" FLEX="${LOCALBASE}/bin/flex" | ||||
WINELIBDIR?= ${PREFIX}/lib | WINELIBDIR= ${PREFIX}/lib | ||||
USES= bison compiler:c11 desktop-file-utils gmake shebangfix tar:xz | USES= bison compiler:c11 desktop-file-utils gmake shebangfix tar:xz | ||||
.if !defined(USE_LDCONFIG32) | .if !defined(WINE_WOW64) | ||||
USE_LDCONFIG= ${WINELIBDIR} ${WINELIBDIR}/wine | USE_LDCONFIG= ${WINELIBDIR} ${WINELIBDIR}/wine | ||||
.endif | .endif | ||||
SHEBANG_FILES= tools/make_requests tools/winemaker/winemaker \ | SHEBANG_FILES= tools/make_requests tools/winemaker/winemaker \ | ||||
Context not available. | |||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
PKGMESSAGE= ${WRKDIR}/pkg-message | PKGMESSAGE= ${WRKDIR}/pkg-message | ||||
.if !defined(WINE_WOW64) | |||||
PORTDATA= l_intl.nls wine.inf | PORTDATA= l_intl.nls wine.inf | ||||
.endif | |||||
OPTIONS_DEFINE= CUPS DOCS DOSBOX GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL STAGING V4L WINEMAKER X11 GECKO MONO | OPTIONS_DEFINE= CUPS DOCS DOSBOX GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL STAGING V4L WINEMAKER X11 GECKO MONO | ||||
OPTIONS_DEFAULT=GNUTLS X11 | OPTIONS_DEFAULT=GNUTLS X11 | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
STAGING_DESC= Include the Wine Staging patchset | |||||
DOSBOX_DESC= Use DOSBox to run MS-DOS programs | DOSBOX_DESC= Use DOSBox to run MS-DOS programs | ||||
LIBXSLT_DESC= Use libxslt (only used by msxml3.dll) | LIBXSLT_DESC= Use libxslt (only used by msxml3.dll) | ||||
WINEMAKER_DESC= Fully support winemaker (requires Perl) | WINEMAKER_DESC= Fully support winemaker (requires Perl) | ||||
GECKO_DESC= Bundle Gecko MSI package for Wine | GECKO_DESC= Bundle Gecko MSI package for Wine | ||||
MONO_DESC= Bundle Mono MSI package for Wine | MONO_DESC= Bundle Mono MSI package for Wine | ||||
WOW64_DESC= Windows (32 bit) on Windows 64 bit | |||||
CUPS_CONFIGURE_WITH= cups | CUPS_CONFIGURE_WITH= cups | ||||
CUPS_LIB_DEPENDS= libcups.so:print/cups | CUPS_LIB_DEPENDS= libcups.so:print/cups | ||||
Context not available. | |||||
liblcms2.so:graphics/lcms2 \ | liblcms2.so:graphics/lcms2 \ | ||||
libpng.so:graphics/png | libpng.so:graphics/png | ||||
.include <bsd.port.pre.mk> | .if !defined(ARCH) | ||||
ARCH!= uname -p | |||||
# PR224863: clang 6.0.0 crashes | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} == 1200056 && ${ARCH} == amd64 | |||||
USE_GCC= yes | |||||
.endif | .endif | ||||
matUnsubmitted Not Done Inline ActionsThis is a big no. mat: This is a big no.
Put back the .include, and never manually fill in a variable generated by the… | |||||
.if ${ARCH} == amd64 | .if ${ARCH} == amd64 | ||||
# Wine is composed of three parts: | # Wine is composed of three parts: | ||||
# - wine (aka this port) is the 32-bit component and runs 32-bit programs (on FreeBSD/i386) | # - wine (aka this port) is the 32-bit component and runs 32-bit programs (on FreeBSD/i386) | ||||
Context not available. | |||||
# (on FreeBSD/amd64) | # (on FreeBSD/amd64) | ||||
# - wow64 (a subset of emulators/i386-wine-devel) is a part of the 64-bit component that runs | # - wow64 (a subset of emulators/i386-wine-devel) is a part of the 64-bit component that runs | ||||
# 32-bit programs (on FreeBSD/amd64) | # 32-bit programs (on FreeBSD/amd64) | ||||
# We also currently have: | |||||
# - "wine32" (aka emulators/i386-wine-devel) is the 32-bit component and runs 32-bit programs | OPTIONS_DEFINE+= WOW64 | ||||
# (on FreeBSD/amd64). This will be superseded by wow64. | OPTIONS_DEFAULT+= WOW64 | ||||
matUnsubmitted Not Done Inline ActionsOPTIONS_DEFINE_amd64= WOW64 OPTIONS_DEFAULT_amd64= WOW64 mat: ```
OPTIONS_DEFINE_amd64= WOW64
OPTIONS_DEFAULT_amd64= WOW64
``` | |||||
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. | # --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. | ||||
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib | CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib | ||||
PLIST_SUB+= WINE32="@comment " WINE64="" | |||||
.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 38 | .endif | ||||
.include <bsd.port.pre.mk> | |||||
# PR224863: clang 6.0.0 crashes | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} == 1200056 && ${ARCH} == amd64 | |||||
USE_GCC= yes | |||||
.endif | |||||
.if ${ARCH} == amd64 && ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 38 | |||||
CPPFLAGS+= -D__builtin_ms_va_list=__builtin_va_list \ | CPPFLAGS+= -D__builtin_ms_va_list=__builtin_va_list \ | ||||
-D__builtin_ms_va_start=__builtin_va_start \ | -D__builtin_ms_va_start=__builtin_va_start \ | ||||
-D__builtin_ms_va_end=__builtin_va_end \ | -D__builtin_ms_va_end=__builtin_va_end \ | ||||
-D__builtin_ms_va_copy=__builtin_va_copy | -D__builtin_ms_va_copy=__builtin_va_copy | ||||
.endif | .endif | ||||
# Wine assumes a WoW64 package is available however WoW64 is not yet available on FreeBSD. | |||||
post-patch: | |||||
${REINPLACE_CMD} 's|/wine|/wine64|g' ${WRKSRC}/tools/wineapploader.in | |||||
.else | |||||
PLIST_SUB+= WINE32="" WINE64="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSTAGING} | .if ${PORT_OPTIONS:MSTAGING} | ||||
MASTER_SITES+= https://github.com/wine-staging/wine-staging/archive/:cho | MASTER_SITES+= https://github.com/wine-staging/wine-staging/archive/:cho | ||||
COMP_DIST= v${DISTVERSION}.tar.gz | COMP_DIST= v${DISTVERSION}.tar.gz | ||||
Context not available. | |||||
git:devel/git \ | git:devel/git \ | ||||
autoreconf-2.69:devel/autoconf | autoreconf-2.69:devel/autoconf | ||||
LIB_DEPENDS+= libtxc_dxtn.so:graphics/s2tc | LIB_DEPENDS+= libtxc_dxtn.so:graphics/s2tc | ||||
.endif | |||||
post-extract: fix-shebang | .if ${PORT_OPTIONS:MWOW64} || defined(WINE_WOW64) | ||||
. include "${.CURDIR}/Makefile.wow64" | |||||
PLIST_SUB+= WINE32="" WINE64="" | |||||
.elif ${ARCH} == i386 | |||||
PLIST_SUB+= WINE32="" WINE64="@comment " | |||||
.else | |||||
PLIST_SUB+= WINE32="@comment " WINE64="" | |||||
.endif | |||||
.if ${ARCH} == amd64 | |||||
post-extract-WOW64-off: fix-shebang | |||||
cd ${WRKSRC} && ${TAR} xf ${DISTDIR}/${COMP_DIST} --strip-components 1 | cd ${WRKSRC} && ${TAR} xf ${DISTDIR}/${COMP_DIST} --strip-components 1 | ||||
cd ${WRKSRC} && bash ./patches/patchinstall.sh --backend=patch DESTDIR=${WRKSRC} --all | cd ${WRKSRC} && bash ./patches/patchinstall.sh --backend=patch DESTDIR=${WRKSRC} --all | ||||
.endif | .endif | ||||
pre-build: | pre-build${WINE_METAMODE}: | ||||
cd ${WRKSRC} && ${MAKE_CMD} depend | cd ${BUILD_WRKSRC} && ${MAKE_CMD} depend | ||||
post-install: | post-install${WINE_METAMODE}: | ||||
@${MV} -f ${STAGEDIR}${WINELIBDIR}/libwine.so.1.0 \ | @${MV} -f ${STAGEDIR}${WINELIBDIR}/libwine.so.1.0 \ | ||||
${STAGEDIR}${WINELIBDIR}/libwine.so.1 | ${STAGEDIR}${WINELIBDIR}/libwine.so.1 | ||||
@${LN} -sf libwine.so.1 ${STAGEDIR}/${WINELIBDIR}/libwine.so | @${LN} -sf libwine.so.1 ${STAGEDIR}/${WINELIBDIR}/libwine.so | ||||
Context not available. | |||||
check-wine-devel-vs-wine-staging: | check-wine-devel-vs-wine-staging: | ||||
@${GREP} %%STAGING%% pkg-plist | while read f; do \ | @${GREP} %%STAGING%% pkg-plist | while read f; do \ | ||||
f=`echo $$f | ${SED} -e 's/%%STAGING%%//'`; \ | f=`echo $$f | ${SED} -e 's/%%STAGING%%//'`; \ | ||||
if [ -f "$$STAGEDIR/$$PREFIX/$$f" ]; then \ | if [ -f "$$STAGEDIR/$$PREFIX/$$f" ]; then \ | ||||
${PRINTF} "%s no longer contigent on %%STAGING%%?\n" "$$f"; \ | ${PRINTF} "%s no longer contigent on %%STAGING%%?\n" "$$f"; \ | ||||
fi \ | fi \ | ||||
done | done | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> | ||||
Context not available. |
No need to add :DEFAULT, it is the default.