freebsd-ports/deskutils/lxshortcut/Makefile
Rusmir Dusko 47375b3a4b LXShortcut is a small program used to edit easily application shortcuts
created with freedesktop.org Desktop Entry spec.

It’s mainly designed to be called by other LXDE components, and not directly
used by the users. If you want to use it manually, see

     lxshortcut --help

WWW: http://wiki.lxde.org/en/LXShortCut

Approved by:	wg/pawel (mentors)
2013-10-02 17:03:26 +00:00

56 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= lxshortcut
PORTVERSION= 0.1.2
CATEGORIES= deskutils
MASTER_SITES= SF/lxde/LXShortcut%20%28edit%20app%20shortcut%29/LXShortcut%20${PORTVERSION}/ \
SF/nemysisfreebsdp/lxde/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Small utility used to edit easily application shortcuts
LICENSE= GPLv3
USES= gmake pkgconfig
USE_GNOME= gtk20 intlhack
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= README
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
SUB_FILES= ${PORTNAME}-start
DESKTOP_ENTRIES="LXShortcut" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}-start" "Settings;GTK;DesktopSettings;" true
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -i '' '/g_thread_init/,/gdk_threads_init/d' \
${WRKSRC}/src/lxshortcut.c
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|src po|src|' \
${WRKSRC}/Makefile.in
.endif
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-start ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>