1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/deskutils/easystroke/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

55 lines
1.6 KiB
Makefile

# Created by: Tobias Kortkamp <tobias.kortkamp@gmail.com>
# $FreeBSD$
PORTNAME= easystroke
PORTVERSION= 0.6.0
PORTREVISION= 2
CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
MAINTAINER= t@tobik.me
COMMENT= Easystroke is a gesture-recognition application for X11
LICENSE= ISCL
BUILD_DEPENDS= help2man:misc/help2man \
${LOCALBASE}/include/xorg/xserver-properties.h:x11-servers/xorg-server
LIB_DEPENDS= libgtkmm-3.0.so:x11-toolkits/gtkmm30 \
libdbus-glib-1.so:devel/dbus-glib \
libboost_serialization.so:devel/boost-libs
USE_XORG= x11 xtst
USES= gettext gmake pkgconfig
INSTALLS_ICONS= yes
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
BUILD_DEPENDS+= intltool-merge:textproc/intltool
PLIST_SUB+= NLS=""
ALL_TARGET= easystroke.desktop all man
.else
# This builds easystroke without translations
ALL_TARGET= man
PLIST_SUB+= NLS="@comment "
# Create a .desktop file without translations.
# It's usually created by intltool-merge during the build.
pre-build:
@${CP} ${WRKSRC}/${PORTNAME}.desktop.in ${WRKSRC}/${PORTNAME}.desktop
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.svg ${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MNLS}
(cd ${WRKSRC}/po/ && \
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/locale/ "-name *.mo")
.endif
.include <bsd.port.mk>