aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/qt145
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-07-02 00:11:28 +0000
committerWill Andrews <will@FreeBSD.org>2000-07-02 00:11:28 +0000
commitb6f5d18c02ba6b99bebd7b252d8fb3cfb9b7646b (patch)
treecc575bbf72fd3c6b804a9edb80058adfd401f4e5 /x11-toolkits/qt145
parent55dc62917771120ab3f726076a8c8886cf37bbae (diff)
downloadports-b6f5d18c02ba6b99bebd7b252d8fb3cfb9b7646b.tar.gz
ports-b6f5d18c02ba6b99bebd7b252d8fb3cfb9b7646b.zip
Notes
Diffstat (limited to 'x11-toolkits/qt145')
-rw-r--r--x11-toolkits/qt145/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/x11-toolkits/qt145/Makefile b/x11-toolkits/qt145/Makefile
index 460f57479e6b..949dc2fa26c0 100644
--- a/x11-toolkits/qt145/Makefile
+++ b/x11-toolkits/qt145/Makefile
@@ -13,7 +13,6 @@ MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
MAINTAINER= will@FreeBSD.org
USE_GMAKE= yes
-INSTALLS_SHLIB= yes
USE_X_PREFIX= yes
USE_NEWGCC= yes
MAKE_ENV+= QTDIR=${WRKSRC} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CC="${CC}"
@@ -28,17 +27,29 @@ PLIST_SUB+= VERSION="${VER_MAJ}"
MAN1= moc.1
.include "${.CURDIR}/files/man3"
+.if defined(WANT_STATIC)
+STATIC= static
+.else
+STATIC= shared
+INSTALLS_SHLIB= yes
+.endif
+
post-configure:
- @${PERL} -pi -e "s:g\+\+:${CXX}:g" ${WRKSRC}/configs/freebsd-g++-shared
- @${PERL} -pi -e "s:/usr/X11R6:${PREFIX}:g" ${WRKSRC}/configs/freebsd-g++-shared
- @${PERL} -pi -e "s:%%CXXFLAGS%%:${CXXFLAGS}:g" ${WRKSRC}/configs/freebsd-g++-shared
- @${PERL} -pi -e "s:%%VERSION%%:${VERSION}:g" ${WRKSRC}/configs/freebsd-g++-shared
- @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} freebsd-g++-shared)
+ @${PERL} -pi -e "s:g\+\+:${CXX}:g" ${WRKSRC}/configs/freebsd-g++-${STATIC}
+ @${PERL} -pi -e "s:/usr/X11R6:${PREFIX}:g" ${WRKSRC}/configs/freebsd-g++-${STATIC}
+ @${PERL} -pi -e "s:%%CXXFLAGS%%:${CXXFLAGS}:g" ${WRKSRC}/configs/freebsd-g++-${STATIC}
+ @${PERL} -pi -e "s:%%VERSION%%:${VERSION}:g" ${WRKSRC}/configs/freebsd-g++-${STATIC}
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} freebsd-g++-${STATIC})
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/bin/moc $(PREFIX)/bin
+.if !defined(WANT_STATIC)
@${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.${VERSION} $(PREFIX)/lib
@${LN} -sf $(PREFIX)/lib/libqt.so.$(VERSION) $(PREFIX)/lib/libqt.so
+.else
+ @${INSTALL_DATA} ${WRKSRC}/lib/libqt.a $(PREFIX)/lib/libqt.a.$(VERSION)
+ @${LN} -sf $(PREFIX)/lib/libqt.a.$(VERSION) $(PREFIX)/lib/libqt.a
+.endif
@${MKDIR} $(PREFIX)/include/X11/qt
@${INSTALL_DATA} ${WRKSRC}/include/* $(PREFIX)/include/X11/qt
@${INSTALL_MAN} ${WRKSRC}/man/man1/* $(PREFIX)/man/man1
@@ -48,4 +59,9 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt
@${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/doc/qt/html
+.if defined(WANT_STATIC)
+post-install:
+ @${PERL} -pi -e 's/libqt\.so/libqt.a/' ${TMPPLIST}
+.endif
+
.include <bsd.port.mk>