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
|
2010-02-07 13:44:59 +01:00
|
|
|
DISTVERSION= 1.1.38
|
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
|
|
|
|
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 \
|
2008-06-15 15:04:25 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2007-01-02 04:06:55 +01:00
|
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
2005-07-26 12:33:35 +02:00
|
|
|
|
1995-10-05 21:50:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-05 22:26:40 +01:00
|
|
|
CONFIGURE_ARGS= --datadir=${DATADIR} --verbose --disable-tests \
|
2009-09-26 16:58:36 +02:00
|
|
|
--without-capi --without-gnutls --without-gphoto \
|
|
|
|
--without-gsm --without-mpg123 --without-openal \
|
|
|
|
--without-sane --without-xcursor
|
2007-07-15 19:09:08 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2010-01-09 20:12:55 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
FLEX="${LOCALBASE}/bin/flex"
|
2006-09-13 02:18:35 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/wine
|
2009-04-21 13:44:03 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-10-03 20:51:15 +02:00
|
|
|
MAN1= widl.1 wine.1 winebuild.1 winedbg.1 winedump.1 winegcc.1 \
|
2006-08-25 09:43:18 +02:00
|
|
|
winemaker.1 wineprefixcreate.1 wineserver.1 wmc.1 wrc.1
|
2007-07-15 19:09:08 +02:00
|
|
|
MLINKS= 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
|
2007-06-23 18:49:01 +02:00
|
|
|
USE_GL= glut
|
2008-11-24 07:45:19 +01:00
|
|
|
USE_XORG= xpm 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
|
|
|
|
|
2008-06-15 12:59:43 +02:00
|
|
|
OPTIONS= CUPS "Use CUPS (Common UNIX Printing System)" On \
|
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 \
|
2009-01-03 20:21:55 +01:00
|
|
|
LIBXSLT "Use libxslt (only used by msxml3.dll)" Off
|
2008-06-08 23:40:43 +02:00
|
|
|
|
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
|
|
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base
|
|
|
|
.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
|
|
|
|
|
2009-04-10 00:48:38 +02:00
|
|
|
.if ${OSVERSION} < 603000
|
|
|
|
IGNORE= fails to properly work on versions of FreeBSD before 6.3
|
2004-12-21 00:17:50 +01:00
|
|
|
.endif
|
|
|
|
|
2007-08-07 06:33:40 +02:00
|
|
|
post-patch:
|
|
|
|
.if ${OSVERSION} < 700041
|
|
|
|
${REINPLACE_CMD} 's/-lpthread/-lthr/g' ${WRKSRC}/configure
|
2008-06-15 12:59:43 +02:00
|
|
|
${REINPLACE_CMD} '/ac_hal_libs=/s/"$$/ -lthr"/' ${WRKSRC}/configure
|
2007-08-07 06:33:40 +02:00
|
|
|
.endif
|
|
|
|
|
2005-11-15 01:27:48 +01:00
|
|
|
pre-build:
|
1999-12-10 18:36:22 +01:00
|
|
|
cd ${WRKSRC} && make depend
|
|
|
|
|
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 \
|
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1/wine.1 \
|
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1/wineserver.1
|
|
|
|
@-${RMDIR} -p ${MAN1PREFIX}/man/de.UTF-8/man1 \
|
|
|
|
${MAN1PREFIX}/man/fr.UTF-8/man1
|
2006-08-14 08:04:08 +02:00
|
|
|
${MV} -f ${PREFIX}/lib/libwine.so.1.0 ${PREFIX}/lib/libwine.so.1
|
2007-07-15 19:09:08 +02:00
|
|
|
${LN} -sf libwine.so.1 ${PREFIX}/lib/libwine.so
|
2000-11-26 19:09:41 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-02-29 23:45:09 +01:00
|
|
|
-@${MKDIR} ${DOCSDIR}
|
2002-10-08 12:17:39 +02:00
|
|
|
.for i in README ANNOUNCE AUTHORS LICENSE
|
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}
|
|
|
|
@${MV} ${DATADIR}/applications/wine.desktop ${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>
|