1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

56 lines
2.0 KiB
Makefile

# Created by: Haowu Ge <ghw@7axu.com>
# $FreeBSD$
PORTNAME= remotebox
PORTVERSION= 1.8.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://remotebox.knobgoblin.org.uk/downloads/
DISTNAME= RemoteBox-${PORTVERSION}
MAINTAINER= ghw@7axu.com
COMMENT= Open Source VirtualBox Client with Remote Management
LICENSE= GPLv2
RUN_DEPENDS= p5-Gtk2>=0:x11-toolkits/p5-Gtk2 \
p5-SOAP-Lite>=0:net/p5-SOAP-Lite \
rdesktop:net/rdesktop
LICENSE_FILE_GPLv2= ${WRKSRC}/docs/COPYING
NO_BUILD= yes
USES= shebangfix tar:bzip2
SHEBANG_FILES= remotebox
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|docs/remotebox|share/doc/remotebox/remotebox|' ${WRKSRC}/remotebox
@${REINPLACE_CMD} -e 's|$$Bin/|${PREFIX}/|' ${WRKSRC}/remotebox
@${REINPLACE_CMD} -e 's|$$Bin/|${PREFIX}/|' ${WRKSRC}/share/remotebox/rbox_gui_init.pl
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/*.pl ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/*.pm ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/share/remotebox/remotebox.xml ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}/icons/os
${MKDIR} ${STAGEDIR}${DATADIR}/icons/gueststatus
${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/*.png ${STAGEDIR}${DATADIR}/icons
${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/os/*.png ${STAGEDIR}${DATADIR}/icons/os
${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/gueststatus/*.png ${STAGEDIR}${DATADIR}/icons/gueststatus
${INSTALL_DATA} ${WRKSRC}/share/remotebox/icons/remotebox.png ${STAGEDIR}${PREFIX}/share/pixmaps
${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/docs/remotebox.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/docs/changelog.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>