svn commit: r326412 - in head/games/gtkradiant: . files
Alexey Dokuchaev
danfe at FreeBSD.org
Thu Sep 5 16:33:41 UTC 2013
Author: danfe
Date: Thu Sep 5 16:33:40 2013
New Revision: 326412
URL: http://svnweb.freebsd.org/changeset/ports/326412
Log:
- Attempt to unbreak the build against Clang
- Get rid of bogus dependency on devel/py-subversion
- Modernize LIB_DEPENDS syntax, copy files with -a
- Add an explicit dependency on pkgconfig
Reported by: pkg-fallout
Modified:
head/games/gtkradiant/Makefile
head/games/gtkradiant/files/patch-makeversion.py
Modified: head/games/gtkradiant/Makefile
==============================================================================
--- head/games/gtkradiant/Makefile Thu Sep 5 16:25:38 2013 (r326411)
+++ head/games/gtkradiant/Makefile Thu Sep 5 16:33:40 2013 (r326412)
@@ -16,13 +16,13 @@ COMMENT= Level design program developed
LICENSE= GPLv2
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/libsvn/__init__.py:${PORTSDIR}/devel/py-subversion
-LIB_DEPENDS= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext \
- mhash.2:${PORTSDIR}/security/mhash \
- png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext \
+ libmhash.so:${PORTSDIR}/security/mhash \
+ libpng15.so:${PORTSDIR}/graphics/png
WRKSRC= ${WRKDIR}/GPL/GtkRadiant
+USES= pkgconfig
USE_ZIP= yes
USE_GNOME= gtk20 libxml2
USE_PYTHON_BUILD= yes
@@ -49,14 +49,19 @@ post-patch:
${WRKSRC}/radiant/patch.cpp \
${WRKSRC}/radiant/watchbsp.cpp \
${WRKSRC}/tools/quake3/common/inout.c
+ @${REINPLACE_CMD} -e '/#include "generic\/reference.h"/x ; 318G' \
+ ${WRKSRC}/libs/scenelib.h
+ @${REINPLACE_CMD} -e '/#include "generic\/referencecounted.h/ { \
+ x ; s/^/#include "scenelib.h"/ ; G ; }' \
+ ${WRKSRC}/plugins/mapq3/parse.h
post-build:
cd ${WRKSRC} && ${PYTHON_CMD} install.py
- ${CP} -R ${WRKDIR}/${PORTNAME}_gamepacks/* ${WRKSRC}/install
+ ${CP} -a ${WRKDIR}/${PORTNAME}_gamepacks/* ${WRKSRC}/install
do-install:
@${MKDIR} ${DATADIR}
- ${CP} -R ${WRKSRC}/install/* ${DATADIR}
+ ${CP} -a ${WRKSRC}/install/* ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
.include <bsd.port.mk>
Modified: head/games/gtkradiant/files/patch-makeversion.py
==============================================================================
--- head/games/gtkradiant/files/patch-makeversion.py Thu Sep 5 16:25:38 2013 (r326411)
+++ head/games/gtkradiant/files/patch-makeversion.py Thu Sep 5 16:33:40 2013 (r326412)
@@ -1,6 +1,15 @@
--- ./makeversion.py.orig Sun Feb 12 16:47:01 2006
+++ ./makeversion.py Thu Mar 16 16:09:46 2006
-@@ -82,7 +82,7 @@
+@@ -39,8 +39,6 @@
+
+ import sys, re, string, os
+
+-import svn
+-
+ def get_version():
+ # version
+ f = open('include/version.default', 'r')
+@@ -82,7 +80,7 @@ def radiant_makeversion(append_about):
line = f.readline()
f.close()
else:
More information about the svn-ports-head
mailing list