2000-06-10 05:04:21 +00:00
|
|
|
# ex:ts=8
|
1995-02-06 09:58:07 +00:00
|
|
|
# New ports collection makefile for: wine
|
1996-11-08 23:57:24 +00:00
|
|
|
# Date created: Sa 9 Nov 1996 00:52:22 MET
|
1995-10-07 00:25:10 +00:00
|
|
|
# Whom: se
|
1995-04-15 03:46:07 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1995-02-06 09:58:07 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 04:56:17 +00:00
|
|
|
PORTNAME= wine
|
2004-05-06 21:33:50 +00:00
|
|
|
PORTVERSION= 20040505
|
1998-07-27 23:25:33 +00:00
|
|
|
CATEGORIES= emulators
|
1996-11-18 10:37:03 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= ALPHA/wine/development
|
2003-07-10 10:57:27 +00:00
|
|
|
DISTNAME= Wine-${PORTVERSION}
|
1995-04-15 03:46:07 +00:00
|
|
|
|
2002-07-10 08:05:11 +00:00
|
|
|
MAINTAINER= gerald@FreeBSD.org
|
2004-02-16 10:59:54 +00:00
|
|
|
COMMENT= Microsoft Windows compatibility layer for Unix-like systems
|
1995-05-18 18:46:04 +00:00
|
|
|
|
2003-07-10 10:57:27 +00:00
|
|
|
WRKSRC= ${WRKDIR}/wine-${PORTVERSION}
|
1995-10-05 20:50:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-07-08 09:02:40 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS=-L${PREFIX}/lib LIBS=-Wl,-rpath,${PREFIX}/lib/wine
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2000-06-15 16:44:16 +00:00
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/wine
|
2004-03-11 08:55:31 +00:00
|
|
|
MAN1= widl.1 wine.1 winebuild.1 winedump.1 winemaker.1 wmc.1 wrc.1
|
1999-11-21 20:02:21 +00:00
|
|
|
MAN5= wine.conf.5
|
1999-03-30 20:09:53 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2003-08-22 21:19:33 +00:00
|
|
|
USE_BISON= yes
|
2000-12-23 03:18:33 +00:00
|
|
|
USE_GMAKE= yes
|
2004-02-22 22:55:05 +00:00
|
|
|
USE_GL= yes
|
2004-03-07 12:08:15 +00:00
|
|
|
USE_MESA= yes # wine/dlls/glut32/ depends on the presence of libglut.
|
2004-02-22 22:55:05 +00:00
|
|
|
USE_XPM= yes
|
2003-11-07 21:41:45 +00:00
|
|
|
# GCC 3.2 also seems fine, but the ports collection requires specifying
|
|
|
|
# a concrete version.
|
2004-09-30 05:32:00 +00:00
|
|
|
USE_GCC= 3.4
|
1995-10-07 00:25:10 +00:00
|
|
|
|
2001-02-02 22:52:03 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-20 22:54:23 +00:00
|
|
|
.if defined(DEBUG)
|
1999-11-14 20:49:34 +00:00
|
|
|
STRIP=
|
1999-12-10 17:36:22 +00:00
|
|
|
.else
|
2003-10-20 22:54:23 +00:00
|
|
|
CFLAGS= -O2
|
|
|
|
|
1999-12-10 17:36:22 +00:00
|
|
|
pre-extract:
|
2003-10-20 22:54:23 +00:00
|
|
|
@${ECHO} "DEBUG has not been set, building without debug info."
|
|
|
|
@${ECHO} "This makes the disk footprint and packages much smaller,"
|
|
|
|
@${ECHO} "but debugging harder. If Wine crashes and you need to"
|
|
|
|
@${ECHO} "generate a backtrace, please rebuild with DEBUG defined."
|
1999-11-21 20:02:21 +00:00
|
|
|
.endif
|
1995-10-07 00:25:10 +00:00
|
|
|
|
2003-05-19 10:07:37 +00:00
|
|
|
post-extract:
|
|
|
|
@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/wine.sh \
|
|
|
|
> ${WRKSRC}/wine.sh
|
|
|
|
|
1996-10-29 19:08:30 +00:00
|
|
|
post-configure:
|
1999-12-10 17:36:22 +00:00
|
|
|
cd ${WRKSRC} && make depend
|
|
|
|
|
1995-10-10 07:21:33 +00:00
|
|
|
do-install:
|
2000-12-23 03:18:33 +00:00
|
|
|
cd ${WRKSRC} && ${GMAKE} install
|
2004-04-14 19:54:02 +00:00
|
|
|
-@${MKDIR} ${PREFIX}/etc/rc.d
|
2001-01-15 23:45:30 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/documentation/samples/config ${PREFIX}/etc/wine.conf.sample
|
1995-10-07 00:25:10 +00:00
|
|
|
[ -f ${PREFIX}/etc/wine.conf ] \
|
2001-01-15 23:45:30 +00:00
|
|
|
|| ${INSTALL_DATA} ${PREFIX}/etc/wine.conf.sample ${PREFIX}/etc/wine.conf
|
2001-07-04 21:55:02 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/documentation/wine.man ${PREFIX}/man/man1/wine.1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/documentation/wine.conf.man ${PREFIX}/man/man5/wine.conf.5
|
2000-11-26 18:09:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-02-29 22:45:09 +00:00
|
|
|
-@${MKDIR} ${DOCSDIR}
|
2002-10-08 10:17:39 +00:00
|
|
|
.for i in README ANNOUNCE AUTHORS LICENSE
|
2004-02-29 22:45:09 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2000-11-02 15:05:14 +00:00
|
|
|
.endfor
|
2003-12-14 01:18:02 +00:00
|
|
|
.for i in wcmd winedbg
|
2004-02-29 22:45:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/programs/${i}/README ${DOCSDIR}/README.${i}
|
2003-04-27 11:19:57 +00:00
|
|
|
.endfor
|
2004-02-29 22:45:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${DOCSDIR}/README.winedump
|
2000-11-02 15:05:14 +00:00
|
|
|
.endif
|
2003-12-14 01:18:02 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/bug_report.pl ${PREFIX}/lib/wine
|
1999-11-14 20:49:34 +00:00
|
|
|
${ECHO}
|
|
|
|
@${SED} s+%%PREFIX%%+${PREFIX}+g <${PKGMESSAGE}
|
1995-02-06 09:58:07 +00:00
|
|
|
|
2003-05-19 10:07:37 +00:00
|
|
|
post-install:
|
2003-05-20 16:53:20 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/wine.sh ${PREFIX}/etc/rc.d/000.wine.sh
|
2003-05-19 10:07:37 +00:00
|
|
|
|
2001-02-02 22:52:03 +00:00
|
|
|
.include <bsd.port.post.mk>
|