From nobody@FreeBSD.org  Fri Apr 13 18:15:32 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id A4FF537B422
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 13 Apr 2001 18:15:32 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3E1FWb34320;
	Fri, 13 Apr 2001 18:15:32 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104140115.f3E1FWb34320@freefall.freebsd.org>
Date: Fri, 13 Apr 2001 18:15:32 -0700 (PDT)
From: tkato@prontomail.ne.jp
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: lang/aleph
X-Send-Pr-Version: www-1.0

>Number:         26554
>Category:       ports
>Synopsis:       Update port: lang/aleph
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 13 18:20:01 PDT 2001
>Closed-Date:    Sat Apr 14 04:01:44 PDT 2001
>Last-Modified:  Sat Apr 14 04:02:08 PDT 2001
>Originator:     KATO Tsuguru
>Release:        4.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CXX/CXXFLAGS/PTHREAD_CFLAGS/PTHREAD_LIBS properly
- Fix pkg-plist
- Strip binaries

New file:
files/patch-aa

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/lang/aleph/Makefile lang/aleph/Makefile
--- /usr/ports/lang/aleph/Makefile	Mon Mar 12 18:07:39 2001
+++ lang/aleph/Makefile	Sat Apr 14 06:18:45 2001
@@ -15,16 +15,21 @@
 
 MAINTAINER=	ijliao@FreeBSD.org
 
-USE_GMAKE=	yes
 USE_NEWGCC=	yes
-
+USE_GMAKE=	yes
+MAKE_ARGS=	CC="${CXX}" LD="${CXX}" LK="${CXX}" OPTCCFLAGS="${CXXFLAGS}" \
+		DYNCCFLAGS="-fPIC -DPIC" DEBUGFLAGS="" DBGDEFINES="" \
+		STDDEFINES="${PTHREAD_CFLAGS}" EXELDFLAGS="${PTHREAD_LIBS}"
 INSTALLS_SHLIB=	yes
 
-PLIST_SUB=	PORTVER=${PORTVERSION}
+PLIST_SUB=	PORTVER=${PORTVERSION:R}
 
 MAN1=	aleph.1
 
 do-configure:
 	@(cd ${WRKSRC}; ./cnf/bin/aleph-setup -o)
+
+post-install:
+	@strip ${PREFIX}/bin/aleph
 
 .include <bsd.port.mk>
diff -urN /usr/ports/lang/aleph/files/patch-aa lang/aleph/files/patch-aa
--- /usr/ports/lang/aleph/files/patch-aa	Thu Jan  1 09:00:00 1970
+++ lang/aleph/files/patch-aa	Sat Apr 14 05:44:02 2001
@@ -0,0 +1,31 @@
+--- cnf/mak/aleph-rule.mak.orig	Thu Mar  8 14:59:08 2001
++++ cnf/mak/aleph-rule.mak	Sat Apr 14 05:43:10 2001
+@@ -62,8 +62,8 @@
+ endif
+ 
+ ifeq ($(LKMODE),soname)
+-SONAME		= $(SOLIB).$(MAJOR).$(MINOR)
+-SOVERS		= $(SOLIB).$(MAJOR).$(MINOR).$(PATCH)
++SONAME		= $(SOLIB).$(MAJOR)
++SOVERS		= $(SOLIB).$(MAJOR)
+ endif
+ 
+ # ----------------------------------------------------------------------------
+@@ -124,17 +124,13 @@
+ $(SOLIB) : $(SOVERS)
+ 	@$(MKDIR)        $(BLDLIB)
+ 	@$(CP) $(SOVERS) $(BLDLIB)
+-	@$(RM) $(BLDLIB)/$(SOLIB)
+ 	@$(RM) $(BLDLIB)/$(SONAME)
+-	@$(LN) $(SOVERS) $(BLDLIB)/$(SONAME)
+ 	@$(LN) $(SONAME) $(BLDLIB)/$(SOLIB)
+ 
+ install-solib : $(SOVERS)
+ 	@$(MKDIR)        $(LIBDIR)
+ 	@$(CP) $(SOVERS) $(LIBDIR)
+-	@$(RM) $(LIBDIR)/$(SONAME)
+ 	@$(RM) $(LIBDIR)/$(SOLIB)
+-	@$(LN) $(SOVERS) $(LIBDIR)/$(SONAME)
+ 	@$(LN) $(SONAME) $(LIBDIR)/$(SOLIB)
+ .PHONY: install-solib
+ endif
diff -urN /usr/ports/lang/aleph/pkg-plist lang/aleph/pkg-plist
--- /usr/ports/lang/aleph/pkg-plist	Mon Mar 12 18:07:41 2001
+++ lang/aleph/pkg-plist	Sat Apr 14 04:20:56 2001
@@ -123,29 +123,22 @@
 @dirrm include/aleph
 lib/libaleph-eng.a
 lib/libaleph-eng.so
-lib/libaleph-eng.so.0.7
 lib/libaleph-eng.so.%%PORTVER%%
 lib/libaleph-net.a
 lib/libaleph-net.so
-lib/libaleph-net.so.0.7
 lib/libaleph-net.so.%%PORTVER%%
 lib/libaleph-plt.a
 lib/libaleph-plt.so
-lib/libaleph-plt.so.0.7
 lib/libaleph-plt.so.%%PORTVER%%
 lib/libaleph-sio.a
 lib/libaleph-sio.so
-lib/libaleph-sio.so.0.7
 lib/libaleph-sio.so.%%PORTVER%%
 lib/libaleph-std.a
 lib/libaleph-std.so
-lib/libaleph-std.so.0.7
 lib/libaleph-std.so.%%PORTVER%%
 lib/libaleph-sys.a
 lib/libaleph-sys.so
-lib/libaleph-sys.so.0.7
 lib/libaleph-sys.so.%%PORTVER%%
 lib/libaleph-www.a
 lib/libaleph-www.so
-lib/libaleph-www.so.0.7
 lib/libaleph-www.so.%%PORTVER%%

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Sat Apr 14 04:01:44 PDT 2001 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26554 
>Unformatted:
