summaryrefslogtreecommitdiff
path: root/x11/qwt/files
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>1999-11-17 18:32:29 +0000
committerdrochner <drochner@pkgsrc.org>1999-11-17 18:32:29 +0000
commitf09c7534e444b8e5d909ebb70ff4a1ac2259dcec (patch)
treebcc9e52986dd7e14584079c1893ffda7eccec56d /x11/qwt/files
parent159a1bf8f9c3c74e6700bbb5a95b91bc8195f423 (diff)
downloadpkgsrc-f09c7534e444b8e5d909ebb70ff4a1ac2259dcec.tar.gz
import the qwt addon to qt-1.x
citing pkg/DESCR: Qwt is an extension to the Qt GUI library from Troll Tech AS. The Qwt library contains widgets and components which are primarily useful for technical and scientifical purposes. It includes a 2-D plotting widget, different kinds of sliders, and much more.
Diffstat (limited to 'x11/qwt/files')
-rw-r--r--x11/qwt/files/Makefile.apps40
-rw-r--r--x11/qwt/files/Makefile.common26
-rw-r--r--x11/qwt/files/Makefile.lib39
-rw-r--r--x11/qwt/files/md52
4 files changed, 107 insertions, 0 deletions
diff --git a/x11/qwt/files/Makefile.apps b/x11/qwt/files/Makefile.apps
new file mode 100644
index 00000000000..a6481365559
--- /dev/null
+++ b/x11/qwt/files/Makefile.apps
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile.apps,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
+#
+# Makefile rules for Qwt examples
+# ===============================
+#
+
+PREFIX?= /usr/X11R6
+include $(QWTDIR)/Makefile.common
+
+#
+# GENERAL SETTINGS
+#
+CC = gcc
+CFLAGS = -O2
+INCLUDES = -I$(QWTINC) -I$(QTINC)
+LD = $(CC)
+LDFLAGS =
+LIBS = -L$(QTLIB) -W,l -R$(QTLIB) -lqt -lXext -lX11 -lqwt -lm
+
+#
+# IMPLICIT RULES
+#
+%.o: %.cpp
+ $(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $<
+
+moc_%.cpp: %.h
+ $(MOC) -o $@ $<
+
+
+#
+# BUILD RULES
+#
+all: $(APPNAME)
+
+$(APPNAME): $(OBJECTS)
+ $(LD) $(LDFLAGS) -o $(APPNAME) $(OBJECTS) $(LIBS)
+
+clean:
+ -rm -f $(OBJECTS) $(APPNAME)
+
diff --git a/x11/qwt/files/Makefile.common b/x11/qwt/files/Makefile.common
new file mode 100644
index 00000000000..68753ef6d4f
--- /dev/null
+++ b/x11/qwt/files/Makefile.common
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
+#
+# Paths for Qt headers and library
+#
+
+QTDIR=$(PREFIX)
+QTINC=$(QTDIR)/include/qt
+QTLIB=$(QTDIR)/lib
+MOC=$(QTDIR)/bin/moc
+
+#
+# Paths for Qwt headers and library
+# QWTDIR is set autometically
+#
+QWTINC = $(QWTDIR)/include
+QWTLIB = $(QWTDIR)/lib
+
+#
+# Library Names
+#
+LIBSTATIC = libqwt.a
+LIBSHARED = libqwt.so
+LIBSHARED_0 = libqwt.so.0
+LIBSHARED_1 = libqwt.so.0.2
+
+
diff --git a/x11/qwt/files/Makefile.lib b/x11/qwt/files/Makefile.lib
new file mode 100644
index 00000000000..1e31bc4481f
--- /dev/null
+++ b/x11/qwt/files/Makefile.lib
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile.lib,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
+#
+# Makefile rules for the Qwt Library
+# ==================================
+#
+
+include $(QWTDIR)/Makefile.common
+
+
+# GENERAL SETTINGS
+#
+LCXX = $(LIBTOOL) --mode=compile $(CXX)
+INCLUDES = -I../include -I$(QTINC)
+LLD = $(LIBTOOL) --mode=link $(CXX) -rpath $(PREFIX)/lib \
+ -version-info 0:2
+
+#
+# IMPLICIT RULES
+#
+%.lo: %.cpp
+ $(LCXX) $(CXXFLAGS) $(INCLUDES) -c $<
+
+moc_%.cpp: %.h
+ $(MOC) -o $@ $<
+
+#
+# BUILD RULES
+#
+
+all: $(LIBSHARED)
+
+$(LIBSHARED): $(OBJECTS:.o=.lo)
+ $(LLD) $(LDFLAGS) -o libqwt.la $(OBJECTS:.o=.lo)
+
+clean:
+ -rm -f *.o *.so *.so.* *.a *~
+
+depend:
+ makedepend $(QTINC) $(QWTINC) *.cpp
diff --git a/x11/qwt/files/md5 b/x11/qwt/files/md5
new file mode 100644
index 00000000000..546fbb35fab
--- /dev/null
+++ b/x11/qwt/files/md5
@@ -0,0 +1,2 @@
+$NetBSD: md5,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
+MD5 (qwtlib-0.2.tgz) = d40ca70a996799337c4027c89c5fedb2