mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
33 lines
946 B
Makefile
33 lines
946 B
Makefile
# $FreeBSD$
|
|
#
|
|
# handle dependency depends on desktop-file-utils and package regen
|
|
#
|
|
# Feature: desktop-file-utils
|
|
# Usage: USES=desktop-file-utils
|
|
# Valid ARGS: does not require args
|
|
#
|
|
# MAINTAINER: gnome@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_DESKTOP_FILE_UTILS_MK)
|
|
_INCLUDE_USES_DESKTOP_FILE_UTILS_MK= yes
|
|
|
|
.if defined(desktop-file-utils_ARGS)
|
|
IGNORE= USES=desktop-file-utils does not require args
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
|
|
RUN_DEPENDS+= update-desktop-database:${PORTSDIR}/devel/desktop-file-utils
|
|
|
|
desktop-file-post-install:
|
|
.if defined(NO_STAGE)
|
|
# run for port post-install
|
|
@-update-desktop-database -q
|
|
.endif
|
|
# plist entries for packages.
|
|
@${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \
|
|
>> ${TMPPLIST}; \
|
|
${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database -q > /dev/null || /usr/bin/true" \
|
|
>> ${TMPPLIST}
|
|
|
|
.endif
|