aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2013-10-06 00:52:12 +0800
committerpawel <pawel@FreeBSD.org>2013-10-06 00:52:12 +0800
commitbebd8ef5ce7c14734cf71bde393decc69bff73ae (patch)
treeef8d301e100234219e816e79a4ba5a4492d3183e /x11-toolkits
parentf58de01d74db38687316751b37ce184041dec7b8 (diff)
downloadfreebsd-ports-gnome-bebd8ef5ce7c14734cf71bde393decc69bff73ae.tar.gz
freebsd-ports-gnome-bebd8ef5ce7c14734cf71bde393decc69bff73ae.tar.zst
freebsd-ports-gnome-bebd8ef5ce7c14734cf71bde393decc69bff73ae.zip
Add support for STAGEDIR
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/c++-gtk-utils/Makefile9
-rw-r--r--x11-toolkits/termit/Makefile15
-rw-r--r--x11-toolkits/termit/pkg-plist1
3 files changed, 3 insertions, 22 deletions
diff --git a/x11-toolkits/c++-gtk-utils/Makefile b/x11-toolkits/c++-gtk-utils/Makefile
index b161d806464d..e950d7c793bb 100644
--- a/x11-toolkits/c++-gtk-utils/Makefile
+++ b/x11-toolkits/c++-gtk-utils/Makefile
@@ -28,13 +28,4 @@ OPTIONS_DEFINE= DEBUG DOCS
DEBUG_CONFIGURE_ON= --enable-debug
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-post-configure:
-.if ! ${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} '/^SUBDIRS/ s|docs|| ; /^pkgdoc_DATA/d' \
- ${WRKSRC}/Makefile
-.endif
-
.include <bsd.port.mk>
diff --git a/x11-toolkits/termit/Makefile b/x11-toolkits/termit/Makefile
index 49a59d098f93..0a21dcb6f5cb 100644
--- a/x11-toolkits/termit/Makefile
+++ b/x11-toolkits/termit/Makefile
@@ -19,9 +19,7 @@ USE_GNOME= gdkpixbuf2 vte
CFLAGS+= -I${LOCALBASE}/include/vte-0.0
-MAN1= ${PORTNAME}.1
-
-TERMIT_ETC= ${PREFIX}/etc/xdg/${PORTNAME}
+TERMIT_ETC= ${STAGEDIR}${PREFIX}/etc/xdg/${PORTNAME}
OPTIONS_DEFINE= DEBUG DOCS NLS
OPTIONS_SUB= yes
@@ -31,15 +29,9 @@ DEBUG_CMAKE_ON= -DDEBUG:BOOL=YES
NLS_CMAKE_OFF= -DENABLE_NLS:BOOL=NO
NLS_USES= gettext
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
-.if ${PORT_OPTIONS:MDOCS}
- @${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
@@ -47,12 +39,9 @@ post-patch:
${WRKSRC}/src/CMakeLists.txt
post-install:
- ${MKDIR} ${TERMIT_ETC}
+ @${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
.include <bsd.port.mk>
diff --git a/x11-toolkits/termit/pkg-plist b/x11-toolkits/termit/pkg-plist
index b53b2bbe221b..66c63cec98fb 100644
--- a/x11-toolkits/termit/pkg-plist
+++ b/x11-toolkits/termit/pkg-plist
@@ -8,6 +8,7 @@ etc/xdg/termit/rc.lua.sample
@unexec if cmp -s %D/etc/xdg/termit/utils.lua.sample %D/etc/xdg/termit/utils.lua; then rm -f %D/etc/xdg/termit/utils.lua; fi
etc/xdg/termit/utils.lua.sample
@exec if [ ! -f %D/etc/xdg/termit/utils.lua ] ; then cp -p %D/%F %B/utils.lua; fi
+man/man1/termit.1.gz
share/applications/termit.desktop
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/lua_api.txt