2000-02-13 01:57:46 +00:00
|
|
|
# New ports collection makefile for: newt
|
|
|
|
# Date created: 08 Jan 2000
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= newt
|
2002-10-13 06:17:07 +00:00
|
|
|
PORTVERSION= 0.51.0
|
2004-03-22 07:11:23 +00:00
|
|
|
PORTREVISION= 2
|
2000-02-13 01:57:46 +00:00
|
|
|
CATEGORIES= devel
|
2002-07-15 05:23:13 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
# ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/
|
|
|
|
MASTER_SITE_SUBDIR= perky
|
2002-10-13 06:17:07 +00:00
|
|
|
PKGNAMESUFFIX= ${PYTHONSUFFIX}${TCLSUFFIX}${I18NSUFFIX}
|
2000-02-13 01:57:46 +00:00
|
|
|
|
2002-06-25 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2004-04-14 03:03:14 +00:00
|
|
|
COMMENT= Not Erik's Windowing Toolkit: console I/O handling library#'
|
2000-02-13 01:57:46 +00:00
|
|
|
|
2000-04-24 15:50:30 +00:00
|
|
|
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang \
|
|
|
|
popt.0:${PORTSDIR}/devel/popt
|
2000-02-13 01:57:46 +00:00
|
|
|
|
2002-10-13 06:17:07 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-02-13 01:57:46 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-10-13 06:17:07 +00:00
|
|
|
SOVERSION= 51
|
2002-03-17 12:09:03 +00:00
|
|
|
TCL_VERSION?= tcl8.3
|
|
|
|
TCL_NODOT= ${TCL_VERSION:S/.//}
|
2002-10-13 06:17:07 +00:00
|
|
|
MAKE_ENV+= CC=${CC} PCFLAGS="${CFLAGS}" TCLVERSION="${TCL_VERSION}"
|
|
|
|
PLIST_SUB+= SOVERSION=${SOVERSION} \
|
|
|
|
EXAMPLESDIR="${EXAMPLESDIR:S,${PREFIX}/,,}"
|
2000-02-13 01:57:46 +00:00
|
|
|
|
2003-01-15 05:43:18 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
2002-03-17 12:09:03 +00:00
|
|
|
PYTHONSUFFIX= -${PYTHON_PKGNAMEPREFIX:S/-//}
|
|
|
|
BUILD_DEPENDS+= ${PYDISTUTILS}
|
|
|
|
USE_PYTHON= yes
|
|
|
|
MAKE_ENV+= WITH_PYTHON=yes
|
|
|
|
PLIST_SUB+= PYTHONOPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PYTHONOPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-01-15 05:43:18 +00:00
|
|
|
.if defined(WITH_TCL)
|
2002-03-17 12:09:03 +00:00
|
|
|
TCLSUFFIX= -${TCL_NODOT}
|
|
|
|
LIB_DEPENDS+= ${TCL_NODOT}:${PORTSDIR}/lang/${TCL_NODOT}
|
|
|
|
MAKE_ENV+= WITH_TCL=yes
|
|
|
|
PLIST_SUB+= TCLOPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TCLOPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-04-14 03:03:14 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} <= 500038
|
2002-10-13 06:17:07 +00:00
|
|
|
PATCH_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://people.freebsd.org/~perky/distfiles/
|
|
|
|
PATCH_SITE_SUBDIR= perky
|
|
|
|
PATCHFILES= newt-${PORTVERSION}-dei18n.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
I18NSUFFIX= -noi18n
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's,^\(SONAME=\).*,\1${SOVERSION},g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
|
2003-01-15 05:43:18 +00:00
|
|
|
.if defined(WITH_PYTHON)
|
2002-03-17 12:09:03 +00:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} ${FILESDIR}/setup.py build
|
|
|
|
|
|
|
|
post-install:
|
2002-10-13 06:17:07 +00:00
|
|
|
@cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} ${FILESDIR}/setup.py \
|
|
|
|
install --prefix=${PREFIX}
|
2002-03-17 12:09:03 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
2002-10-13 06:17:07 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/peanuts.py ${WRKSRC}/popcorn.py \
|
|
|
|
${EXAMPLESDIR}
|
2002-03-17 12:09:03 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2004-04-14 03:03:14 +00:00
|
|
|
.include <bsd.port.post.mk>
|