diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2013-11-06 15:13:25 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2013-11-06 15:13:25 +0000 |
commit | c0b6d64dd3198644df036a816655550014db0737 (patch) | |
tree | 18bbc6b1f6cfb7485ee1837d06819aa022757b90 /misc/tkrunit/Makefile | |
parent | dc43e1670c6c7aca8ff25a5dbeffee3a8856d835 (diff) |
Notes
Diffstat (limited to 'misc/tkrunit/Makefile')
-rw-r--r-- | misc/tkrunit/Makefile | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/misc/tkrunit/Makefile b/misc/tkrunit/Makefile index 4246b9baca01..4778934f87e1 100644 --- a/misc/tkrunit/Makefile +++ b/misc/tkrunit/Makefile @@ -11,26 +11,27 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} MAINTAINER= ports@FreeBSD.org COMMENT= GUI app launcher with completion and history +OPTIONS_DEFINE= EXAMPLES + LICENSE= GPLv2 WRKSRC= ${WRKDIR}/${PORTNAME} +USES+= tk NO_BUILD= yes -USE_TK_WRAPPER= yes - PORTEXAMPLES= ${PORTNAME:L} PLIST_FILES= bin/${PORTNAME} -NO_STAGE= yes +.include <bsd.port.options.mk> + post-patch: - @${REINPLACE_CMD} -e \ - 's|/usr/local/bin|${PREFIX}/bin|' ${WRKSRC}/runit.tcl + @${REINPLACE_CMD} -e 's|wish|${WISH}|g' ${WRKSRC}/runit.tcl do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/runit.tcl ${PREFIX}/bin/${PORTNAME} -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/runitrc.sample ${EXAMPLESDIR}/${PORTNAME:L} + ${INSTALL_SCRIPT} ${WRKSRC}/runit.tcl ${STAGEDIR}${PREFIX}/bin/${PORTNAME} +.if ${PORT_OPTIONS:MEXAMPLES} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/runitrc.sample ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME:L} @${ECHO_MSG} " " @${ECHO_MSG} "-------------------------------------------------------------------" @${ECHO_MSG} "===> Installing runitrc.sample in ${EXAMPLESDIR}/${PORTNAME:L}" |