diff options
author | Pawel Pekala <pawel@FreeBSD.org> | 2011-12-25 14:29:44 +0000 |
---|---|---|
committer | Pawel Pekala <pawel@FreeBSD.org> | 2011-12-25 14:29:44 +0000 |
commit | d6309fd84dbba4a51422fd8603697ca45a6d445f (patch) | |
tree | 268c52a8c90d493797180c5e13ca4e297fe1299b /x11-toolkits/termit/Makefile | |
parent | abcb878f8422975b31dee88021cb153754845ccb (diff) | |
download | ports-d6309fd84dbba4a51422fd8603697ca45a6d445f.tar.gz ports-d6309fd84dbba4a51422fd8603697ca45a6d445f.zip |
Notes
Diffstat (limited to 'x11-toolkits/termit/Makefile')
-rw-r--r-- | x11-toolkits/termit/Makefile | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/x11-toolkits/termit/Makefile b/x11-toolkits/termit/Makefile index 90379cd914c0..81341dcb4e58 100644 --- a/x11-toolkits/termit/Makefile +++ b/x11-toolkits/termit/Makefile @@ -6,11 +6,11 @@ # PORTNAME= termit -PORTVERSION= 2.9.2 +PORTVERSION= 2.9.3 CATEGORIES= x11-toolkits gnome MASTER_SITES= http://cloud.github.com/downloads/nonstop/termit/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= pawel@FreeBSD.org COMMENT= Small terminal emulator LICENSE= GPLv2 @@ -24,26 +24,36 @@ MAKE_JOBS_SAFE= yes MAN1= ${PORTNAME}.1 +TERMIT_ETC= ${PREFIX}/etc/xdg/${PORTNAME} + +.if defined(WITH_DEBUG) +CMAKE_ARGS+= -DDEBUG:BOOL=YES +.endif + +.if defined(WITHOUT_NLS) +CMAKE_ARGS+= -DENABLE_NLS:BOOL=NO +PLIST_SUB+= NLS="@comment " +.else +PLIST_SUB+= NLS="" +.endif + post-patch: - @${REINPLACE_CMD} -e \ - '/doc/s|^|#|' ${WRKSRC}/CMakeLists.txt - @${REINPLACE_CMD} -e \ - 's| /etc| etc|' ${WRKSRC}/etc/CMakeLists.txt - @${REINPLACE_CMD} -e \ - 's|:/etc|:${PREFIX}/etc| ; \ - s|"/etc|"${PREFIX}/etc|' ${WRKSRC}/src/lua_conf.c +.if !defined(NOPORTDOCS) + @${REINPLACE_CMD} 's|../COPYING||' ${WRKSRC}/doc/CMakeLists.txt +.else + @${REINPLACE_CMD} '/TERMIT_DOCS/s|^|#|' ${WRKSRC}/doc/CMakeLists.txt +.endif + @${REINPLACE_CMD} 's|share/man|man|' ${WRKSRC}/doc/CMakeLists.txt + @${REINPLACE_CMD} 's|ADD_SUBDIRECTORY(etc)||' ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} 's|/etc|${PREFIX}/etc|' ${WRKSRC}/src/lua_conf.c post-install: - ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1 - @${MKDIR} ${PREFIX}/share/applications - ${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop ${PREFIX}/share/applications - @${MKDIR} ${PREFIX}/share/pixmaps - ${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.svg ${PREFIX}/share/pixmaps -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in README lua_api.txt rc.lua.example - ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} + ${MKDIR} ${TERMIT_ETC} +.for file in colormaps.lua rc.lua utils.lua + ${CP} ${WRKSRC}/etc/termit/${file} ${TERMIT_ETC}/${file}.sample + @if [ ! -f ${TERMIT_ETC}/${file} ]; then \ + ${CP} -p ${TERMIT_ETC}/${file}.sample ${TERMIT_ETC}/${file}; \ + fi .endfor -.endif .include <bsd.port.mk> |