Lines 1-13
Link Here
|
1 |
# $FreeBSD: head/devel/newt/Makefile 379211 2015-02-18 15:16:43Z amdmi3 $ |
1 |
# $FreeBSD: head/devel/newt/Makefile 379211 2015-02-18 15:16:43Z amdmi3 $ |
2 |
|
2 |
|
3 |
PORTNAME= newt |
3 |
PORTNAME= newt |
4 |
PORTVERSION= 0.52.17 |
4 |
PORTVERSION= 0.52.18 |
5 |
CATEGORIES= devel |
5 |
CATEGORIES= devel |
6 |
MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/ |
6 |
MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/ |
7 |
|
7 |
|
8 |
MAINTAINER= ports@FreeBSD.org |
8 |
MAINTAINER= ports@FreeBSD.org |
9 |
COMMENT= Not Eriks Windowing Toolkit: console I/O handling library |
9 |
COMMENT= Not Eriks Windowing Toolkit: console I/O handling library |
10 |
|
10 |
|
|
|
11 |
LICENSE= GPLv2 |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
11 |
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 \ |
14 |
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 \ |
12 |
libpopt.so:${PORTSDIR}/devel/popt |
15 |
libpopt.so:${PORTSDIR}/devel/popt |
13 |
|
16 |
|
Lines 26-36
Link Here
|
26 |
SUB_FILES= pkgIndex.tcl |
29 |
SUB_FILES= pkgIndex.tcl |
27 |
SUB_LIST= VERSION="${PORTVERSION}" |
30 |
SUB_LIST= VERSION="${PORTVERSION}" |
28 |
|
31 |
|
29 |
OPTIONS_DEFINE= NLS TCL |
32 |
OPTIONS_DEFINE= NLS PYTHON TCL |
|
|
33 |
OPTIONS_DEFAULT= PYTHON |
30 |
OPTIONS_SUB= yes |
34 |
OPTIONS_SUB= yes |
31 |
|
35 |
|
32 |
NLS_USES= gettext |
36 |
NLS_USES= gettext |
33 |
NLS_CONFIGURE_ENABLE= nls |
37 |
NLS_CONFIGURE_ENABLE= nls |
|
|
38 |
PYTHON_USES= python |
39 |
PYTHON_CONFIGURE_WITH= python |
34 |
TCL_USES= tcl |
40 |
TCL_USES= tcl |
35 |
TCL_CONFIGURE_ENV= ac_cv_c_tclconfig=${TCL_LIBDIR:Q} |
41 |
TCL_CONFIGURE_ENV= ac_cv_c_tclconfig=${TCL_LIBDIR:Q} |
36 |
TCL_CONFIGURE_WITH= tcl |
42 |
TCL_CONFIGURE_WITH= tcl |
Lines 38-45
Link Here
|
38 |
|
44 |
|
39 |
SOVERSION= ${PORTVERSION:R:E} |
45 |
SOVERSION= ${PORTVERSION:R:E} |
40 |
|
46 |
|
41 |
.include <bsd.port.options.mk> |
|
|
42 |
|
43 |
post-patch: |
47 |
post-patch: |
44 |
@${REINPLACE_CMD} -e \ |
48 |
@${REINPLACE_CMD} -e \ |
45 |
'/^SONAME/s|=.*|=${SOVERSION}| ; \ |
49 |
'/^SONAME/s|=.*|=${SOVERSION}| ; \ |
Lines 52-71
Link Here
|
52 |
/make -C/s|^|#| ; \ |
56 |
/make -C/s|^|#| ; \ |
53 |
/whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in |
57 |
/whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in |
54 |
|
58 |
|
|
|
59 |
post-patch-PYTHON-on: |
60 |
@${REINPLACE_CMD} -e \ |
61 |
'/PYTHONVERS/s|=.*|=${PYTHON_VERSION}|' ${WRKSRC}/configure |
62 |
|
55 |
post-install: |
63 |
post-install: |
56 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail |
64 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail |
57 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewt.so |
65 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnewt.so |
58 |
.if ${PORT_OPTIONS:MNLS} |
66 |
|
59 |
@(cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \ |
67 |
post-install-NLS-on: |
60 |
${MAKEFILE} ${MAKE_ARGS} datadir=${STAGEDIR}${PREFIX}/share \ |
68 |
@(cd ${WRKSRC}/po && ${DO_MAKE_BUILD} ${MAKE_ARGS} \ |
61 |
${INSTALL_TARGET}) |
69 |
datadir=${STAGEDIR}${PREFIX}/share ${INSTALL_TARGET}) |
62 |
.endif |
70 |
|
63 |
.if ${PORT_OPTIONS:MTCL} |
71 |
post-install-PYTHON-on: |
|
|
72 |
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_snack.so |
73 |
|
74 |
post-install-TCL-on: |
64 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION} |
75 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION} |
65 |
(cd ${WRKSRC} && ${INSTALL_LIB} whiptcl.so \ |
76 |
(cd ${WRKSRC} && ${INSTALL_LIB} whiptcl.so \ |
66 |
${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) |
77 |
${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) |
67 |
(cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl \ |
78 |
(cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl \ |
68 |
${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) |
79 |
${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) |
69 |
.endif |
|
|
70 |
|
80 |
|
71 |
.include <bsd.port.mk> |
81 |
.include <bsd.port.mk> |