mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# New ports collection makefile for: gnome-sudoku
|
|
# Date created: 2005-09-12
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnomesudoku
|
|
PORTVERSION= 0.6.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= games gnome
|
|
MASTER_SITES= SF/gnome-sudoku/gnome-sudoku/${PORTVERSION}
|
|
DISTNAME= gnome-sudoku-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GNOME Sudoku game
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric \
|
|
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
|
|
|
|
.if !defined(DISPLAY)
|
|
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \
|
|
${LOCALBASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT}
|
|
.if !defined(PACKAGE_BUILDING)
|
|
MAKE_ENV+= DISPLAY="localhost:1001"
|
|
.endif
|
|
.endif
|
|
|
|
USE_PYTHON= 2.4+
|
|
USE_PYDISTUTILS=yes
|
|
USE_GNOME= gnomehack gnomeprefix pygnome2 pygnomedesktop
|
|
|
|
PYDISTUTILS_PKGNAME= gnome-sudoku
|
|
|
|
.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
|
|
|
|
pre-install:
|
|
@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-install:
|
|
@if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
|
|
${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
|
|
${RM} -f ${WRKDIR}/.Xvfb.pid ; \
|
|
fi
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|