summaryrefslogblamecommitdiffstats
path: root/accessibility/accerciser/Makefile
blob: 3f042eddd94db2fc90c6675a64a9a51dc285da13 (plain) (tree)
1
2
3
4
5
6
7
                                                
           
                                                                                            


                          
                 












                                                                   
                                 


























                                                                                                              
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/trunk/accessibility/accerciser/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=   accerciser
PORTVERSION=    1.12.1
PORTREVISION=   3
CATEGORIES= accessibility gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Interactive Python accessibility explorer for GNOME

CONFLICTS=  accerciser-3.[0-9].*

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  pygnomedesktop atspi intlhack
USE_PYTHON= yes
USES=       gettext pkgconfig
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
USE_DISPLAY=    yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GCONF_SCHEMAS=  accerciser.schemas
MAN1=       accerciser.1

.if !defined(DISPLAY)
pre-configure:
    @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
        ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
        ${RM} -f ${WRKDIR}/.Xvfb.pid ; \
    fi
    @${LOCALBASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid
    @sleep 5

post-configure:
    @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
        ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
        ${RM} -f ${WRKDIR}/.Xvfb.pid ; \
    fi
.endif

.include <bsd.port.mk>