1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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)
This commit is contained in:
Matthias Andree 2010-01-07 13:51:03 +00:00
parent b9a740bcfb
commit 1d0361bd4d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247331
7 changed files with 84 additions and 1 deletions

View File

@ -301,6 +301,7 @@
SUBDIR += dwarfdump
SUBDIR += dyncall
SUBDIR += e00compr
SUBDIR += e2fsprogs-libss
SUBDIR += e4graph
SUBDIR += e_dbus
SUBDIR += easygit

View File

@ -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"

View File

@ -0,0 +1,2 @@
/#define __ss_err_h__/a\
#include <com_err.h>

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -26,7 +26,7 @@ CONFIGURE_ENV+= CPPFLAGS='${CPPFLAGS} -I${WRKSRC}/lib \
-I${LOCALBASE}/include -D_EXT2_USE_C_VERSIONS_'
MAKE_ARGS+= LDFLAGS='${LDFLAGS} -L${LOCALBASE}/lib'
OPTIONS= NLS "Enable national language support" on
OPTIONS?= NLS "Enable national language support" on
.if !defined(MASTERDIR)
MAN1= chattr.1 lsattr.1