aboutsummaryrefslogtreecommitdiff
path: root/graphics/qtgtl/Makefile
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2013-11-13 08:42:09 +0000
committerAlberto Villa <avilla@FreeBSD.org>2013-11-13 08:42:09 +0000
commit0796d28a7dadb562b16a867d0b59174290eb5a79 (patch)
tree05a3f1ea4e96d293d97262e22a8bc938df1e7b31 /graphics/qtgtl/Makefile
parent9bd61a7a2179676eff53b961e8f9960583f8d55c (diff)
downloadports-0796d28a7dadb562b16a867d0b59174290eb5a79.tar.gz
ports-0796d28a7dadb562b16a867d0b59174290eb5a79.zip
Notes
Diffstat (limited to 'graphics/qtgtl/Makefile')
-rw-r--r--graphics/qtgtl/Makefile29
1 files changed, 20 insertions, 9 deletions
diff --git a/graphics/qtgtl/Makefile b/graphics/qtgtl/Makefile
index f1c32f7aeee6..ca6574d0d1ff 100644
--- a/graphics/qtgtl/Makefile
+++ b/graphics/qtgtl/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= qtgtl
-PORTVERSION= 0.9.2
-PORTREVISION= 1
+PORTVERSION= 0.9.3
CATEGORIES= graphics devel
MASTER_SITES= http://download.opengtl.org/
DISTNAME= libQtGTL-${PORTVERSION}
@@ -11,21 +10,33 @@ MAINTAINER= avilla@FreeBSD.org
COMMENT= Qt bindings for the Graphics Transformation Languages
LICENSE= LGPL20
-LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= GTLCore.0:${PORTSDIR}/graphics/opengtl
+LIB_DEPENDS= libGTLCore.so:${PORTSDIR}/graphics/opengtl
-USE_QT4= gui moc_build qmake_build rcc_build uic_build
+USE_QT4= corelib gui moc_build qmake_build rcc_build uic_build
+USES= cmake:outsource pkgconfig
USE_BZIP2= yes
-USES= cmake pkgconfig
USE_LDCONFIG= yes
-NO_STAGE= yes
+DESCR= ${.CURDIR:H:H}/graphics/opengtl/pkg-descr
+
+PORTEXAMPLES= QtCTL QtShiva
+
+OPTIONS_DEFINE= EXAMPLES
+
pre-configure:
- ${REINPLACE_CMD} -e 's|set(QTGTL_LIB_SOVERSION.*|set(QTGTL_LIB_SOVERSION "0")|' \
+ @${REINPLACE_CMD} -e 's,set(QTGTL_LIB_SOVERSION.*,set(QTGTL_LIB_SOVERSION "0"),' \
${PATCH_WRKSRC}/CMakeLists.txt
- ${REINPLACE_CMD} -e 's|$${LIB_INSTALL_DIR}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
+ @${REINPLACE_CMD} -e 's,$${LIB_INSTALL_DIR}/pkgconfig,${PREFIX}/libdata/pkgconfig,g' \
${PATCH_WRKSRC}/QtGTL/CMakeLists.txt \
${PATCH_WRKSRC}/QtShiva/CMakeLists.txt
+post-install:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for f in ${PORTEXAMPLES}
+ cd ${WRKSRC}/examples && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/${f}/${f:S/Qt/q/} \
+ ${STAGEDIR}${EXAMPLESDIR}/${f}
+.endfor
+
.include <bsd.port.mk>