diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-16 02:34:36 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-16 02:34:36 +0800 |
commit | 8719f1f17c3e8763e3881a8baf2d9c69db921115 (patch) | |
tree | 8cf5d9710f981c0d9de54578e8c7947e757f4a8d /x11-fm | |
parent | 270ff0428224da7598394ffb3f1b3bf3167573a1 (diff) | |
download | freebsd-ports-gnome-8719f1f17c3e8763e3881a8baf2d9c69db921115.tar.gz freebsd-ports-gnome-8719f1f17c3e8763e3881a8baf2d9c69db921115.tar.zst freebsd-ports-gnome-8719f1f17c3e8763e3881a8baf2d9c69db921115.zip |
- Switch to options helpers
Diffstat (limited to 'x11-fm')
-rw-r--r-- | x11-fm/rox-session/Makefile | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/x11-fm/rox-session/Makefile b/x11-fm/rox-session/Makefile index 408b2f42e382..2295a5338c9b 100644 --- a/x11-fm/rox-session/Makefile +++ b/x11-fm/rox-session/Makefile @@ -26,18 +26,12 @@ USE_XORG= x11 xext xtst xxf86vm PORTDOCS= Changes DBUS-API README OPTIONS_DEFINE= GDM DOCS +OPTIONS_SUB= yes GDM_DESC= Install GDM login manager SUB_FILES= ${PORTNAME} rox.desktop -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MGDM} -RUN_DEPENDS+= ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm -PLIST_SUB+= GDM="" -.else -PLIST_SUB+= GDM="@comment " -.endif +GDM_RUN_DEPENDS=${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm post-patch: @${FIND} ${WRKSRC} -name "*.orig" -delete @@ -50,20 +44,20 @@ do-build: @cd ${WRKSRC}/src/po && ./dist do-install: - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${WRKSRC} && ${CP} -r .DirIcon AppInfo.xml AppRun \ Environment Login Messages Options.xml ROX-Session \ ROX-Session.xml RunROX SetupPanel Styles browser images \ *.py *.pyc *.pyo ${STAGEDIR}${DATADIR} -.if ${PORT_OPTIONS:MGDM} - @${INSTALL_DATA} ${WRKDIR}/rox.desktop ${STAGEDIR}${PREFIX}/share/applications -.endif -.if ${PORT_OPTIONS:MDOCS} + +do-install-GDM-on: + ${INSTALL_DATA} ${WRKDIR}/rox.desktop ${STAGEDIR}${PREFIX}/share/applications + +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/Help/${f} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Help/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif .include <bsd.port.mk> |