2000-06-10 07:04:21 +02:00
|
|
|
# ex:ts=8
|
1995-02-06 10:58:07 +01:00
|
|
|
# New ports collection makefile for: wine
|
1996-11-09 00:57:24 +01:00
|
|
|
# Date created: Sa 9 Nov 1996 00:52:22 MET
|
1995-10-07 01:25:10 +01:00
|
|
|
# Whom: se
|
1995-04-15 05:46:07 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1995-02-06 10:58:07 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:56:17 +02:00
|
|
|
PORTNAME= wine
|
2012-02-18 12:11:09 +01:00
|
|
|
DISTVERSION= 1.4-rc4
|
2005-11-06 23:22:16 +01:00
|
|
|
PORTEPOCH= 1
|
1998-07-28 01:25:33 +02:00
|
|
|
CATEGORIES= emulators
|
2009-09-02 17:01:56 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Source \
|
2006-08-14 08:04:08 +02:00
|
|
|
http://ibiblio.org/pub/linux/system/emulators/wine/
|
1995-04-15 05:46:07 +02:00
|
|
|
|
2002-07-10 10:05:11 +02:00
|
|
|
MAINTAINER= gerald@FreeBSD.org
|
2004-02-16 11:59:54 +01:00
|
|
|
COMMENT= Microsoft Windows compatibility layer for Unix-like systems
|
1995-05-18 20:46:04 +02:00
|
|
|
|
2011-08-16 01:51:57 +02:00
|
|
|
LICENSE= LGPL21 LGPL3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2010-01-09 22:48:38 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
|
2008-06-08 23:40:43 +02:00
|
|
|
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
2006-05-31 00:43:06 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2007-07-29 01:18:53 +02:00
|
|
|
lcms.1:${PORTSDIR}/graphics/lcms \
|
2010-03-28 08:47:48 +02:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2007-01-02 04:06:55 +01:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
2005-07-26 12:33:35 +02:00
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
1995-10-05 21:50:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-07-03 17:39:11 +02:00
|
|
|
CONFIGURE_ARGS+=--verbose --disable-tests \
|
2011-08-16 01:51:57 +02:00
|
|
|
--without-alsa --without-capi --with-glu \
|
2011-08-27 22:56:47 +02:00
|
|
|
--without-gphoto --without-gsm --without-gstreamer \
|
2011-11-19 15:06:48 +01:00
|
|
|
--with-opengl --without-mpg123 --with-oss \
|
|
|
|
--without-sane --without-tiff \
|
2011-08-16 01:51:57 +02:00
|
|
|
--without-v4l --without-xcomposite --without-xinerama \
|
2011-09-20 01:04:30 +02:00
|
|
|
--with-xinput2 --with-xrandr
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= FLEX="${LOCALBASE}/bin/flex"
|
2011-02-06 15:58:27 +01:00
|
|
|
WINELIBDIR?= ${PREFIX}/lib
|
|
|
|
.if !defined(USE_LDCONFIG32)
|
|
|
|
USE_LDCONFIG= ${WINELIBDIR} ${WINELIBDIR}/wine
|
|
|
|
.endif
|
2009-04-21 13:44:03 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2010-12-31 09:15:15 +01:00
|
|
|
MAN1= msiexec.1 notepad.1 regedit.1 regsvr32.1 widl.1 wine.1 \
|
|
|
|
wineboot.1 winebuild.1 winecfg.1 wineconsole.1 winedbg.1 \
|
|
|
|
winedump.1 winefile.1 winegcc.1 winemaker.1 winemine.1 \
|
|
|
|
winepath.1 wineserver.1 wmc.1 wrc.1
|
|
|
|
MLINKS= winegcc.1 winecpp.1 \
|
|
|
|
winegcc.1 wineg++.1
|
1999-03-30 22:09:53 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2007-10-17 12:13:01 +02:00
|
|
|
USE_BISON= build
|
2005-11-10 16:29:12 +01:00
|
|
|
USE_BZIP2= yes
|
2000-12-23 04:18:33 +01:00
|
|
|
USE_GMAKE= yes
|
2010-02-19 23:44:14 +01:00
|
|
|
USE_GL= glu
|
2011-09-20 01:04:30 +02:00
|
|
|
USE_XORG= xcursor xi xpm xrandr xrender
|
1995-10-07 01:25:10 +01:00
|
|
|
|
2006-04-16 22:09:35 +02:00
|
|
|
SUB_FILES= pkg-message
|
2005-11-24 01:15:55 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2010-02-19 23:44:14 +01:00
|
|
|
OPTIONS= CUPS "Use CUPS (Common UNIX Printing System)" Off \
|
2011-11-13 03:28:34 +01:00
|
|
|
DOSBOX "Use DOSBox to run MS-DOS programs" Off \
|
2010-03-01 01:24:22 +01:00
|
|
|
GNUTLS "Use GnuTLS" Off \
|
2009-01-03 20:21:55 +01:00
|
|
|
HAL "Use HAL (Hardware Abstraction Layer)" Off \
|
2009-01-04 20:00:06 +01:00
|
|
|
LDAP "Use LDAP" Off \
|
2010-07-11 22:50:59 +02:00
|
|
|
LIBXSLT "Use libxslt (only used by msxml3.dll)" Off \
|
2010-09-11 19:42:25 +02:00
|
|
|
OPENAL "Use OpenAL (3D audio library)" Off \
|
2010-07-11 22:50:59 +02:00
|
|
|
WINEMAKER "Fully support winemaker (requires Perl)" Off
|
2008-06-08 23:40:43 +02:00
|
|
|
|
2011-08-16 01:51:57 +02:00
|
|
|
PORTDATA= fonts/ generic.ppd l_intl.nls wine.inf
|
|
|
|
|
2001-02-02 23:52:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-06-08 23:40:43 +02:00
|
|
|
.ifdef WITHOUT_CUPS
|
|
|
|
CONFIGURE_ARGS+= --without-cups
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-cups
|
2012-02-12 18:51:47 +01:00
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
|
2008-06-08 23:40:43 +02:00
|
|
|
.endif
|
|
|
|
|
2011-11-13 03:28:34 +01:00
|
|
|
.ifdef WITH_DOSBOX
|
|
|
|
RUN_DEPENDS+= dosbox:${PORTSDIR}/emulators/dosbox
|
|
|
|
.endif
|
|
|
|
|
2010-03-01 01:24:22 +01:00
|
|
|
.ifdef WITH_GNUTLS
|
|
|
|
CONFIGURE_ARGS+= --with-gnutls
|
2011-06-05 20:43:16 +02:00
|
|
|
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
|
2010-03-01 01:24:22 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
2008-06-15 12:59:43 +02:00
|
|
|
.ifdef WITH_HAL
|
|
|
|
CONFIGURE_ARGS+= --with-hal
|
|
|
|
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-hal
|
|
|
|
.endif
|
|
|
|
|
2009-01-04 20:00:06 +01:00
|
|
|
.ifdef WITH_LDAP
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-ldap
|
|
|
|
.endif
|
|
|
|
|
2009-01-03 20:21:55 +01:00
|
|
|
.ifdef WITH_LIBXSLT
|
|
|
|
CONFIGURE_ARGS+= --with-xslt
|
|
|
|
LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-xslt
|
|
|
|
.endif
|
|
|
|
|
2010-09-11 19:42:25 +02:00
|
|
|
.ifdef WITH_OPENAL
|
|
|
|
CONFIGURE_ARGS+= --with-openal
|
|
|
|
USE_OPENAL= yes
|
2011-08-16 01:51:57 +02:00
|
|
|
PLIST_SUB+= OPENAL=""
|
2010-09-11 19:42:25 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openal
|
2011-08-16 01:51:57 +02:00
|
|
|
PLIST_SUB+= OPENAL="@comment "
|
2010-09-11 19:42:25 +02:00
|
|
|
.endif
|
|
|
|
|
2010-07-11 22:50:59 +02:00
|
|
|
.ifdef WITH_WINEMAKER
|
2010-09-11 18:25:57 +02:00
|
|
|
RUN_DEPENDS+= p5-XML-LibXML>0:${PORTSDIR}/textproc/p5-XML-LibXML
|
2010-07-11 22:50:59 +02:00
|
|
|
.endif
|
|
|
|
|
2011-05-15 18:00:28 +02:00
|
|
|
.if ${OSVERSION} < 800000
|
|
|
|
IGNORE= lacks required sound support on FreeBSD before 8.0
|
2004-12-21 00:17:50 +01:00
|
|
|
.endif
|
|
|
|
|
2005-11-15 01:27:48 +01:00
|
|
|
pre-build:
|
2010-04-25 20:54:20 +02:00
|
|
|
cd ${WRKSRC} && ${GMAKE} depend
|
1999-12-10 18:36:22 +01:00
|
|
|
|
2006-06-22 23:49:40 +02:00
|
|
|
post-install:
|
2008-02-10 10:57:49 +01:00
|
|
|
@${RM} -f ${MAN1PREFIX}/man/de.UTF-8/man1/wine.1 \
|
2010-04-25 22:33:58 +02:00
|
|
|
${MAN1PREFIX}/man/de.UTF-8/man1/winemaker.1 \
|
|
|
|
${MAN1PREFIX}/man/de.UTF-8/man1/wineserver.1 \
|
2008-02-10 10:57:49 +01:00
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1/wine.1 \
|
2010-05-22 21:13:58 +02:00
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1/winemaker.1 \
|
2011-07-03 17:39:11 +02:00
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1/wineserver.1 \
|
|
|
|
${MAN1PREFIX}/man/pl.UTF-8/man1/wine.1
|
2008-02-10 10:57:49 +01:00
|
|
|
@-${RMDIR} -p ${MAN1PREFIX}/man/de.UTF-8/man1 \
|
2011-07-03 17:39:11 +02:00
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1 \
|
|
|
|
${MAN1PREFIX}/man/pl.UTF-8/man1
|
2011-02-06 15:58:27 +01:00
|
|
|
${MV} -f ${WINELIBDIR}/libwine.so.1.0 ${WINELIBDIR}/libwine.so.1
|
|
|
|
${LN} -sf libwine.so.1 ${WINELIBDIR}/libwine.so
|
2000-11-26 19:09:41 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-02-29 23:45:09 +01:00
|
|
|
-@${MKDIR} ${DOCSDIR}
|
2010-09-19 17:22:02 +02:00
|
|
|
.for i in README ANNOUNCE AUTHORS
|
2004-02-29 23:45:09 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2000-11-02 16:05:14 +01:00
|
|
|
.endfor
|
2009-07-18 21:50:09 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README ${DOCSDIR}/README.winedbg
|
2007-12-29 13:11:54 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${DOCSDIR}/README.winedump
|
2000-11-02 16:05:14 +01:00
|
|
|
.endif
|
2007-12-29 13:11:54 +01:00
|
|
|
@${MKDIR} ${DESKTOPDIR}
|
2005-11-24 01:15:55 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
1995-02-06 10:58:07 +01:00
|
|
|
|
2001-02-02 23:52:03 +01:00
|
|
|
.include <bsd.port.post.mk>
|