summaryrefslogtreecommitdiff
path: root/x11/qt2-examples
diff options
context:
space:
mode:
authorskrll <skrll>2001-01-13 12:37:21 +0000
committerskrll <skrll>2001-01-13 12:37:21 +0000
commitc4917f5474ae6107cb96ae31be88a2250ba2f263 (patch)
tree9133302be5b1a20bcb0ff7ef6cb2c8c61efb631f /x11/qt2-examples
parentb609434e3307bdd2d73c7320ac14e289ba77a967 (diff)
downloadpkgsrc-c4917f5474ae6107cb96ae31be88a2250ba2f263.tar.gz
New qt2-2.2.3 examples package that installs the examples and tutorials
from the qt2 distribution. Based on the package submitted in pkg/11932 by Rex McMaster <rmcm@compsoft.com.au>, but heavily modified by me.
Diffstat (limited to 'x11/qt2-examples')
-rw-r--r--x11/qt2-examples/Makefile40
-rw-r--r--x11/qt2-examples/pkg/COMMENT1
-rw-r--r--x11/qt2-examples/pkg/DESCR2
3 files changed, 43 insertions, 0 deletions
diff --git a/x11/qt2-examples/Makefile b/x11/qt2-examples/Makefile
new file mode 100644
index 00000000000..45b036fab63
--- /dev/null
+++ b/x11/qt2-examples/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/01/13 12:37:21 skrll Exp $
+#
+
+PKGNAME= qt2-examples-${QTVERSION}
+
+.include "../qt2-libs/Makefile.common"
+
+DEPENDS+= qt2-libs-*:../../x11/qt2-libs
+
+PATCHFILES+= ${PKGSRCDIR}/x11/qt2-libs/patches/patch-??
+ALLFILES= ${DISTFILES} # don't checksum shared patches
+
+CONFIGURE_ENV+= QTDIR=${QTPREFIX}
+
+do-build:
+ @MFS="`find ${WRKSRC}/examples ${WRKSRC}/tutorial -name Makefile -print`"; \
+ (for M in $${MFS}; do \
+ ${SED} \
+ -e "s:\\\$$[({]X11BASE[})]:${X11BASE}:g" \
+ -e "s:\\\$$[({]QTDIR[})]:${QTPREFIX}:g" \
+ -e "s:\\\$$[({]LOCALBASE[})]:${LOCALBASE}:g" \
+ -e "s:\\\$$[({]LIBTOOL[})]:${LIBTOOL}:g" \
+ $${M} > $${M}.new; \
+ ${MV} $${M}.new $${M}; \
+ done)
+
+do-install:
+ @cd ${WRKSRC}; \
+ DIRS="`find examples tutorial -type d -print | sort`"; \
+ (for d in $${DIRS}; do \
+ ${ECHO} creating ${QTPREFIX}/$${d}; \
+ ${INSTALL_DATA_DIR} ${QTPREFIX}/$${d}; \
+ done); \
+ ETFILES="`find examples tutorial -type f ! -name "Makefile.in" -print | sort`"; \
+ (for f in $${ETFILES}; do \
+ ${ECHO} installing ${QTPREFIX}/$${f}; \
+ ${INSTALL_DATA} $${f} ${QTPREFIX}/$${f}; \
+ done)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/qt2-examples/pkg/COMMENT b/x11/qt2-examples/pkg/COMMENT
new file mode 100644
index 00000000000..7ea9f86b503
--- /dev/null
+++ b/x11/qt2-examples/pkg/COMMENT
@@ -0,0 +1 @@
+QT2 Tutorial, example code and HTML documentation
diff --git a/x11/qt2-examples/pkg/DESCR b/x11/qt2-examples/pkg/DESCR
new file mode 100644
index 00000000000..5f9b483e8b0
--- /dev/null
+++ b/x11/qt2-examples/pkg/DESCR
@@ -0,0 +1,2 @@
+The Tutorials and Code examples from the QT2 distribution. Also
+included is the HTML version of the documentation.