aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/spassgen/Makefile
blob: 535aaac804cf23dcd4d599e0c2770743b56dd45f (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
45
46
47
48
49
50
51
# New ports collection makefile for:    spassgen
# Date created:             29 Jul 2004
# Whom:                 Rashid N. Achilov <shelton@granch.ru>
#
# $FreeBSD$
#

PORTNAME=   spassgen
PORTVERSION=    1.5
PORTREVISION=   1
CATEGORIES= sysutils kde
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= spassgen

MAINTAINER= achilov-rn@askd.ru
COMMENT=    Qt GUI secure password generator

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_QT_VER= 3
USE_GMAKE=  yes
USE_BZIP2=  yes
USE_X_PREFIX=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
QMAKE_LOCATION= ${LOCALBASE}/bin

MAKE_ENV+=  QTDIR="${QT_PREFIX}"

.include <bsd.port.pre.mk>

pre-build:
    (cd ${WRKSRC}; \
      ${QMAKE_LOCATION}/qmake -project spassgen.pro; \
      ${SETENV} QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
     ${QMAKE_LOCATION}/qmake)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/spassgen ${PREFIX}/bin
.for i in 128x128 16x16 32x32 48x48 64x64
    ${MKDIR} ${DATADIR}/icons/hicolor/${i}/apps
    ${INSTALL_DATA} ${WRKSRC}/icons/${i}/password.png ${DATADIR}/icons/hicolor/${i}/apps
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in AUTHORS LICENCE README TODO INSTALL
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>