2002-10-08 10:31:52 +02:00
|
|
|
# New ports collection makefile for: py-gtk2
|
|
|
|
# Date created: 08/13/2002
|
|
|
|
# Whom: marc@informatik.uni-bremen.de
|
1998-06-02 09:41:06 +02:00
|
|
|
#
|
1999-08-31 05:04:38 +02:00
|
|
|
# $FreeBSD$
|
2006-10-14 10:35:50 +02:00
|
|
|
# $MCom: ports/x11-toolkits/py-gtk2/Makefile,v 1.49 2006/10/03 20:52:30 ahze Exp $
|
2004-11-07 23:50:43 +01:00
|
|
|
#
|
1998-06-02 09:41:06 +02:00
|
|
|
|
2002-10-08 10:31:52 +02:00
|
|
|
PORTNAME= gtk
|
2006-10-18 20:56:36 +02:00
|
|
|
PORTVERSION= 2.10.3
|
1999-09-19 17:48:50 +02:00
|
|
|
CATEGORIES= x11-toolkits python
|
2000-06-07 20:06:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2006-04-30 02:47:21 +02:00
|
|
|
MASTER_SITE_SUBDIR= sources/pygtk/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
2002-10-08 10:31:52 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2002-10-13 00:53:58 +02:00
|
|
|
DISTNAME= pygtk-${PORTVERSION}
|
2002-10-08 10:31:52 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
1998-06-02 09:41:06 +02:00
|
|
|
|
2003-02-08 00:46:30 +01:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A set of Python bindings for GTK
|
1998-10-15 16:31:45 +02:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo \
|
2006-10-14 10:35:50 +02:00
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject
|
2005-11-05 07:27:38 +01:00
|
|
|
RUN_DEPENDS= ${PYNUMERIC} \
|
2006-04-30 02:47:21 +02:00
|
|
|
${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo \
|
2006-10-14 10:35:50 +02:00
|
|
|
${PYTHON_SITELIBDIR}/gtk-2.0/gobject/_gobject.so:${PORTSDIR}/devel/py-gobject
|
2001-07-03 19:36:32 +02:00
|
|
|
|
2002-08-28 20:02:19 +02:00
|
|
|
USE_BZIP2= yes
|
1999-03-15 04:17:10 +01:00
|
|
|
USE_GMAKE= yes
|
2003-09-04 07:23:54 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget libglade2
|
2000-09-18 14:55:15 +02:00
|
|
|
USE_PYTHON= yes
|
2004-07-25 22:43:12 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-07-25 22:43:12 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-lintl"
|
2006-10-14 10:35:50 +02:00
|
|
|
CONFIGURE_ARGS= --disable-docs
|
2004-07-25 22:43:12 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
1999-03-15 04:17:10 +01:00
|
|
|
|
2006-06-06 05:20:24 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-gtk
|
1999-09-19 17:48:50 +02:00
|
|
|
EG_SRC_DIR= ${WRKSRC}/examples
|
2006-06-06 05:20:24 +02:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-gtk
|
1999-02-22 22:59:16 +01:00
|
|
|
|
2006-04-30 02:47:21 +02:00
|
|
|
CONFLICTS= py*-gtk-0*
|
2004-01-30 04:29:15 +01:00
|
|
|
|
2002-11-11 20:50:48 +01:00
|
|
|
#
|
|
|
|
# Use the same way as the Python port to determine if we want
|
|
|
|
# threading support.
|
|
|
|
#
|
2004-03-14 01:16:54 +01:00
|
|
|
.if !defined(WITHOUT_THREADS)
|
2002-11-11 20:50:48 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-thread
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-thread
|
2004-03-14 01:16:54 +01:00
|
|
|
.if defined(LDFLAGS)
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
|
|
.endif
|
2002-11-11 20:50:48 +01:00
|
|
|
.endif
|
|
|
|
|
1998-06-02 09:41:06 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-09-19 17:48:50 +02:00
|
|
|
post-install:
|
2006-06-06 05:20:24 +02:00
|
|
|
${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
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/MAPPING ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/THREADS ${DOCSDIR}
|
1998-06-02 09:41:06 +02:00
|
|
|
.endif
|
|
|
|
|
1998-12-31 06:40:14 +01:00
|
|
|
.include <bsd.port.mk>
|