ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/x11-toolkits/py-gtk2/Makefile
Revision: 17765
Committed: Thu Oct 16 00:56:47 2014 UTC (9 years, 6 months ago) by laffer1
File size: 1963 byte(s)
Log Message:
strip should be using the fake directory

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME= gtk
4 PORTVERSION= 2.24.0
5 PORTREVISION= 1
6 CATEGORIES= x11-toolkits python
7 MASTER_SITES= GNOME
8 MASTER_SITE_SUBDIR= sources/pygtk/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
9 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
10 PKGNAMESUFFIX= 2
11 DISTNAME= pygtk-${PORTVERSION}
12 DIST_SUBDIR= gnome2
13
14 MAINTAINER= ports@MidnightBSD.org
15 COMMENT= Set of Python bindings for GTK+
16
17 LICENSE= gpl2
18
19 BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo
20 RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo
21
22 USES= gettext gmake libtool pathfix pkgconfig tar:bzip2
23 USE_GNOME= libglade2 pygobject
24 USE_PYTHON= 2
25 GNU_CONFIGURE= yes
26 CONFIGURE_ENV= PYTHON="${PYTHON_VERSION}"
27 CPPFLAGS+= -I${LOCALBASE}/include
28 LDFLAGS+= -L${LOCALBASE}/lib
29 CONFIGURE_ARGS= --disable-docs
30
31 DOCSDIR= ${PREFIX}/share/doc/py-gtk
32 EG_SRC_DIR= ${WRKSRC}/examples
33 EXAMPLESDIR= ${PREFIX}/share/examples/py-gtk
34
35 CONFLICTS= py*-gtk-0*
36
37 OPTIONS_DEFINE= NUMPY DOCS EXAMPLES
38 NUMPY_DESC= Numpy support (pulls in lang/gcc)
39
40 .include <bsd.mport.options.mk>
41
42 .if ${PORT_OPTIONS:MNUMPY}
43 BUILD_DEPENDS+= ${PYNUMPY}
44 RUN_DEPENDS+= ${PYNUMPY}
45 CONFIGURE_ARGS+=--enable-numpy
46 .else
47 CONFIGURE_ARGS+=--disable-numpy
48 .endif
49
50 #
51 # Use the same way as the Python port to determine if we want
52 # threading support.
53 #
54 .if !defined(WITHOUT_THREADS)
55 CONFIGURE_ARGS+= --enable-thread
56 CFLAGS+= ${PTHREAD_CFLAGS}
57 LDFLAGS+= ${PTHREAD_LIBS}
58 .else
59 CONFIGURE_ARGS+= --disable-thread
60 .endif
61
62 post-install:
63 .if ${PORT_OPTIONS:MEXAMPLES}
64 @${RM} ${WRKSRC}/examples/pygtk-demo/pygtk-demo.in
65 ${MKDIR} ${EXAMPLESDIR}
66 cd ${EG_SRC_DIR} && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
67 .endif
68 .if ${PORT_OPTIONS:MDOCS}
69 ${MKDIR} ${DOCSDIR}
70 ${INSTALL_DATA} ${WRKSRC}/MAPPING ${DOCSDIR}
71 ${INSTALL_DATA} ${WRKSRC}/THREADS ${DOCSDIR}
72 .endif
73 ${STRIP_CMD} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/gtk-2.0/gtk/*.so
74 ${STRIP_CMD} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/gtk-2.0/*.so
75
76 .include <bsd.port.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H