ports/62395: [MAINTAINER] devel/ptypes: new options WITH_DEBUG and WITH_OPTIMIZED. Use OPTIONS.

Sergey Matveychuk sem at ciam.ru
Thu Feb 5 18:30:29 UTC 2004


>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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>
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:



More information about the freebsd-ports-bugs mailing list