diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-27 06:48:47 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-12-27 06:48:47 +0800 |
commit | db74fb827e9a7f81bcccce0323be9d1c88bf6c55 (patch) | |
tree | 69a92b0129452cdf09053b830fc64c1cfd39b1d6 /x11-toolkits/py-gtk2/Makefile | |
parent | 0689cfc39135567b838c85d16e04d16a4c5a309d (diff) | |
download | marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar.gz marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar.bz2 marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar.lz marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar.xz marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.tar.zst marcuscom-ports-db74fb827e9a7f81bcccce0323be9d1c88bf6c55.zip |
Update to 2.17.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13311 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits/py-gtk2/Makefile')
-rw-r--r-- | x11-toolkits/py-gtk2/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/x11-toolkits/py-gtk2/Makefile b/x11-toolkits/py-gtk2/Makefile new file mode 100644 index 000000000..2ab452d7d --- /dev/null +++ b/x11-toolkits/py-gtk2/Makefile @@ -0,0 +1,76 @@ +# New ports collection makefile for: py-gtk2 +# Date created: 08/13/2002 +# Whom: marc@informatik.uni-bremen.de +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gtk +PORTVERSION= 2.17.0 +CATEGORIES= x11-toolkits python +MASTER_SITES= GNOME +MASTER_SITE_SUBDIR= sources/pygtk/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pygtk-${PORTVERSION} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A set of Python bindings for GTK+ + +BUILD_DEPENDS= ${PYNUMERIC} \ + ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo \ + ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject +RUN_DEPENDS= ${PYNUMERIC} \ + ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo \ + ${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject + +LATEST_LINK= py-gtk2 +USE_BZIP2= yes +USE_GMAKE= yes +USE_GNOME= gnomehack libglade2 +USE_PYTHON= yes +USE_GETTEXT= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-lintl" \ + PYTHON="${PYTHON_VERSION}" +CONFIGURE_ARGS= --disable-docs +LDFLAGS+= -L${LOCALBASE}/lib + +DOCSDIR= ${PREFIX}/share/doc/py-gtk +EG_SRC_DIR= ${WRKSRC}/examples +EXAMPLESDIR= ${PREFIX}/share/examples/py-gtk + +CONFLICTS= py*-gtk-0* + +# +# Use the same way as the Python port to determine if we want +# threading support. +# +.if !defined(WITHOUT_THREADS) +CONFIGURE_ARGS+= --enable-thread +CFLAGS+= ${PTHREAD_CFLAGS} +CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}" +.else +CONFIGURE_ARGS+= --disable-thread +.if defined(LDFLAGS) +CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" +.endif +.endif + +post-install: +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + ${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf - + ${CHOWN} -R ${BINOWN}:${BINGRP} ${EXAMPLESDIR} + ${FIND} ${EXAMPLESDIR} -type d -print | ${XARGS} ${CHMOD} 0555 + ${FIND} ${EXAMPLESDIR} -type f -print | ${XARGS} ${CHMOD} 0444 +.endif +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/MAPPING ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/THREADS ${DOCSDIR} +.endif + +.include <bsd.port.mk> |