ports/51972: Update port: devel/libmba to 0.6.0 (fix ports/51671)

KATO Tsuguru tkato at prontomail.com
Thu May 8 14:30:25 UTC 2003


>Number:         51972
>Category:       ports
>Synopsis:       Update port: devel/libmba to 0.6.0 (fix ports/51671)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 07:30:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
>Description:
- Update to version 0.6.0

Remove file:
files/patch-Makefile

Following PR(s) should be superseded by this one:
[2003/05/01] ports/51671  ports-bugs  Update port: devel/libmba to 0.5.2

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/devel/libmba/Makefile devel/libmba/Makefile
--- /usr/ports/devel/libmba/Makefile	Thu Apr 24 14:55:28 2003
+++ devel/libmba/Makefile	Thu May  8 22:36:01 2003
@@ -7,7 +7,7 @@
 #
 
 PORTNAME=	libmba
-PORTVERSION=	0.5.1
+PORTVERSION=	0.6.0
 CATEGORIES=	devel
 MASTER_SITES=	http://www.ioplex.com/~miallen/libmba/dl/
 
@@ -16,15 +16,30 @@
 
 LIB_DEPENDS=	expat.4:${PORTSDIR}/textproc/expat2
 
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
-INSTALLS_SHLIB=	yes
-
-SHLIB_MAJOR=	0
-MAKE_ENV=	SHLIB_MAJOR="${SHLIB_MAJOR}"
+MAKE_ENV=	prefix="${PREFIX}" CC="${CC}" \
+		MINVERSION="${SHLIB_MAJOR}" \
+		RPM_OPT_FLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib"
 PLIST_SUB=	SHLIB_MAJOR="${SHLIB_MAJOR}"
+INSTALLS_SHLIB=	yes
 
-MAN3=		cfg.3m domnode.3m mbs.3m msgno.3m hashmap.3m hexdump.3m \
+MAN3=		cfg.3m csv.3m domnode.3m mbs.3m msgno.3m hashmap.3m hexdump.3m \
 		linkedlist.3m pool.3m shellout.3m stack.3m varray.3m
 MANCOMPRESSED=	yes
+
+SHLIB_MAJOR=	0
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|\$${PREFIX}|g ; \
+		 s|^CC|#CC|g ; \
+		 s|^MAJ|#MAJ|g ; \
+		 s|^MIN|#MIN|g ; \
+		 s|\.\$$(MAJVERSION)||g ; \
+		 s|^RPM_OPT_FLAGS|#RPM_OPT_FLAGS|g ; \
+		 s| -lc| \$${LDFLAGS}|g ; \
+		 s|install -m ...|\$${BSD_INSTALL_DATA}|g ; \
+		 s|-/sbin/ldconfig.*$$||g' ${WRKSRC}/Makefile
 
 .include <bsd.port.mk>
