aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/qt-bluecurve-theme/Makefile
blob: 946b1f2016cc98a82753c6097db2e75c7c3a7f25 (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
# New ports collection makefile for:    bluecurve-unified
# Date created:         3 October 2002
# Whom:                 Eugeney Ryzhyk
#
# $FreeBSD$
#

PORTNAME=   qt-bluecurve-theme

COMMENT=    The Bluecurve QT theme

MASTERDIR=  ${.CURDIR}/../bluecurve-themes

USE_QT_VER= 3
BUILD_WRKSRC=   ${WRKSRC}/art/qt/Bluecurve

QT_CFLAGS=  -I${X11BASE}/include -DQT_THREAD_SUPPORT ${PTHREAD_CFLAGS}
QT_LIBS=    -L${X11BASE}/lib -lqt-mt ${PTHREAD_LIBS}
USE_X_PREFIX=   yes

SUB_FILES=  pkg-message

post-patch:
    @${REINPLACE_CMD} -e 's|GtkStyle|0|' ${BUILD_WRKSRC}/bluecurve.cpp
    @${REINPLACE_CMD} -e \
        's|^\(libraryPath\)=.*|\1=${X11BASE}/lib/plugins|' \
        ${WRKSRC}/art/qt/qtrc

do-build:
    cd ${BUILD_WRKSRC} && \
    ${MOC} -o bluecurve.moc bluecurve.h && \
    ${CXX} ${CXXFLAGS} -Wl,-export-dynamic -shared -fPIC \
        ${QT_CFLAGS} ${QT_LIBS} -o bluecurve.so \
            bluecurve.cpp plugin.cpp

do-install:
    ${MKDIR} ${PREFIX}/lib/plugins/styles
    ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/bluecurve.so ${PREFIX}/lib/plugins/styles
    ${MKDIR} ${PREFIX}/etc/settings
    ${INSTALL_DATA} ${WRKSRC}/art/qt/qtrc ${PREFIX}/etc/settings/qtrc.bluecurve

post-install:
    [ -f ${PREFIX}/etc/settings/qtrc ] || \
        ${INSTALL_DATA} ${WRKSRC}/art/qt/qtrc ${PREFIX}/etc/settings
    @${CAT} ${PKGMESSAGE}

.include "${MASTERDIR}/Makefile"