-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Probably needs some polish, but it compiles and runs.
- Loading branch information
Showing
16 changed files
with
2,632 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# $OpenBSD: Makefile,v 1.1.1.1 2000/06/22 23:53:43 espie Exp $ | ||
# $FreeBSD: Makefile,v 1.33 1999/02/27 03:09:57 andreas Exp $ | ||
|
||
DISTNAME= qt-2.1.1 | ||
PKGNAME= qt2-1.1 | ||
CATEGORIES= x11 | ||
NEED_VERSION= 1.301 | ||
MASTER_SITES= ftp://ftp.troll.no/qt/source/ | ||
DISTFILES= qt-x11-2.1.1.tar.gz | ||
HOMEPAGE= http://www.trolltech.com/qt/ | ||
MULTI_PACKAGES=-examples -html | ||
|
||
SUBPACKAGE?= | ||
# for the qt image extension | ||
.if ${SUBPACKAGE} != "-html" | ||
BUILD_DEPENDS= ${PREFIX}/include/jpeglib.h::graphics/jpeg | ||
LIB_DEPENDS= png.1.::graphics/png jpeg.62.::graphics/jpeg | ||
.endif | ||
|
||
MAINTAINER= [email protected] | ||
|
||
PERMIT_PACKAGE_CDROM= | ||
PERMIT_PACKAGE_FTP= | ||
PERMIT_DISTFILES_CDROM= | ||
PERMIT_DISTFILES_FTP= | ||
|
||
MAKE_ENV= QTDIR="${WRKSRC}" SYS_CXX="${CXX}" SYS_CXXFLAGS="${CXXFLAGS}" | ||
|
||
CONFIGURE_STYLE= simple | ||
CONFIGURE_ENV=${MAKE_ENV} | ||
CONFIGURE_ARGS+=-gif -system-libpng -system-jpeg -sm -no-thread -system-zlib | ||
|
||
USE_X11= Yes | ||
USE_GMAKE= Yes | ||
|
||
QT_INCDIR= ${PREFIX}/include/X11/qt2 | ||
QT_LIBDIR= ${PREFIX}/lib/qt2 | ||
QT_EXAMPLES= ${QT_LIBDIR}/examples | ||
QT_TUTORIAL= ${QT_LIBDIR}/tutorial | ||
QT_DOC= ${PREFIX}/share/doc/qt2 | ||
|
||
# for manpages in MESSAGE | ||
SUBST_VARS=QT_LIBDIR | ||
|
||
# qt-2.1.1 -> libqt.2.11 | ||
QT_VER= 2.11 | ||
EXAMPLES= | ||
|
||
post-patch: | ||
cd ${WRKSRC} && cp -R examples examples-src | ||
cd ${WRKSRC} && cp -R tutorial tutorial-src | ||
|
||
do-install: | ||
${INSTALL_DATA_DIR} ${QT_INCDIR} ${QT_DOC}/html ${QT_LIBDIR}/bin \ | ||
${QT_EXAMPLES}/src ${QT_EXAMPLES}/bin \ | ||
${QT_TUTORIAL}/src ${QT_TUTORIAL}/bin \ | ||
${QT_LIBDIR}/man/man3 | ||
@cd ${WRKBUILD}/lib; if [ -f libqt.a ]; then \ | ||
${INSTALL_DATA} libqt.a ${PREFIX}/lib; \ | ||
fi; \ | ||
if [ -f libqt.so.2.1.1 ]; then \ | ||
ln -f libqt.so.2.1.1 libqt.so.2.11; \ | ||
${INSTALL_DATA} libqt.so.2.11 ${PREFIX}/lib; \ | ||
fi | ||
${INSTALL_PROGRAM} ${WRKBUILD}/bin/moc ${QT_LIBDIR}/bin | ||
# avoid installing broken links | ||
-${INSTALL_DATA} ${WRKSRC}/include/* ${QT_INCDIR} | ||
@for i in ${WRKSRC}/doc/man/man3/*; do \ | ||
j=$${i%qt}; \ | ||
sed -e 's,\.3qt,\.3,g' <$$i >$$j && \ | ||
${INSTALL_MAN} $$j ${QT_LIBDIR}/man/man3; \ | ||
done | ||
cp -R ${WRKSRC}/examples-src/* ${QT_EXAMPLES}/src | ||
@cd ${WRKSRC}/examples; for i in *; do \ | ||
if [ -x $$i/$$i ]; then \ | ||
${INSTALL_PROGRAM} $$i/$$i ${QT_EXAMPLES}/bin; \ | ||
fi; done | ||
cp -R ${WRKSRC}/tutorial-src/* ${QT_TUTORIAL}/src | ||
@cd ${WRKSRC}/tutorial; for i in *; do \ | ||
if [ -x $$i/$$i ]; then \ | ||
${INSTALL_PROGRAM} $$i/$$i ${QT_TUTORIAL}/bin; \ | ||
fi; done | ||
cd ${WRKSRC} && ${INSTALL_DATA} ANNOUNCE FAQ LICENSE.QPL README \ | ||
README.QT changes-2.1.0 changes-2.1.1 ${QT_DOC} | ||
cp -R ${WRKSRC}/doc/html/* ${QT_DOC}/html | ||
|
||
.include <bsd.port.mk> | ||
.if ${SUBPACKAGE} =="-examples" | ||
PKGNAME:=qt2-examples-1.1 | ||
.elif ${SUBPACKAGE} =="-html" | ||
PKGNAME:=qt2-html-1.1 | ||
.endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
MD5 (qt-x11-2.1.1.tar.gz) = 4af3035d2ce5ada50faa6a092539efe4 | ||
RMD160 (qt-x11-2.1.1.tar.gz) = 9b0252a2b058aa92ca15295ae7528e46f58098d9 | ||
SHA1 (qt-x11-2.1.1.tar.gz) = acb975204b88102ed3918ddb7f351f4d7b3bad19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
$OpenBSD: patch-configs_openbsd-g++-shared,v 1.1.1.1 2000/06/22 23:53:43 espie Exp $ | ||
--- configs/openbsd-g++-shared.orig Thu Jun 22 16:51:11 2000 | ||
+++ configs/openbsd-g++-shared Thu Jun 22 16:56:14 2000 | ||
@@ -1,25 +1,25 @@ | ||
# Compiling | ||
-SYSCONF_CXX = g++ | ||
+SYSCONF_CXX = $(SYS_CXX) | ||
SYSCONF_CC = gcc | ||
|
||
# Compiling with support libraries | ||
-SYSCONF_CXXFLAGS_X11 = -I/usr/X11R6/include | ||
+SYSCONF_CXXFLAGS_X11 = -I$(X11BASE)/include -I$(LOCALBASE)/include | ||
SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include | ||
-SYSCONF_CXXFLAGS_OPENGL = -I/usr/X11R6/include | ||
+SYSCONF_CXXFLAGS_OPENGL = -I$(LOCALBASE)/include | ||
|
||
# Compiline YACC output | ||
SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
|
||
# Linking with support libraries | ||
# X11 | ||
-SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib | ||
+SYSCONF_LFLAGS_X11 = -L$(X11BASE)/lib -L$(LOCALBASE)/lib | ||
SYSCONF_LIBS_X11 = -lXext -lX11 -lm | ||
# Qt, Qt+OpenGL | ||
SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib | ||
SYSCONF_LIBS_QT = -lqt | ||
SYSCONF_LIBS_QT_OPENGL = -lqgl | ||
# OpenGL | ||
-SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib | ||
+SYSCONF_LFLAGS_OPENGL = -L$(LOCALBASE)/lib | ||
SYSCONF_LIBS_OPENGL = -lGLU -lGL -lXmu | ||
# Yacc | ||
SYSCONF_LIBS_YACC = | ||
@@ -30,7 +30,7 @@ SYSCONF_LFLAGS = | ||
SYSCONF_LIBS = | ||
|
||
# Link flags shared objects | ||
-SYSCONF_LFLAGS_SHOBJ = -Bshareable | ||
+SYSCONF_LFLAGS_SHOBJ = -Bshareable -Bforcearchive | ||
|
||
# Meta-object compiler | ||
SYSCONF_MOC = $(QTDIR)/bin/moc | ||
@@ -40,9 +40,9 @@ SYSCONF_MOC = $(QTDIR)/bin/moc | ||
# - Place target in $(DESTDIR) - which has a trailing / | ||
# - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
# | ||
-SYSCONF_LINK_SHLIB = ld | ||
+SYSCONF_LINK_SHLIB = g++ -shared | ||
SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
-SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS) | ||
+SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
|
||
# Linking static libraries | ||
# - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
@@ -54,7 +54,7 @@ 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 | ||
-SYSCONF_CXXFLAGS = -O2 | ||
+SYSCONF_CXXFLAGS = $(SYS_CXXFLAGS) | ||
SYSCONF_CFLAGS = -O2 | ||
# Compiling library source | ||
SYSCONF_CXXFLAGS_LIB = -fPIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
$OpenBSD: patch-configs_openbsd-g++-shared-debug,v 1.1.1.1 2000/06/22 23:53:43 espie Exp $ | ||
--- configs/openbsd-g++-shared-debug.orig Thu May 25 14:10:32 2000 | ||
+++ configs/openbsd-g++-shared-debug Wed Jun 21 18:36:22 2000 | ||
@@ -1,25 +1,25 @@ | ||
# Compiling | ||
-SYSCONF_CXX = g++ | ||
+SYSCONF_CXX = $(SYS_CXX) | ||
SYSCONF_CC = gcc | ||
|
||
# Compiling with support libraries | ||
-SYSCONF_CXXFLAGS_X11 = -I/usr/X11R6/include | ||
+SYSCONF_CXXFLAGS_X11 = -I$(X11BASE)/include -I$(LOCALBASE)/include | ||
SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include | ||
-SYSCONF_CXXFLAGS_OPENGL = -I/usr/X11R6/include | ||
+SYSCONF_CXXFLAGS_OPENGL = -I$(LOCALBASE)/include | ||
|
||
# Compiline YACC output | ||
SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
|
||
# Linking with support libraries | ||
# X11 | ||
-SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib | ||
+SYSCONF_LFLAGS_X11 = -L$(X11BASE)/lib -L$(LOCALBASE)/lib | ||
SYSCONF_LIBS_X11 = -lXext -lX11 -lm | ||
# Qt, Qt+OpenGL | ||
SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib | ||
SYSCONF_LIBS_QT = -lqt | ||
SYSCONF_LIBS_QT_OPENGL = -lqgl | ||
# OpenGL | ||
-SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib | ||
+SYSCONF_LFLAGS_OPENGL = -L$(LOCALBASE)/lib | ||
SYSCONF_LIBS_OPENGL = -lGLU -lGL -lXmu | ||
# Yacc | ||
SYSCONF_LIBS_YACC = | ||
@@ -30,7 +30,7 @@ SYSCONF_LFLAGS = | ||
SYSCONF_LIBS = | ||
|
||
# Link flags shared objects | ||
-SYSCONF_LFLAGS_SHOBJ = -Bshareable | ||
+SYSCONF_LFLAGS_SHOBJ = -Bshareable -Bforcearchive | ||
|
||
# Meta-object compiler | ||
SYSCONF_MOC = $(QTDIR)/bin/moc | ||
@@ -40,9 +40,9 @@ SYSCONF_MOC = $(QTDIR)/bin/moc | ||
# - Place target in $(DESTDIR) - which has a trailing / | ||
# - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
# | ||
-SYSCONF_LINK_SHLIB = ld | ||
+SYSCONF_LINK_SHLIB = g++ -shared | ||
SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
-SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS) | ||
+SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
|
||
# Linking static libraries | ||
# - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
@@ -54,7 +54,7 @@ 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 | ||
-SYSCONF_CXXFLAGS = -g | ||
+SYSCONF_CXXFLAGS = $(SYS_CXXFLAGS) -g -fno-strength-reduce | ||
SYSCONF_CFLAGS = -g | ||
# Compiling library source | ||
SYSCONF_CXXFLAGS_LIB = -fPIC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
C++ X11 GUI toolkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
examples and tutorial for qt2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
off-line html documentation for qt2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Qt is a toolkit for building a GUI for X in C++. The main | ||
documentation is in the qt2-html package, or on the web (${HOMEPAGE}). | ||
|
||
There is also a qt2-examples package, that contains a tutorial and simple | ||
example programs (source + binaries). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This is a set of simple examples and a tutorial to qt. | ||
This package includes source and binaries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This is an off-line copy of the qt2 documentation available from | ||
${HOMEPAGE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Man pages for qt2 have been installed in ${QT_LIBDIR}/man, | ||
to avoid collision with the qt1 manual pages. | ||
|
||
You may wish to add this directory to /etc/man.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@comment $OpenBSD: PFRAG.no-shared,v 1.1.1.1 2000/06/22 23:53:44 espie Exp $ | ||
@pkgcfl qt-* | ||
lib/libqt.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2000/06/22 23:53:44 espie Exp $ | ||
lib/libqt.so.2.11 | ||
@exec [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -m %D/lib | ||
@unexec [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -m %D/lib |
Oops, something went wrong.