diff -urN /usr/ports/devel/libmba/distinfo devel/libmba/distinfo
--- /usr/ports/devel/libmba/distinfo	Thu Apr 24 14:55:28 2003
+++ devel/libmba/distinfo	Thu May  8 22:09:20 2003
@@ -1 +1 @@
-MD5 (libmba-0.5.1.tar.gz) = 1f635afda3dd02a9249ca51aff74d6f5
+MD5 (libmba-0.6.0.tar.gz) = acc0d6754d1851d6dec0e37e5bba4a93
diff -urN /usr/ports/devel/libmba/files/patch-Makefile devel/libmba/files/patch-Makefile
--- /usr/ports/devel/libmba/files/patch-Makefile	Thu Apr 24 14:55:28 2003
+++ devel/libmba/files/patch-Makefile	Thu Jan  1 09:00:00 1970
@@ -1,57 +0,0 @@
---- Makefile.orig	Wed Apr  2 09:05:34 2003
-+++ Makefile	Tue Apr 15 12:37:37 2003
-@@ -1,17 +1,17 @@
--prefix     = /usr/local
-+prefix     = ${PREFIX}
- includedir = $(prefix)/include
- libdir     = $(prefix)/lib
- mandir     = $(prefix)/man
--CC         = gcc
-+CC         ?= gcc
- LIBNAME    = mba
--MAJVERSION = 0.5
--MINVERSION = 0.5.1
-+MAJVERSION = ${SHLIB_MAJOR}
-+MINVERSION = ${SHLIB_MAJOR}
- ARNAME     = lib$(LIBNAME).a
- SONAME     = lib$(LIBNAME).so.$(MINVERSION)
- SOVERSION  = lib$(LIBNAME).so.$(MAJVERSION)
- DISTRO     = lib$(LIBNAME)-$(MINVERSION)
- RPM_OPT_FLAGS = -O2
--CFLAGS     = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS)
-+CFLAGS     += -DMSGNO -I${LOCALBASE}/include
- #CFLAGS     = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS) -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wtraditional -Wconversion -Waggregate-return -Wno-parentheses
- OBJS       = src/stack.o src/linkedlist.o src/hashmap.o src/profile.o src/hexdump.o src/msgno.o src/domnode.o src/mbs.o src/cfg.o src/pool.o src/varray.o src/shellout.o
- HDRS       = src/mba/msgno.h src/mba/stack.h src/mba/linkedlist.h src/mba/hashmap.h src/mba/hexdump.h src/mba/domnode.h src/mba/profile.h src/mba/mbs.h src/mba/cfg.h src/mba/pool.h src/mba/varray.h src/mba/shellout.h
-@@ -20,7 +20,7 @@
- all: $(ARNAME)($(OBJS)) $(SONAME)
- 
- $(SONAME): $(ARNAME)($(OBJS)) $(OBJS)
--	$(CC) -shared $(OBJS) -L$(libdir) -lc -lexpat -lutil -Wl,-h,$(SOVERSION) -o $(SONAME)
-+	$(CC) -shared $(OBJS) -L${LOCALBASE}/lib -lexpat -lutil -Wl,-h,$(SOVERSION) -o $(SONAME)
- 
- .c.a:
- 	$(CC) $(CFLAGS) -c $< -o $*.o
-@@ -31,15 +31,14 @@
- 	$(CC) $(CFLAGS) -fpic -c -o $*.o $<
- 
- install: $(SONAME)
--	install -d $(libdir)
--	install -d $(includedir)/mba
--	install -d $(mandir)/man3
--	install -m 644 $(ARNAME) $(libdir)
--	install -m 755 $(SONAME) $(libdir)
-+	mkdir -p $(libdir)
-+	mkdir -p $(includedir)/mba
-+	mkdir -p $(mandir)/man3
-+	${BSD_INSTALL_DATA} $(ARNAME) $(libdir)
-+	${BSD_INSTALL_DATA} $(SONAME) $(libdir)
- 	cd $(libdir) && ln -sf $(SONAME) $(SOVERSION) && ln -sf $(SONAME) lib$(LIBNAME).so
--	install -m 444 $(HDRS) $(includedir)/mba
--	-install -m 444 docs/man/*.3m.gz $(mandir)/man3
--	-/sbin/ldconfig $(libdir)
-+	${BSD_INSTALL_DATA} $(HDRS) $(includedir)/mba
-+	${BSD_INSTALL_MAN} docs/man/*.3m.gz $(mandir)/man3
- 
- zip:
- 	-rm docs/www/dl
diff -urN /usr/ports/devel/libmba/pkg-plist devel/libmba/pkg-plist
--- /usr/ports/devel/libmba/pkg-plist	Thu Apr 24 14:55:28 2003
+++ devel/libmba/pkg-plist	Thu May  8 22:25:11 2003
@@ -1,7 +1,9 @@
 include/mba/cfg.h
+include/mba/csv.h
 include/mba/domnode.h
 include/mba/hashmap.h
 include/mba/hexdump.h
+include/mba/iterator.h
 include/mba/linkedlist.h
 include/mba/mbs.h
 include/mba/msgno.h
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list