Edit

IABSD.fr/ports/x11/py-wxPython/Makefile

Branch :

  • Show log

    Commit

  • Author : ajacoutot
    Date : 2010-07-30 06:58:57
    Hash : 12720840
    Message : First pass at new REVISION/DEPENDS... not finished yet.

  • x11/py-wxPython/Makefile
  • # $OpenBSD: Makefile,v 1.7 2010/07/30 06:59:00 ajacoutot Exp $
    
    SHARED_ONLY=	Yes
    
    COMMENT=	Python bindings for wxWidgets C++ class library
    
    V=		2.8.6.0
    DISTNAME=	wxPython-src-$V
    PKGNAME=	py-wxPython-$V
    REVISION=	0
    CATEGORIES=	x11 devel
    
    HOMEPAGE=	http://www.wxpython.org/
    
    MAINTAINER=	Aleksander Piotrowski <alek@openbsd.org>
    
    # modified LGPL
    PERMIT_PACKAGE_FTP=	Yes
    PERMIT_PACKAGE_CDROM=	Yes
    PERMIT_DISTFILES_FTP=	Yes
    PERMIT_DISTFILES_CDROM=	Yes
    
    MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=wxpython/}
    EXTRACT_SUFX=	.tar.bz2
    
    MODULES=	lang/python
    LIB_DEPENDS=    wx_gtk2_aui,wx_gtk2_richtext,wx_gtk2_gizmos,wx_gtk2_stc,wx_base_xml,wx_gtk2_qa,wx_base_odbc,wx_gtk2_html,wx_gtk2_gl,wx_base,wx_gtk2_adv,wx_gtk2_xrc,wx_gtk2_core,wx_base_net,wx_gtk2_dbgrid:wxWidgets-gtk2->=2.8.6:x11/wxWidgets
    
    WRKSRC=		${WRKDIST}/wxPython
    NO_REGRESS=	Yes
    
    pre-build:
    	@perl -pi -e "s,!!WRKINST!!,${WRKINST},g" ${WRKSRC}/config.py
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython/demo
    	cd ${WRKSRC}/demo; tar -cf - * | \
    		(cd ${PREFIX}/share/examples/py-wxPython/demo; tar -xf -)
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-wxPython/samples
    	cd ${WRKSRC}/samples; tar -cf - * | \
    		(cd ${PREFIX}/share/examples/py-wxPython/samples; tar -xf -)
    
    .include <bsd.port.mk>