From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 5 10:30:29 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2772616A4D1 for ; Thu, 5 Feb 2004 10:30:29 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A9743D5A for ; Thu, 5 Feb 2004 10:30:17 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i15IUGFR039880 for ; Thu, 5 Feb 2004 10:30:16 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i15IUGmq039879; Thu, 5 Feb 2004 10:30:16 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 5 Feb 2004 10:30:16 -0800 (PST) Resent-Message-Id: <200402051830.i15IUGmq039879@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sergey Matveychuk Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1955B16A4CE for ; Thu, 5 Feb 2004 10:20:37 -0800 (PST) Received: from hueymiccailhuitl.mtu.ru (hueytecuilhuitl.mtu.ru [195.34.32.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27E8343D60 for ; Thu, 5 Feb 2004 10:20:21 -0800 (PST) (envelope-from sem@ciam.ru) Received: from Current.sem-home.ciam.ru (ppp138-30.dialup.mtu-net.ru [62.118.138.30]) by hueymiccailhuitl.mtu.ru (Postfix) with ESMTP id A0F63F9158 for ; Thu, 5 Feb 2004 21:20:18 +0300 (MSK) (envelope-from sem@ciam.ru) Received: from root by Current.sem-home.ciam.ru with local (Exim 4.30; FreeBSD) id 1Aoo6B-00012F-30 for FreeBSD-gnats-submit@freebsd.org; Thu, 05 Feb 2004 21:19:35 +0300 Message-Id: Date: Thu, 05 Feb 2004 21:19:35 +0300 From: Sergey Matveychuk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/62395: [MAINTAINER] devel/ptypes: new options WITH_DEBUG and WITH_OPTIMIZED. Use OPTIONS. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 18:30:29 -0000 >Number: 62395 >Category: ports >Synopsis: [MAINTAINER] devel/ptypes: new options WITH_DEBUG and WITH_OPTIMIZED. Use OPTIONS. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Feb 05 10:30:16 PST 2004 >Closed-Date: >Last-Modified: >Originator: Sergey Matveychuk >Release: FreeBSD 5.2.1-RC i386 >Organization: >Environment: System: FreeBSD Current.sem-home.ciam.ru 5.2.1-RC FreeBSD 5.2.1-RC #2: Thu Feb 5 07:18:42 MSK >Description: [DESCRIBE CHANGES] * New options WITH_DEBUG and WITH_OPTIMIZED. * Utilize OPTIONS. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- ptypes-1.9.0.patch begins here --- diff -ruN --exclude=CVS /usr/ports/devel/ptypes.orig/Makefile /usr/ports/devel/ptypes/Makefile --- /usr/ports/devel/ptypes.orig/Makefile Thu Feb 5 20:52:47 2004 +++ /usr/ports/devel/ptypes/Makefile Thu Feb 5 21:05:44 2004 @@ -16,9 +16,25 @@ COMMENT= C++ Portable Types Library SHLIB_VER= 19 + INSTALLS_SHLIB= yes -MAKE_ARGS+= PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} PLIST_SUB+= SHLIB_VER=${SHLIB_VER} +PTYPES_CFLAGS= ${CFLAGS} + +OPTIONS= DEBUG "Build debug version" off \ + OPTIMIZED "Enable -O2 optimization" on + +.include + +.if defined(WITH_DEBUG) +DEBUG_FLAGS= -DDEBUG +.endif +.if defined(WITH_OPTIMIZED) +PTYPES_CFLAGS+= -O2 +.endif + +MAKE_ARGS+= PTHREAD_LIBS=${PTHREAD_LIBS} PTHREAD_CFLAGS=${PTHREAD_CFLAGS} \ + DEBUG_FLAGS=${DEBUG_FLAGS} PTYPES_CFLAGS="${PTYPES_CFLAGS}" do-install: ${MKDIR} ${PREFIX}/include/ptypes @@ -38,4 +54,4 @@ cd ${WRKSRC}/doc; ${TAR} cf - *| ${TAR} xf - -C ${DOCSDIR}/doc .endif -.include +.include diff -ruN --exclude=CVS /usr/ports/devel/ptypes.orig/files/patch-src-Makefile.common /usr/ports/devel/ptypes/files/patch-src-Makefile.common --- /usr/ports/devel/ptypes.orig/files/patch-src-Makefile.common Thu Feb 5 20:52:47 2004 +++ /usr/ports/devel/ptypes/files/patch-src-Makefile.common Thu Feb 5 21:04:58 2004 @@ -5,14 +5,14 @@ RANLIB = ranlib -DDEBUG = -DDEBUG -+DDEBUG = ++DDEBUG = $(DEBUG_FLAGS) INCDIR = ../include -CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -fPIC -Wall -O2 -+CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -fPIC -Wall $(CFLAGS) ++CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -fPIC -Wall $(PTYPES_CFLAGS) LDLIBS = $(OS_LDLIBS) -CXXOPTS_ST = -DPTYPES_ST $(OS_CXXOPTS_ST) $(DDEBUG) -I$(INCDIR) -Wall -O2 -+CXXOPTS_ST = -DPTYPES_ST $(OS_CXXOPTS_ST) $(DDEBUG) -I$(INCDIR) -Wall $(CFLAGS) ++CXXOPTS_ST = -DPTYPES_ST $(OS_CXXOPTS_ST) $(DDEBUG) -I$(INCDIR) -Wall $(PTYPES_CFLAGS) LDLIBS_ST = $(OS_LDLIBS_ST) LIBNAME = libptypes.a diff -ruN --exclude=CVS /usr/ports/devel/ptypes.orig/files/patch-wshare-Makefile.common /usr/ports/devel/ptypes/files/patch-wshare-Makefile.common --- /usr/ports/devel/ptypes.orig/files/patch-wshare-Makefile.common Thu Feb 5 20:52:47 2004 +++ /usr/ports/devel/ptypes/files/patch-wshare-Makefile.common Thu Feb 5 21:05:07 2004 @@ -5,10 +5,10 @@ .SUFFIXES: .cxx .o -DDEBUG = -DDEBUG -+DDEBUG = ++DDEBUG = $(DEBUG_FLAGS) INCDIR = ../include -CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -Wall -O2 -+CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -Wall $(CFLAGS) ++CXXOPTS = $(OS_CXXOPTS) $(DDEBUG) -I$(INCDIR) -Wall $(PTYPES_CFLAGS) LDLIBS = $(OS_LDLIBS) BINDEST = ../bin --- ptypes-1.9.0.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: