aboutsummaryrefslogtreecommitdiffstats
path: root/audio/qsampler/Makefile
blob: bcdc00f6a14b2bc5ea9fac2034389a86924f353b (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
# Created by: trasz <trasz@FreeBSD.org
# $FreeBSD$

PORTNAME=   qsampler
PORTVERSION=    0.3.1
CATEGORIES= audio
MASTER_SITES=   SF \
        http://download.linuxsampler.org/packages/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt-based front end to LinuxSampler

LICENSE=    GPLv2+

LIB_DEPENDS=    libgig.so:audio/libgig \
        liblscp.so:audio/liblscp
RUN_DEPENDS=    linuxsampler:audio/linuxsampler

USES=       gmake pkgconfig shared-mime-info
QT_NONSTANDARD= yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  ac_cv_path_ac_cv_qmake=${QMAKE} \
        ac_cv_path_ac_moc=${MOC} \
        ac_cv_path_ac_uic=${UIC} \
        ac_cv_path_ac_rcc=${RCC} \
        ac_cv_path_ac_lupdate=${LUPDATE} \
        ac_cv_path_ac_lrelease=${LRELEASE}
INSTALLS_ICONS= yes

OPTIONS_SINGLE=     TOOLKIT
OPTIONS_SINGLE_TOOLKIT= QT4 QT5
OPTIONS_DEFAULT=    QT4

QT4_USE=        qt4=corelib,gui \
            qt4=linguisttools_build \
            qt4=moc_build,qmake_build,rcc_build,uic_build
QT4_CONFIGURE_ENABLE=   qt4
QT5_USE=        qt5=core,gui,widgets \
            qt5=buildtools_build,linguisttools_build,qmake_build
QT5_CONFIGURE_ENABLE=   qt5
QT5_CXXFLAGS=       -fPIC
TOOLKIT_DESC=       Qt toolkit

post-configure:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} -o ${PORTNAME}.mak \
        ${QMAKE_ARGS}

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qsampler

.include <bsd.port.mk>