1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/devel/py-gobject/Makefile
Rusmir Dusko eef1328a37 - Remove not needed LICENSE_FILE
- Use the new format for LIB_DEPENDS
- USES gmake instead of USE_GMAKE
- Change USE_PYTHON=yes to USE_PYTHON=2
- Support STAGEDIR, new pkg-plist with make makeplist
- Strip libraries
- Add patch, fix GFlags messages

PR:		ports/182069
Submitted by:	nemysis (self)
Approved by:	portmgr
2014-03-03 22:46:43 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
# $MCom: ports/devel/py-gobject/Makefile,v 1.58 2012/12/30 18:15:16 mezz Exp $
PORTNAME= gobject
PORTVERSION= 2.28.6
PORTREVISION= 3
CATEGORIES= devel python
MASTER_SITES= GNOME
MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygobject-${PORTVERSION}
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python bindings for GObject
LICENSE= LGPL21
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo
LIB_DEPENDS+= libffi.so:${PORTSDIR}/devel/libffi
RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo
USES= gmake pathfix pkgconfig
USE_XZ= yes
USE_GNOME= glib20
USE_PYTHON= 2
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-docs --disable-introspection --with-ffi
CONFLICTS= py*-gtk-0*
PLIST_SUB= PYTHON_VER="${PYTHON_VER}"
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
${STAGEDIR}${PREFIX}/share/pygobject/2.0/codegen
.for l in glib/_glib gobject/_gobject gtk-2.0/gio/_gio gtk-2.0/gio/unix
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${l}.so
.endfor
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpyglib-2.0-python${PYTHON_VER}.so.0
.include <bsd.port.mk>