summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2008-01-06 21:47:09 +0000
committerghen <ghen@pkgsrc.org>2008-01-06 21:47:09 +0000
commit3928c9356dd3eff7aaee0e7f4dd04c816a5c3ed3 (patch)
treeee42b758af0a2711f50e83f24e8db4e629b08c42
parent6d4038a0cdfc42de585f716b075614ffbaa17dc1 (diff)
downloadpkgsrc-3928c9356dd3eff7aaee0e7f4dd04c816a5c3ed3.tar.gz
Import libixp-0.4 from www.suckless.org.
libixp is a stand-alone client/server 9P library including ixpc client. It consists of less than 2000 lines of code (including ixpc).
-rw-r--r--devel/libixp/DESCR2
-rw-r--r--devel/libixp/Makefile13
-rw-r--r--devel/libixp/PLIST7
-rw-r--r--devel/libixp/buildlink3.mk19
-rw-r--r--devel/libixp/distinfo6
-rw-r--r--devel/libixp/patches/patch-aa29
6 files changed, 76 insertions, 0 deletions
diff --git a/devel/libixp/DESCR b/devel/libixp/DESCR
new file mode 100644
index 00000000000..ff408b05671
--- /dev/null
+++ b/devel/libixp/DESCR
@@ -0,0 +1,2 @@
+libixp is a stand-alone client/server 9P library including ixpc client.
+It consists of less than 2000 lines of code (including ixpc).
diff --git a/devel/libixp/Makefile b/devel/libixp/Makefile
new file mode 100644
index 00000000000..a104eebd1a8
--- /dev/null
+++ b/devel/libixp/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/01/06 21:47:09 ghen Exp $
+
+DISTNAME= libixp-0.4
+CATEGORIES= devel
+MASTER_SITES= http://www.suckless.org/download/
+
+MAINTAINER= ghen@NetBSD.org
+HOMEPAGE= http://www.suckless.org/wiki/libs/libixp
+COMMENT= Stand-alone client/server 9P library
+
+USE_TOOLS+= gmake
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libixp/PLIST b/devel/libixp/PLIST
new file mode 100644
index 00000000000..6d8582b49cf
--- /dev/null
+++ b/devel/libixp/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/01/06 21:47:09 ghen Exp $
+bin/ixpc
+include/ixp.h
+include/ixp_fcall.h
+lib/libixp.a
+lib/libixp_pthread.a
+man/man1/ixpc.1
diff --git a/devel/libixp/buildlink3.mk b/devel/libixp/buildlink3.mk
new file mode 100644
index 00000000000..7f4c67e1b1c
--- /dev/null
+++ b/devel/libixp/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/01/06 21:47:09 ghen Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBIXP_BUILDLINK3_MK:= ${LIBIXP_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= libixp
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibixp}
+BUILDLINK_PACKAGES+= libixp
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libixp
+
+.if ${LIBIXP_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libixp+= libixp>=0.4
+BUILDLINK_PKGSRCDIR.libixp?= ../../devel/libixp
+.endif # LIBIXP_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/libixp/distinfo b/devel/libixp/distinfo
new file mode 100644
index 00000000000..82a8e84b124
--- /dev/null
+++ b/devel/libixp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/01/06 21:47:09 ghen Exp $
+
+SHA1 (libixp-0.4.tar.gz) = ec1adfeb4c5f502dfcb1b99fcf440841ecee2f9a
+RMD160 (libixp-0.4.tar.gz) = 240fe1cb16eac23cf00bffb93df1b13201c9c1ba
+Size (libixp-0.4.tar.gz) = 130229 bytes
+SHA1 (patch-aa) = 1e50a9359d725df736167bd9fe253c1c661760e2
diff --git a/devel/libixp/patches/patch-aa b/devel/libixp/patches/patch-aa
new file mode 100644
index 00000000000..64101f421bd
--- /dev/null
+++ b/devel/libixp/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/01/06 21:47:09 ghen Exp $
+
+--- config.mk.orig 2007-11-05 15:36:22.000000000 +0100
++++ config.mk
+@@ -11,10 +11,10 @@ RUBYINC = -I/usr/local/lib/ruby/1.8/i386
+ TASKINC = -I${HOME}/libtask
+
+ # paths
+-PREFIX = /usr/local
++#PREFIX = /usr/local
+ BIN = ${PREFIX}/bin
+-MAN = ${PREFIX}/share/man
+-ETC = ${PREFIX}/etc
++MAN = ${PREFIX}/${PKGMANDIR}
++ETC = ${PKG_SYSCONFDIR}
+ LIBDIR = ${PREFIX}/lib
+ INCLUDE = ${PREFIX}/include
+
+@@ -24,8 +24,8 @@ LIBS = -L/usr/lib -lc
+
+ # Flags
+ include ${ROOT}/mk/gcc.mk
+-CFLAGS = -g -Wall ${INCS} -DVERSION=\"${VERSION}\"
+-LDFLAGS = -g ${LIBS}
++CFLAGS += -Wall ${INCS} -DVERSION=\"${VERSION}\"
++LDFLAGS += ${LIBS}
+
+ # Compiler
+ CC = cc -c