aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2010-01-07 21:51:03 +0800
committermandree <mandree@FreeBSD.org>2010-01-07 21:51:03 +0800
commita472db85ca814adf22e8f1d8b4a24f2fd896e444 (patch)
tree655d4afdf91d730ce0ba5681aab0e447bfe33267 /devel
parent2c2e77fd9b3a94dc905ae4819718212487b21f7f (diff)
downloadfreebsd-ports-gnome-a472db85ca814adf22e8f1d8b4a24f2fd896e444.tar.gz
freebsd-ports-gnome-a472db85ca814adf22e8f1d8b4a24f2fd896e444.tar.zst
freebsd-ports-gnome-a472db85ca814adf22e8f1d8b4a24f2fd896e444.zip
Add new devel/e2fsprogs-libss port, as slave to sysutils/e2fsprogs.
pkg-descr: ---------------------------------------------------------- This package includes a tool that parses a command table to generate a simple command-line interface parser, the include files needed to compile and use it, and the libraries needed to run programs that use it. It was originally inspired by the Multics SubSystem library. EOF------------------------------------------------------------------ PR: ports/140767 Submitted by: Benjamin Kaduk <kaduk@mit.edu> Approved by: garga (mentor)
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/e2fsprogs-libss/Makefile43
-rw-r--r--devel/e2fsprogs-libss/files/fix-ss_err.h.sed2
-rw-r--r--devel/e2fsprogs-libss/files/patch-lib-ss-Makefile.in20
-rw-r--r--devel/e2fsprogs-libss/pkg-descr5
-rw-r--r--devel/e2fsprogs-libss/pkg-plist12
6 files changed, 83 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0bea75884140..b7d240321514 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -301,6 +301,7 @@
SUBDIR += dwarfdump
SUBDIR += dyncall
SUBDIR += e00compr
+ SUBDIR += e2fsprogs-libss
SUBDIR += e4graph
SUBDIR += e_dbus
SUBDIR += easygit
diff --git a/devel/e2fsprogs-libss/Makefile b/devel/e2fsprogs-libss/Makefile
new file mode 100644
index 000000000000..47cfde00bcee
--- /dev/null
+++ b/devel/e2fsprogs-libss/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: e2fsprogs-libss
+# Date created: 23 November 2009
+# Whom: Ben Kaduk <kaduk@mit.edu>
+#
+# $FreeBSD$
+#
+
+PORTREVISION= 0
+CATEGORIES= devel
+PKGNAMESUFFIX= -libss
+
+MAINTAINER= kaduk-fbsd@mit.edu
+COMMENT= Command-line interface parsing library from e2fsprogs
+
+CONFLICTS= heimdal-[0-9]*
+CONFLICTS+= krb4-[0-9]*
+
+WITHOUT_NLS= yes
+OPTIONS= #
+CONFIGURE_ARGS= --enable-elf-shlibs
+MASTERDIR= ${.CURDIR}/../../sysutils/e2fsprogs
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+ALL_TARGET= subs
+INSTALL_WRKSRC= ${WRKSRC}/lib/ss
+FILESDIR= ${.CURDIR}/files
+
+EXTRA_PATCHES= ${FILESDIR}/patch-lib-ss-Makefile.in
+
+MAN1= mk_cmds.1
+
+PKGDIR= ${.CURDIR}
+
+pre-build:
+ @(cd ${WRKSRC}/lib/ss && compile_et ss_err.et && \
+ ${REINPLACE_CMD} -f ${FILESDIR}/fix-ss_err.h.sed ss_err.h)
+
+post-build:
+ @(cd ${WRKSRC}/lib/ss && ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${_MAKE_JOBS} ${MAKE_ARGS} all)
+
+.include "${MASTERDIR}/Makefile"
diff --git a/devel/e2fsprogs-libss/files/fix-ss_err.h.sed b/devel/e2fsprogs-libss/files/fix-ss_err.h.sed
new file mode 100644
index 000000000000..73dc2aff639b
--- /dev/null
+++ b/devel/e2fsprogs-libss/files/fix-ss_err.h.sed
@@ -0,0 +1,2 @@
+/#define __ss_err_h__/a\
+#include <com_err.h>
diff --git a/devel/e2fsprogs-libss/files/patch-lib-ss-Makefile.in b/devel/e2fsprogs-libss/files/patch-lib-ss-Makefile.in
new file mode 100644
index 000000000000..6b0811c0796f
--- /dev/null
+++ b/devel/e2fsprogs-libss/files/patch-lib-ss-Makefile.in
@@ -0,0 +1,20 @@
+--- work/lib/ss/Makefile.in.orig 2009-11-28 23:03:52.000000000 +0000
++++ work/lib/ss/Makefile.in 2009-11-28 23:04:20.000000000 +0000
+@@ -20,7 +20,7 @@
+ ELF_IMAGE = libss
+ ELF_MYDIR = ss
+ ELF_INSTALL_DIR = $(root_libdir)
+-ELF_OTHER_LIBS = -L../.. -lcom_err $(DLOPEN_LIB)
++ELF_OTHER_LIBS = -lcom_err $(DLOPEN_LIB)
+
+ BSDLIB_VERSION = 1.0
+ BSDLIB_IMAGE = libss
+@@ -28,7 +28,7 @@
+ BSDLIB_INSTALL_DIR = $(root_libdir)
+
+ TAGS=etags
+-COMPILE_ET=../et/compile_et --build-tree
++COMPILE_ET=compile_et
+ MK_CMDS=_SS_DIR_OVERRIDE=. ./mk_cmds
+
+ # -I.. is so that ss/ss_err.h works
diff --git a/devel/e2fsprogs-libss/pkg-descr b/devel/e2fsprogs-libss/pkg-descr
new file mode 100644
index 000000000000..821bd5485b31
--- /dev/null
+++ b/devel/e2fsprogs-libss/pkg-descr
@@ -0,0 +1,5 @@
+This package includes a tool that parses a command table to generate a
+simple command-line interface parser, the include files needed to compile
+and use it, and the libraries needed to run programs that use it.
+
+It was originally inspired by the Multics SubSystem library.
diff --git a/devel/e2fsprogs-libss/pkg-plist b/devel/e2fsprogs-libss/pkg-plist
new file mode 100644
index 000000000000..b6eb9a7a038d
--- /dev/null
+++ b/devel/e2fsprogs-libss/pkg-plist
@@ -0,0 +1,12 @@
+bin/mk_cmds
+include/ss/ss.h
+include/ss/ss_err.h
+lib/libss.so.2.0
+lib/libss.so
+lib/libss.a
+lib/libss.so.2
+libdata/pkgconfig/ss.pc
+share/ss/ct_c.awk
+share/ss/ct_c.sed
+@dirrm include/ss
+@dirrm share/ss