325e28bbb6
Newt is a programming library for color text mode, widget based user interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. Newt is based on the S-Lang library. feedback/ok aja@
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
|
|
|
|
COMMENT= programming library for color text mode, widget based UIs
|
|
|
|
VERSION= 0.52.14
|
|
DISTNAME= newt-${VERSION}
|
|
REVISION=0
|
|
SHARED_LIBS += newt 0.0 # 0.52
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= https://fedorahosted.org/newt/
|
|
|
|
MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/
|
|
|
|
# LGPLv2.1
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MODULES= devel/gettext \
|
|
lang/python
|
|
|
|
LIB_DEPENDS= devel/libslang \
|
|
devel/popt
|
|
|
|
WANTLIB += c m ncurses popt pthread slang util termcap ${MODPY_WANTLIB}
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --without-tcl \
|
|
--with-python
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lm -ltermcap -lintl -liconv"
|
|
|
|
MAKE_FLAGS= MAKE_PROGRAM=${MAKE_PROGRAM}
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
SUBST_VARS+= VERSION
|
|
|
|
pre-configure:
|
|
perl -pi -e 's,^(SONAME=).*,SONAME=${LIBnewt_VERSION},g;' \
|
|
-e 's,PYTHONVERS=.*,PYTHONVERS=python${MODPY_VERSION},g' ${WRKSRC}/configure
|
|
|
|
pre-install:
|
|
${SUBST_CMD} -c ${FILESDIR}/setup.py ${WRKSRC}/setup.py
|
|
cd ${WRKSRC} && ${MAKE_ENV} ${MODPY_BIN} setup.py install --prefix=${PREFIX}
|
|
|
|
.include <bsd.port.mk>
|