aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/py-gnome2/Makefile
blob: 195fc2049b59cbedfad9da86958258d692c2ba38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/x11-toolkits/py-gnome2/Makefile,v 1.60 2010/04/02 20:22:15 kwm Exp $

PORTNAME=   gnome
PORTVERSION=    2.28.1
PORTREVISION=   5
CATEGORIES= x11-toolkits python gnome
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/gnome-python/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   gnome-python-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Python bindings for GNOME 2

OPTIONS_DEFINE= EXAMPLES

OPTIONS_SUB=    yes

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/ORBit.so:${PORTSDIR}/devel/py-orbit
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/ORBit.so:${PORTSDIR}/devel/py-orbit

USES=       gettext gmake libtool:keepla pathfix pkgconfig tar:bzip2
USE_PYTHON= 2
USE_LDCONFIG=   yes
USE_GNOME=  libgnomeui pygtk2
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  PTHREAD_LIBS="${PTHREAD_LIBS}"
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

EG_SRC_DIR= ${WRKSRC}/examples
EG_DST_DIR= ${PREFIX}/share/examples/py-gnome

post-install:
    @${MKDIR} ${STAGEDIR}${EG_DST_DIR}
    cd ${EG_SRC_DIR}; ${PAX} -rw . ${STAGEDIR}${EG_DST_DIR}
    ${FIND} ${STAGEDIR}${EG_DST_DIR} -type d -print | ${XARGS} ${CHMOD} 0755
    ${FIND} ${STAGEDIR}${EG_DST_DIR} -type f -print | ${XARGS} ${CHMOD} 0444

.include <bsd.port.mk>