mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# 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}
|
|
|
|
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"
|