blob: 4f619cf1a53af6d9e4a93083d75f88f764bac5a4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# New ports collection makefile for: newt
# Date created: 08 Jan 2000
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= newt
PORTVERSION= 0.51.0
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL} \
# ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/
MASTER_SITE_SUBDIR= perky
PKGNAMESUFFIX= ${PYTHONSUFFIX}${TCLSUFFIX}${I18NSUFFIX}
MAINTAINER= perky@FreeBSD.org
COMMENT= Not Erik's Windowing Toolkit: console I/O handling library#'
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang \
popt.0:${PORTSDIR}/devel/popt
USE_REINPLACE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
SOVERSION= 51
TCL_VERSION?= tcl8.3
TCL_NODOT= ${TCL_VERSION:S/.//}
MAKE_ENV+= CC=${CC} PCFLAGS="${CFLAGS}" TCLVERSION="${TCL_VERSION}"
PLIST_SUB+= SOVERSION=${SOVERSION} \
EXAMPLESDIR="${EXAMPLESDIR:S,${PREFIX}/,,}"
.if defined(WITH_PYTHON)
PYTHONSUFFIX= -${PYTHON_PKGNAMEPREFIX:S/-//}
BUILD_DEPENDS+= ${PYDISTUTILS}
USE_PYTHON= yes
MAKE_ENV+= WITH_PYTHON=yes
PLIST_SUB+= PYTHONOPT=""
.else
PLIST_SUB+= PYTHONOPT="@comment "
.endif
.if defined(WITH_TCL)
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
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 500038
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
.if defined(WITH_PYTHON)
post-build:
@cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} ${FILESDIR}/setup.py build
post-install:
@cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} ${FILESDIR}/setup.py \
install --prefix=${PREFIX}
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/peanuts.py ${WRKSRC}/popcorn.py \
${EXAMPLESDIR}
.endif
.endif
.include <bsd.port.post.mk>
|