Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 14:51:53 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306276 - head/emulators/swine
Message-ID:  <201210221451.q9MEprM7032201@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Mon Oct 22 14:51:53 2012
New Revision: 306276
URL: http://svn.freebsd.org/changeset/ports/306276

Log:
  - Run depend on wine only on i386 this will allow amd64 users
    to install from package
  - Move info addressed to amd64 users to pkg-message
  - Add ONLY_FOR_ARCHS to build only on supported archs
  
  Suggested by:	makc
  Approved by:	maintainer via private mail
  Feature safe:	yes

Modified:
  head/emulators/swine/Makefile
  head/emulators/swine/pkg-message

Modified: head/emulators/swine/Makefile
==============================================================================
--- head/emulators/swine/Makefile	Mon Oct 22 14:39:38 2012	(r306275)
+++ head/emulators/swine/Makefile	Mon Oct 22 14:51:53 2012	(r306276)
@@ -3,7 +3,7 @@
 
 PORTNAME=	swine
 PORTVERSION=	1.0.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	emulators deskutils python
 MASTER_SITES=	GH
 
@@ -13,8 +13,7 @@ COMMENT=	Qt4 graphical Wine frontend
 LICENSE=	GPLv2
 
 BUILD_DEPENDS=	pyrcc4:${PORTSDIR}/textproc/py-qt4-xml
-RUN_DEPENDS=	wine:${PORTSDIR}/emulators/wine-devel \
-		xterm:${PORTSDIR}/x11/xterm \
+RUN_DEPENDS=	xterm:${PORTSDIR}/x11/xterm \
 		cabextract:${PORTSDIR}/archivers/cabextract \
 		icotool:${PORTSDIR}/graphics/icoutils \
 		${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
@@ -30,29 +29,20 @@ GH_COMMIT=	d14b9f0
 USE_PYTHON=	yes
 USE_GMAKE=	yes
 USE_QT4=	linguist_build
+ONLY_FOR_ARCHS=	i386 amd64
 
 PORTDOCS=	README
 
 .include <bsd.port.options.mk>
 
+.if ${ARCH} == "i386"
+RUN_DEPENDS+=	wine:${PORTSDIR}/emulators/wine-devel
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' ${WRKSRC}/Makefile
 	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' ${WRKSRC}/version.sh
 
-pre-build:
-.if !exists(${LOCALBASE}/bin/wine) && ${ARCH} != "i386"
-	@${ECHO_MSG}
-	@${ECHO_MSG} "Depends on Wine Port which is only available for i386"
-	@${ECHO_MSG}
-	@${ECHO_MSG} "	http://wiki.freebsd.org/Wine"
-	@${ECHO_MSG}
-	@${ECHO_MSG} "FreeBSD/amd64 works with Wine 32bit binary from"
-	@${ECHO_MSG}
-	@${ECHO_MSG} "	http://www.mediafire.com/wine_fbsd64"
-	@${ECHO_MSG}
-	exit 1
-.endif
-
 do-install:
 	${MKDIR} ${DATADIRLIB}
 	${INSTALL_DATA} ${WRKSRC}/resources.qrc ${DATADIRLIB}

Modified: head/emulators/swine/pkg-message
==============================================================================
--- head/emulators/swine/pkg-message	Mon Oct 22 14:39:38 2012	(r306275)
+++ head/emulators/swine/pkg-message	Mon Oct 22 14:51:53 2012	(r306276)
@@ -1,6 +1,13 @@
 ################################################################################
 
-This programm will attempt to obtain some system information by accessing files
+FreeBSD/amd64 users:
+You need to manually install Wine 32bit binary from:
+http://www.mediafire.com/wine_fbsd64
+
+For more info about running wine on FreeBSD please see:
+http://wiki.freebsd.org/Wine
+
+This program will attempt to obtain some system information by accessing files
 in procfs. You must mount procfs filesystem for this to work correctly.
 This can be accomplished by adding the following line to your /etc/fstab file:
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210221451.q9MEprM7032201>