SHARED_LIBS...

takes so little time to build compared to qt3 it's not even funny.
This commit is contained in:
espie 2005-12-29 13:09:10 +00:00
parent d0b9bc0b16
commit 83e2599edb
7 changed files with 56 additions and 24 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.67 2005/10/30 00:10:42 fgsch Exp $
# $OpenBSD: Makefile,v 1.68 2005/12/29 13:09:10 espie Exp $
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $
COMMENT= "C++ X11 GUI toolkit"
@ -12,6 +12,8 @@ PKGNAME-html= qt-html-${VERSION}
PKGNAME= qt-${VERSION}p0
CATEGORIES= x11
MASTER_SITES= ftp://ftp.troll.no/qt/source/
SHARED_LIBS= qt 1.45 \
qimgio 1.45
HOMEPAGE= http://www.trolltech.com/products/qt/
@ -25,10 +27,8 @@ PERMIT_DISTFILES_CDROM= "Restrictive license"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext c m stdc++
VER_MAJ= 1
VER_MIN= 45
MAKE_FLAGS= VER_MAJ="${VER_MAJ}" VER_MIN="${VER_MIN}"
MAKE_FLAGS= QT_VER_MAJ=${LIBqt_VERSION:R} QT_VER_MIN=${LIBqt_VERSION:E} \
QIMGIO_VER_MAJ=${LIBqimgio_VERSION:R} QIMGIO_VER_MIN=${LIBqimgio_VERSION:E}
USE_X11= Yes
USE_GMAKE= Yes
@ -94,15 +94,15 @@ do-install:
@if [ -f ${WRKBUILD}/lib/libqt.a ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.a ${PREFIX}/lib/qt; \
fi
@if [ -f ${WRKBUILD}/lib/libqt.so.${VER_MAJ}.${VER_MIN} ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib/qt; \
ln -sf qt/libqt.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib; \
@if [ -f ${WRKBUILD}/lib/libqt.so.${LIBqt_VERSION} ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqt.so.${LIBqt_VERSION} ${PREFIX}/lib/qt; \
ln -sf qt/libqt.so.${LIBqt_VERSION} ${PREFIX}/lib; \
fi
@if [ -f ${WRKBUILD}/lib/libqimgio.a ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqimgio.a ${PREFIX}/lib; \
fi
@if [ -f ${WRKBUILD}/lib/libqimgio.so.${VER_MAJ}.${VER_MIN} ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqimgio.so.${VER_MAJ}.${VER_MIN} ${PREFIX}/lib; \
@if [ -f ${WRKBUILD}/lib/libqimgio.so.${LIBqimgio_VERSION} ]; then \
${INSTALL_DATA} ${WRKBUILD}/lib/libqimgio.so.${LIBqimgio_VERSION} ${PREFIX}/lib; \
fi
${INSTALL_PROGRAM} ${WRKBUILD}/bin/moc ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/include/* ${QT_INCDIR}

View File

@ -1,5 +1,5 @@
--- configs/openbsd-g++-shared.orig Sat Oct 21 17:39:42 2000
+++ configs/openbsd-g++-shared Sat Oct 21 17:41:02 2000
--- configs/openbsd-g++-shared.orig Thu Dec 29 13:50:47 2005
+++ configs/openbsd-g++-shared Thu Dec 29 13:50:47 2005
@@ -1,35 +1,35 @@
# Compiling
-SYSCONF_CXX = g++
@ -43,7 +43,7 @@
# Meta-object compiler
SYSCONF_MOC = $(QTDIR)/bin/moc
@@ -39,9 +39,9 @@
@@ -39,9 +39,9 @@ SYSCONF_MOC = $(QTDIR)/bin/moc
# - Place target in $(DESTDIR) - which has a trailing /
# - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
#
@ -55,7 +55,7 @@
# Linking static libraries
# - Build the $(TARGET) library, eg. lib$(TARGET).a
@@ -53,11 +53,11 @@
@@ -53,11 +53,11 @@ SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDI
$(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) ; \
ranlib $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC)
# Compiling application source

View File

@ -1,5 +1,5 @@
--- configs/openbsd-g++-shared-debug.orig Sat Oct 21 17:39:42 2000
+++ configs/openbsd-g++-shared-debug Sat Oct 21 17:41:19 2000
--- configs/openbsd-g++-shared-debug.orig Thu Dec 29 13:50:47 2005
+++ configs/openbsd-g++-shared-debug Thu Dec 29 13:50:47 2005
@@ -1,35 +1,35 @@
# Compiling
-SYSCONF_CXX = g++
@ -43,7 +43,7 @@
# Meta-object compiler
SYSCONF_MOC = $(QTDIR)/bin/moc
@@ -39,9 +39,9 @@
@@ -39,9 +39,9 @@ SYSCONF_MOC = $(QTDIR)/bin/moc
# - Place target in $(DESTDIR) - which has a trailing /
# - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
#

View File

@ -1,5 +1,5 @@
--- configs/openbsd-g++-static.orig Sat Jun 24 14:42:12 2000
+++ configs/openbsd-g++-static Sat Jun 24 14:49:55 2000
--- configs/openbsd-g++-static.orig Thu Dec 29 13:50:47 2005
+++ configs/openbsd-g++-static Thu Dec 29 13:50:47 2005
@@ -1,30 +1,30 @@
# Compiling
-SYSCONF_CXX = g++
@ -37,7 +37,7 @@
SYSCONF_LFLAGS =
SYSCONF_LIBS =
@@ -53,10 +53,10 @@
@@ -53,10 +53,10 @@ SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDI
$(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) ; \
ranlib $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC)
# Compiling application source

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-extensions_imageio_src_Makefile_in,v 1.1 2005/12/29 13:09:10 espie Exp $
--- extensions/imageio/src/Makefile.in.orig Thu Dec 29 13:54:12 2005
+++ extensions/imageio/src/Makefile.in Thu Dec 29 13:56:25 2005
@@ -24,8 +24,10 @@ MOC = $(SYSCONF_MOC)
TARGET = qimgio
DESTDIR = ../../../lib/
-VER_MAJ = 0
-VER_MIN = 1
+QIMGIO_VER_MAJ = 0
+QIMGIO_VER_MIN = 1
+VER_MAJ = $(QIMGIO_VER_MAJ)
+VER_MIN = $(QIMGIO_VER_MIN)
####### Files

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_Makefile_in,v 1.1 2005/12/29 13:09:10 espie Exp $
--- src/Makefile.in.orig Thu Dec 29 13:56:37 2005
+++ src/Makefile.in Thu Dec 29 13:56:57 2005
@@ -24,8 +24,10 @@ MOC = $(SYSCONF_MOC)
TARGET = qt
DESTDIR = ../lib/
-VER_MAJ = 1
-VER_MIN = 44
+QT_VER_MAJ = 1
+QT_VER_MIN = 44
+VER_MAJ = $(QT_VER_MAJ)
+VER_MIN = $(QT_VER_MIN)
####### Files

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.5 2004/09/15 19:26:31 espie Exp $
@lib lib/libqimgio.so.1.45
@lib lib/libqt.so.1.45
@lib lib/qt/libqt.so.1.45
@comment $OpenBSD: PFRAG.shared,v 1.6 2005/12/29 13:09:10 espie Exp $
@lib lib/libqimgio.so.${LIBqimgio_VERSION}
@lib lib/libqt.so.${LIBqt_VERSION}
@lib lib/qt/libqt.so.${LIBqt_VERSION}