1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/devel/py-ncurses/Makefile
Alexander Botero-Lowry 4942ce5a7d - Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
   Python Eggs and the easy_install system

Tested by:	pointyhat runs
Approved by:	pav (portmgr)
Most work by:	perky
Thanks to:	pav
2007-07-30 09:42:28 +00:00

40 lines
942 B
Makefile

# New ports collection makefile for: pyncurses
# Date created: Tue May 16 22:15:11 PDT 2000
# Whom: adsharma@sharams.dhs.org
#
# $FreeBSD$
#
PORTNAME= ncurses
PORTVERSION= 0.3
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyncurses
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyncurses-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A ncurses binding for Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= pyncurses
.include <bsd.port.pre.mk>
post-patch:
.if ${PYTHON_REL} >= 230
.for f in _curses_wrap.c _panel_wrap.c _menu_wrap.c _form_wrap.c
@${REINPLACE_CMD} -e '45s,^.*$$,#include "py_curses.h",' \
${WRKSRC}/ncurses/${f}
.endfor
.if ${OSVERSION} > 700033 || (${OSVERSION} < 700000 && ${OSVERSION} > 602106)
@${REINPLACE_CMD} -e '/^extern int define_key(/d' \
${WRKSRC}/ncurses/_curses_wrap.c
.endif
.endif
.include <bsd.port.post.mk>