are the latest stable releases. * Update vala to the newest stable release 0.18.1, also update a few ports in the gtk/gnome stack. * The c++ bindings ports for glib, atk, gconf, etc, have now USE_GNOME toggles. * Remove pkg-config run depends from glib20 and freetype2. This doesn't eliminate pkg-config run dependency completely, a second phase is needed and is planned. * Support for .:run. and .:build. for USE_GNOME components was added. Currently only libxml2 and libxslt support this mechanism. * Updates of the telepathy stack and empathy. * Trim makefile headers, convert ports to new options, trim off library versions for some ports. * Fix other ports so they build with the new glib version. Thanks to miwi and crees for helping out with some exp-runs. Approved by: portmgr (miwi & bapt) Obtained from: gnome team repo
62 lines
2 KiB
Makefile
62 lines
2 KiB
Makefile
# Created by: Alejandro Pulver <alepulver@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gtkradiant
|
|
PORTVERSION= 1.5.0
|
|
PORTREVISION= 9
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|source/:id|} \
|
|
http://www.bsd-geek.de/FreeBSD/distfiles/:fb
|
|
DISTNAME= GtkRadiant-GPL
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:id \
|
|
${PORTNAME}_gamepacks${EXTRACT_SUFX}:fb
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Level design program developed by id Software and Loki Software
|
|
|
|
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
|
|
|
|
WRKSRC= ${WRKDIR}/GPL/GtkRadiant
|
|
|
|
USE_ZIP= yes
|
|
USE_GNOME= gtk20 libxml2
|
|
USE_PYTHON_BUILD= yes
|
|
USE_SCONS= yes
|
|
SCONS_ARGS= ${MAKE_ENV} BUILD=release PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
DATADIR= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/-ldl//' ${WRKSRC}/SConscript
|
|
@${GREP} -Rl 'defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)' ${WRKSRC} | \
|
|
${XARGS} ${REINPLACE_CMD} -e \
|
|
's/\(defined[[:blank:]]*([[:blank:]]*__linux__[[:blank:]]*) || defined[[:blank:]]*([[:blank:]]*__APPLE__[[:blank:]]*)\)/\1 || defined (__FreeBSD__)/'
|
|
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
|
|
${WRKSRC}/libs/os/dir.h \
|
|
${WRKSRC}/libs/gtkutil/idledraw.h \
|
|
${WRKSRC}/libs/gtkutil/cursor.h \
|
|
${WRKSRC}/libs/convert.h \
|
|
${WRKSRC}/plugins/shaders/shaders.cpp \
|
|
${WRKSRC}/plugins/vfspk3/vfs.cpp \
|
|
${WRKSRC}/radiant/feedback.h \
|
|
${WRKSRC}/radiant/environment.cpp \
|
|
${WRKSRC}/radiant/patch.cpp \
|
|
${WRKSRC}/radiant/watchbsp.cpp \
|
|
${WRKSRC}/tools/quake3/common/inout.c
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} install.py
|
|
${CP} -R ${WRKDIR}/${PORTNAME}_gamepacks/* ${WRKSRC}/install
|
|
|
|
do-install:
|
|
@${MKDIR} ${DATADIR}
|
|
${CP} -R ${WRKSRC}/install/* ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|