aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/qtawesome/Makefile
blob: c1728012c5f3e685c1583d8d97a43552b34338f0 (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
# Created by: mi
# $FreeBSD$

PORTNAME=   qtawesome
PORTVERSION=    20150319
CATEGORIES= graphics devel

MAINTAINER= mi@aldan.algebra.com
COMMENT=    Embed Font Awesome glyphs in Qt-applications

LICENSE=    MIT

USE_GITHUB= yes
USES=       qmake

GH_ACCOUNT= gamecreature
GH_PROJECT= QtAwesome
GH_TAGNAME= d674aef

OPTIONS_SINGLE=     GUI
OPTIONS_SINGLE_GUI= QT4 QT5
OPTIONS_DEFAULT=    QT4

QT4_USE=    qt4=corelib,gui,qmake_build
QT5_USE=    qt5=core,gui,qmake_build
MAKE_ARGS+= ${PORT_OPTIONS:MQT*:S/QT/QT=/}

WRKSRC= ${WRKDIR}/QtAwesome-${GH_TAGNAME}/QtAwesome
#MAKEFILE=  ${FILESDIR}/BSDmakefile
EXTRACT_AFTER_ARGS=--no-same-owner --no-same-permissions    \
        --exclude QtAwesomeSample --exclude fonts
PLIST_FILES=    lib/libQtAwesome.so.1.0.0 lib/libQtAwesome.so.1.0 \
        lib/libQtAwesome.so.1 lib/libQtAwesome.so   \
        include/QtAwesome.h
USE_LDCONFIG=   yep...

post-patch:
    ${REINPLACE_CMD} -e 's,staticlib,sharedlib,'    \
        -e '/^RESOURCES/,$$d'   \
        ${WRKSRC}/QtAwesome.pro

.include <bsd.port.mk>