summaryrefslogtreecommitdiff
path: root/databases/py-gdbm/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-05-23 21:46:05 +0000
committertron <tron@pkgsrc.org>1998-05-23 21:46:05 +0000
commit1a1fc830e012d4eb6fe864fbc943a2afd6767a36 (patch)
treea8f887b6ac2aa7c5d36967b9201ec7596b679303 /databases/py-gdbm/Makefile
parentb01ac4f030fe52ae5746d3bb0c20f51da5322dd2 (diff)
downloadpkgsrc-1a1fc830e012d4eb6fe864fbc943a2afd6767a36.tar.gz
Add "py-gdbm" package made by Jaromir Dolecek.
Diffstat (limited to 'databases/py-gdbm/Makefile')
-rw-r--r--databases/py-gdbm/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile
new file mode 100644
index 00000000000..19bb7af4c48
--- /dev/null
+++ b/databases/py-gdbm/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 1998/05/23 21:46:05 tron Exp $
+#
+
+DISTNAME= pyth151
+PKGNAME= py-gdbm-1.5.1
+CATEGORIES= databases
+MASTER_SITES= ftp://ftp.python.org/pub/python/src/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= dolecek@ics.muni.cz
+
+DEPENDS+= python-1.5.1:../../lang/python \
+ gdbm-1.7.3:../../databases/gdbm
+
+WRKSRC= ${WRKDIR}/Python-1.5.1/Modules
+ALL_TARGET= default
+EXTRACT_AFTER_ARGS= Python-1.5.1/Modules/gdbmmodule.c
+
+PYTHON_CONFIGDIR= ${LOCALBASE}/lib/python1.5/config/
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "alpha"
+IGNORE="Needs dynamic loading"
+.endif
+
+do-configure:
+ ${SED} -e 's%@LOCALBASE@%${LOCALBASE}%g' ${FILESDIR}/Setup.in \
+ >${WRKSRC}/Setup.in
+ (cd ${WRKSRC}; \
+ ${CP} ${PYTHON_CONFIGDIR}/Makefile.pre.in .;\
+ ${MAKE} -f Makefile.pre.in boot;)
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/gdbmmodule.so ${LOCALBASE}/lib/python1.5/lib-dynload
+
+.include "../../mk/bsd.pkg.mk"