diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2013-09-27 09:29:19 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2013-09-27 09:29:19 +0000 |
commit | 9bc4c96e4f4de192ff487233e608abe140037476 (patch) | |
tree | f4d7280fe56d8f6f93f4a1b1f631b21e5eb6668e | |
parent | 896a6ea2ee6273065566a7f0c7b8e8ae2783e26b (diff) | |
download | ports-9bc4c96e4f4de192ff487233e608abe140037476.tar.gz ports-9bc4c96e4f4de192ff487233e608abe140037476.zip |
- Convert to USES+= tcl
- Install the Tcl extension under ${PREFIX}/lib instad of ${TCLLIB}
- STAGE-clean
Notes
Notes:
svn path=/head/; revision=328446
-rw-r--r-- | devel/newt/Makefile | 31 | ||||
-rw-r--r-- | devel/newt/pkg-plist | 7 |
2 files changed, 18 insertions, 20 deletions
diff --git a/devel/newt/Makefile b/devel/newt/Makefile index be9bb1072789..c34849b7f261 100644 --- a/devel/newt/Makefile +++ b/devel/newt/Makefile @@ -6,14 +6,14 @@ CATEGORIES= devel MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/ MAINTAINER= ports@FreeBSD.org -COMMENT= Not Erik's Windowing Toolkit: console I/O handling library +COMMENT= Not Eriks Windowing Toolkit: console I/O handling library -LIB_DEPENDS= slang:${PORTSDIR}/devel/libslang2 \ - popt:${PORTSDIR}/devel/popt +LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 \ + libpopt.so:${PORTSDIR}/devel/popt OPTIONS_DEFINE= PYTHON TCL NLS -USE_GMAKE= yes +USES+= gmake GNU_CONFIGURE= yes MAKE_ENV= PCFLAGS="${CFLAGS}" TCLVERSION="tcl${TCL_VER}" USE_LDCONFIG= yes @@ -27,11 +27,8 @@ PLIST_SUB= SOVERSION="${SOVERSION}" \ SUB_LIST= VERSION="${PORTVERSION}" -MAN1= whiptail.1 - SOVERSION= ${PORTVERSION:R:E} -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} @@ -52,7 +49,7 @@ PLIST_SUB+= PYTHONOPT="@comment " .endif .if ${PORT_OPTIONS:MTCL} -USE_TCL= 84+ +USES+= tcl MAKE_ENV+= TCL_LIBDIR=${TCL_LIBDIR:Q} CPPFLAGS+= -I${TCL_INCLUDEDIR:Q} SUB_FILES+= pkgIndex.tcl @@ -72,7 +69,7 @@ post-patch: /^pkgconfigdir/s|=.*|=${PREFIX}/libdata/pkgconfig| ; \ s| -g | |g ; \ /make -C/s|^|#| ; \ - /whiptcl.so/s|install|${TRUE}|' ${WRKSRC}/Makefile.in + /whiptcl.$$(SOEXT)/s|install|${TRUE}|' ${WRKSRC}/Makefile.in post-build: apply-slist .if ${PORT_OPTIONS:MPYTHON} @@ -82,24 +79,24 @@ post-build: apply-slist .endif post-install: - @${STRIP_CMD} ${PREFIX}/bin/whiptail + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/whiptail .if ${PORT_OPTIONS:MNLS} @(cd ${WRKSRC}/po && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ - ${MAKEFILE} ${MAKE_ARGS} datadir=${PREFIX}/share \ + ${MAKEFILE} ${MAKE_ARGS} datadir=${STAGEDIR}${PREFIX}/share \ ${INSTALL_TARGET}) .endif .if ${PORT_OPTIONS:MPYTHON} @(cd ${WRKSRC} && ${MAKE_ENV} ${PYTHON_CMD} ${WRKDIR}/setup.py \ - install --prefix=${PREFIX}) + install --prefix=${STAGEDIR}${PREFIX}) .endif .if ${PORT_OPTIONS:MTCL} - @${MKDIR} ${TCL_LIBDIR}/whip - (cd ${WRKSRC} && ${INSTALL_DATA} whiptcl.so ${TCL_LIBDIR}/whip) - (cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl ${TCL_LIBDIR}/whip) + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION} + (cd ${WRKSRC} && ${INSTALL_DATA} whiptcl.so ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) + (cd ${WRKDIR} && ${INSTALL_DATA} pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/whip${PORTVERSION}) .endif .if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - (cd ${WRKSRC} && ${INSTALL_SCRIPT} peanuts.py popcorn.py ${EXAMPLESDIR}) + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC} && ${INSTALL_SCRIPT} peanuts.py popcorn.py ${STAGEDIR}${EXAMPLESDIR}) .endif .include <bsd.port.mk> diff --git a/devel/newt/pkg-plist b/devel/newt/pkg-plist index 7a3592cc55d8..a89208dd8b83 100644 --- a/devel/newt/pkg-plist +++ b/devel/newt/pkg-plist @@ -4,12 +4,13 @@ lib/libnewt.a lib/libnewt.so lib/libnewt.so.%%SOVERSION%% lib/libnewt.so.%%VERSION%% +man/man1/whiptail.1.gz %%PYTHONOPT%%%%PYTHON_SITELIBDIR%%/_snack.so %%PYTHONOPT%%%%PYTHON_SITELIBDIR%%/_snackmodule.so %%PYTHONOPT%%%%PYTHON_SITELIBDIR%%/snack.py %%PYTHONOPT%%%%PYTHON_SITELIBDIR%%/snack.pyc -%%TCLOPT%%%%TCL_LIBDIR%%/whip/pkgIndex.tcl -%%TCLOPT%%%%TCL_LIBDIR%%/whip/whiptcl.so +%%TCLOPT%%lib/whip%%VERSION%%/pkgIndex.tcl +%%TCLOPT%%lib/whip%%VERSION%%/whiptcl.so libdata/pkgconfig/libnewt.pc %%PORTEXAMPLES%%%%EXAMPLESDIR%%/peanuts.py %%PORTEXAMPLES%%%%EXAMPLESDIR%%/popcorn.py @@ -121,4 +122,4 @@ libdata/pkgconfig/libnewt.pc %%NLS%%@dirrmtry share/locale/as/LC_MESSAGES %%NLS%%@dirrmtry share/locale/as %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% -%%TCLOPT%%@dirrm %%TCL_LIBDIR%%/whip +%%TCLOPT%%@dirrm lib/whip%%VERSION%% |