openbsd-ports/editors/cooledit/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

2005-05-11 15:27:34 -04:00
# $OpenBSD: Makefile,v 1.19 2005/05/11 19:27:34 espie Exp $
COMMENT= "easy to use, graphical editor"
CATEGORIES= editors
MASTER_SITES= ${HOMEPAGE}
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
MAINTAINER= Marc Espie <espie@openbsd.org>
FLAVORS= python
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
.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
.else
CONFIGURE_ENV+= NOPYTHON=Yes
.endif
2004-10-07 16:51:13 -04:00
MODULES= gettext
2003-03-31 07:52:10 -05:00
USE_X11= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= XTERM_CMD=xterm LDFLAGS="-L${LOCALBASE}/lib"
# XXX temporary until we have full internationalization support
2005-05-11 15:27:34 -04:00
#CONFIGURE_ENV+= ac_cv_header_wchar_h=no
2001-02-18 17:47:57 -05:00
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static --disable-mail-author
PERMIT_PACKAGE_FTP=Yes
PERMIT_DISTFILES_FTP=Yes
PERMIT_PACKAGE_CDROM=Yes
PERMIT_DISTFILES_CDROM=Yes
pre-configure:
@perl -pi -e "s,!!PYTHON_VER!!,${PYTHON_VER},g" ${WRKSRC}/configure
@perl -pi -e "s,!!LOCALBASE!!,${LOCALBASE},g" ${WRKSRC}/configure
.include <bsd.port.mk>