2003-08-03 12:29:00 +02:00
|
|
|
# New ports collection makefile for: qscintilla
|
|
|
|
# Date created: 2003-08-02
|
|
|
|
# Whom: arved
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= qscintilla
|
2008-05-02 12:00:00 +02:00
|
|
|
PORTVERSION= ${QSCI1_VERSION}
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
2003-08-03 12:29:00 +02:00
|
|
|
CATEGORIES= x11-toolkits
|
2008-05-02 12:00:00 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITES_QSCI1}
|
|
|
|
DISTNAME= ${QSCI1_DISTNAME}
|
2003-08-03 12:29:00 +02:00
|
|
|
|
2009-02-14 23:58:55 +01:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2005-09-05 18:53:17 +02:00
|
|
|
COMMENT= QT port of the Scintilla C++ editor class
|
2003-08-03 12:29:00 +02:00
|
|
|
|
2004-02-26 21:59:36 +01:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
|
2005-02-25 15:30:37 +01:00
|
|
|
USE_QT_VER= 3
|
2007-02-13 01:16:29 +01:00
|
|
|
MAKE_ENV= QTDIR="${QT_PREFIX}"
|
2006-12-10 23:07:27 +01:00
|
|
|
USE_LDCONFIG= yes
|
2003-08-03 12:29:00 +02:00
|
|
|
|
2005-09-05 18:53:17 +02:00
|
|
|
OPTIONS= DESIGNER_PLUGIN "Install plugin for Qt Designer" on \
|
|
|
|
DOCS "Install documentation" on \
|
|
|
|
EXAMPLES "Install examples" on \
|
|
|
|
LANG_DE "Install German translation" on \
|
|
|
|
LANG_FR "Install French translation" on \
|
|
|
|
LANG_PTBR "Install Brazilian Portuguese translation" on \
|
|
|
|
LANG_RU "Install Russian translation" on
|
|
|
|
|
|
|
|
QMAKE= ${LOCALBASE}/bin/qmake
|
|
|
|
SPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
PLUGINDIR= ${LOCALBASE}/lib/plugins/designer
|
2005-09-05 18:53:17 +02:00
|
|
|
|
2008-05-02 12:00:00 +02:00
|
|
|
.include "../../devel/py-sip/files/bsd.pyqt.mk"
|
2005-09-05 18:53:17 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS) || defined(WITHOUT_DOCS)
|
|
|
|
PLIST_SUB+= DOCS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DOCS=""
|
|
|
|
.endif
|
2008-05-02 12:00:00 +02:00
|
|
|
.if defined(NOPORTEXAMPLES) || defined(WITHOUT_EXAMPLES)
|
2005-09-05 18:53:17 +02:00
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_DESIGNER_PLUGIN)
|
|
|
|
PLIST_SUB+= DESIGNER_PLUGIN="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DESIGNER_PLUGIN=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LANG_DE)
|
|
|
|
PLIST_SUB+= LANG_DE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LANG_DE=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LANG_FR)
|
|
|
|
PLIST_SUB+= LANG_FR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LANG_FR=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LANG_PTBR)
|
|
|
|
PLIST_SUB+= LANG_PTBR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LANG_PTBR=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LANG_RU)
|
|
|
|
PLIST_SUB+= LANG_RU="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LANG_RU=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_LANG_DE) && defined(WITHOUT_LANG_FR) && defined(WITHOUT_LANG_PTBR) && defined(WITHOUT_LANG_RU)
|
|
|
|
PLIST_SUB+= TRANSLATIONS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TRANSLATIONS=""
|
|
|
|
.endif
|
|
|
|
|
2003-08-03 12:29:00 +02:00
|
|
|
do-configure:
|
2005-09-05 18:53:17 +02:00
|
|
|
( cd ${WRKSRC}/qt && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${QMAKE} -spec ${SPEC} qscintilla.pro )
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
( cd ${WRKSRC}/qt && \
|
|
|
|
${CAT} qscintilla.pro | ${GREP} -v DESTDIR > qscintilla.tmp && \
|
|
|
|
${CAT} Makefile | ${GREP} -v DEL_FILE | ${GREP} -v MOVE | \
|
|
|
|
${GREP} -v DESTDIR > Makefile.tmp && \
|
|
|
|
${MV} qscintilla.tmp qscintilla.pro && \
|
|
|
|
${MV} Makefile.tmp Makefile && \
|
|
|
|
cd ${WRKSRC}/designer && \
|
|
|
|
${CAT} designer.pro | ${GREP} -v lqscintilla > designer.tmp && \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${ECHO} "INCPATH += ${LOCALBASE}/include ../qt" >> \
|
2005-09-05 18:53:17 +02:00
|
|
|
designer.tmp && \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${ECHO} "LIBS += -L../qt -L${LOCALBASE}/lib -lqscintilla" >> \
|
2005-09-05 18:53:17 +02:00
|
|
|
designer.tmp && \
|
|
|
|
${ECHO} "DESTDIR = ." >> designer.tmp && \
|
|
|
|
${MV} designer.tmp designer.pro )
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
( cd ${WRKSRC}/qt && ${SETENV} ${MAKE_ENV} ${MAKE} )
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if !defined(WITHOUT_DESIGNER_PLUGIN)
|
|
|
|
( cd ${WRKSRC}/designer && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${QMAKE} -spec ${SPEC} designer.pro && ${MAKE} )
|
|
|
|
.endif
|
2003-08-03 12:29:00 +02:00
|
|
|
|
|
|
|
do-install:
|
2005-09-05 18:53:17 +02:00
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} qt/qextscintilla*.h ${PREFIX}/include && \
|
2006-12-10 23:07:27 +01:00
|
|
|
${INSTALL_DATA} qt/libqscintilla.so.7.0.1 \
|
|
|
|
${PREFIX}/lib/libqscintilla.so.7 && \
|
|
|
|
${LN} -sf ${PREFIX}/lib/libqscintilla.so.7 \
|
2005-09-05 18:53:17 +02:00
|
|
|
${PREFIX}/lib/libqscintilla.so )
|
|
|
|
.if !defined(WITHOUT_DESIGNER_PLUGIN)
|
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} designer/libqscintillaplugin.so ${PLUGINDIR} )
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LANG_DE) || !defined(WITHOUT_LANG_FR) || !defined(WITHOUT_LANG_PTBR) || !defined(WITHOUT_LANG_RU)
|
|
|
|
${MKDIR} -m 0755 ${DATADIR}/translations
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LANG_DE)
|
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} qt/qscintilla_de.qm ${DATADIR}/translations )
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LANG_FR)
|
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} qt/qscintilla_fr.qm ${DATADIR}/translations )
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LANG_PTBR)
|
|
|
|
( cd ${WRKSRC} && \
|
2006-12-10 23:07:27 +01:00
|
|
|
${INSTALL_DATA} qt/qscintilla_pt_br.qm ${DATADIR}/translations )
|
2005-09-05 18:53:17 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_LANG_RU)
|
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} qt/qscintilla_ru.qm ${DATADIR}/translations )
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
|
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${MKDIR} -m 0755 ${DOCSDIR}/html ${DOCSDIR}/Scintilla && \
|
|
|
|
${INSTALL_DATA} ChangeLog NEWS README ${DOCSDIR} && \
|
|
|
|
${INSTALL_DATA} doc/qscintilla.dxy ${DOCSDIR} && \
|
|
|
|
${INSTALL_DATA} doc/html/* ${DOCSDIR}/html && \
|
|
|
|
${INSTALL_DATA} doc/Scintilla/* ${DOCSDIR}/Scintilla )
|
|
|
|
.endif
|
2008-05-02 12:00:00 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES) && !defined(WITHOUT_EXAMPLES)
|
2005-09-05 18:53:17 +02:00
|
|
|
( cd ${WRKSRC} && \
|
|
|
|
${MKDIR} -m 0755 ${EXAMPLESDIR} && \
|
|
|
|
${INSTALL_DATA} example/* ${EXAMPLESDIR} )
|
|
|
|
.endif
|
2003-08-03 12:29:00 +02:00
|
|
|
|
2005-09-05 18:53:17 +02:00
|
|
|
.include <bsd.port.post.mk>
|