2005-05-11 15:27:34 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2005/05/11 19:27:34 espie Exp $
|
2001-01-08 17:39:53 -05:00
|
|
|
|
2001-05-05 20:28:54 -04:00
|
|
|
COMMENT= "easy to use, graphical editor"
|
|
|
|
|
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ${HOMEPAGE}
|
2001-01-08 17:39:53 -05:00
|
|
|
HOMEPAGE= http://cooledit.sourceforge.net/
|
2003-08-01 15:13:25 -04:00
|
|
|
DISTNAME= cooledit-3.17.7
|
2005-05-11 15:27:34 -04:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2001-01-08 17:39:53 -05:00
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
2001-09-06 07:10:13 -04:00
|
|
|
FLAVORS= python
|
2001-01-08 17:39:53 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2002-03-23 18:37:53 -05:00
|
|
|
PYTHON_VER= 2.2
|
2004-11-24 06:08:02 -05:00
|
|
|
WANTLIB= X11 Xext Xpm c m util
|
2002-03-23 18:37:53 -05:00
|
|
|
|
2001-01-08 17:39:53 -05:00
|
|
|
.if ${FLAVOR:L:Mpython}
|
2003-08-01 15:13:25 -04:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}.0.0:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2002-03-23 18:37:53 -05:00
|
|
|
CFLAGS+= -pthread
|
|
|
|
CONFIGURE_ENV+= PYTHON_VER=${PYTHON_VER}
|
2004-11-24 06:08:02 -05:00
|
|
|
WANTLIB+= pthread
|
2001-08-09 17:05:28 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= NOPYTHON=Yes
|
2001-01-08 17:39:53 -05:00
|
|
|
.endif
|
|
|
|
|
2004-10-07 16:51:13 -04:00
|
|
|
MODULES= gettext
|
2003-03-31 07:52:10 -05:00
|
|
|
USE_X11= Yes
|
|
|
|
|
2001-01-08 17:39:53 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2005-02-13 09:18:06 -05:00
|
|
|
CONFIGURE_ENV+= XTERM_CMD=xterm LDFLAGS="-L${LOCALBASE}/lib"
|
2005-04-14 17:29:28 -04:00
|
|
|
|
|
|
|
# XXX temporary until we have full internationalization support
|
2005-05-11 15:27:34 -04:00
|
|
|
#CONFIGURE_ENV+= ac_cv_header_wchar_h=no
|
2005-04-14 17:29:28 -04:00
|
|
|
|
2001-02-18 17:47:57 -05:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ARGS+= --enable-static --disable-mail-author
|
2001-01-08 17:39:53 -05:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_FTP=Yes
|
|
|
|
PERMIT_DISTFILES_FTP=Yes
|
|
|
|
PERMIT_PACKAGE_CDROM=Yes
|
|
|
|
PERMIT_DISTFILES_CDROM=Yes
|
|
|
|
|
2005-02-13 09:18:06 -05:00
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER},g" ${WRKSRC}/configure
|
|
|
|
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g" ${WRKSRC}/configure
|
|
|
|
|
2001-01-08 17:39:53 -05:00
|
|
|
.include <bsd.port.mk>
|