aboutsummaryrefslogtreecommitdiff
path: root/net/wpa_gui/Makefile
blob: 6e703af2bd1d7fb89e7ee78cae751da1e6a2a571 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Ilya Bakulin <webmaster@kibab.com>
# $FreeBSD$

PORTNAME=	wpa_gui
PORTVERSION=	2.5
CATEGORIES=	net
MASTER_SITES=	http://w1.fi/releases/ \
		http://partmedia.users.sourceforge.net/dist/:icons \
		LOCAL/jgh/net/${PORTNAME}/:icons
DISTNAME=	wpa_supplicant-${PORTVERSION}
DISTFILES=	${DISTNAME}.tar.gz \
		wpa-gui-icons.tar.gz:icons

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Qt-based frontend for wpa_supplicant

LICENSE=	BSD3CLAUSE

WRKSRC_SUBDIR=	wpa_supplicant/wpa_gui-qt4

PLIST_FILES=	sbin/wpa_gui \
		share/applications/wpa_gui.desktop \
		share/icons/hicolor/16x16/apps/wpa_gui.png \
		share/icons/hicolor/scalable/apps/wpa_gui.svg

USE_QT4=	gui moc_build rcc_build uic_build
USES=		qmake

post-patch:
	@${REINPLACE_CMD} -e \
		'/^Exec/s|=.*|=${PREFIX}/sbin/wpa_gui|' \
		${WRKSRC}/wpa_gui.desktop

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/wpa_gui.desktop ${STAGEDIR}${PREFIX}/share/applications
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps
	${INSTALL_DATA} ${WRKDIR}/icons/hicolor/16x16/apps/wpa_gui.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
	${INSTALL_DATA} ${WRKSRC}/icons/wpa_gui.svg \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps

.include <bsd.port.mk>