From nobody@FreeBSD.org  Tue Sep 17 10:24:22 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0EE1037B413
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Sep 2002 10:24:21 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8AA504401E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Sep 2002 09:56:45 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g8HGujOT021729
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 17 Sep 2002 09:56:45 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g8HGujtA021728;
	Tue, 17 Sep 2002 09:56:45 -0700 (PDT)
Message-Id: <200209171656.g8HGujtA021728@www.freebsd.org>
Date: Tue, 17 Sep 2002 09:56:45 -0700 (PDT)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: graphics/qslim
X-Send-Pr-Version: www-1.0

>Number:         42899
>Category:       ports
>Synopsis:       Update port: graphics/qslim
>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:   Tue Sep 17 10:30:20 PDT 2002
>Closed-Date:    Fri Sep 20 00:10:20 PDT 2002
>Last-Modified:  Fri Sep 20 00:10:20 PDT 2002
>Originator:     KATO Tsuguru
>Release:        4.6.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/CXXFLAGS properly

>How-To-Repeat:

>Fix:
diff -ur /usr/ports/graphics/qslim/Makefile graphics/qslim/Makefile
--- /usr/ports/graphics/qslim/Makefile	Tue Sep 10 20:12:37 2002
+++ graphics/qslim/Makefile	Sun Sep 15 04:56:29 2002
@@ -13,25 +13,32 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	forms.1:${PORTSDIR}/x11-toolkits/xforms \
-		gnugetopt:${PORTSDIR}/devel/libgnugetopt \
-		tiff:${PORTSDIR}/graphics/tiff \
-		png:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
+		png.5:${PORTSDIR}/graphics/png \
+		tiff.4:${PORTSDIR}/graphics/tiff \
+		forms.1:${PORTSDIR}/x11-toolkits/xforms
 
-USE_REINPLACE=	yes
-USE_MESA=	yes
-USE_XLIB=	yes
 CONFIGURE_WRKSRC=	${WRKSRC}/mixkit/build
-GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	\
-	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include -I${X11BASE}/include/X11 ${PTHREAD_CFLAGS}" \
-	LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib ${PTHREAD_LIBS}"
 BUILD_WRKSRC=	${WRKSRC}/mixkit/src
+
+USE_MESA=	yes
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
-ALL_TARGET=	# empty
+GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+ALL_TARGET=	# none
+
+CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include \
+		-I${X11BASE}/include/X11 ${PTHREAD_CFLAGS}
+LDFLAGS=	-L${LOCALBASE}/lib -lgnugetopt -L${X11BASE}/lib \
+		${PTHREAD_LIBS}
+
+post-extact:
+	@${RM} -f ${WRKSRC}/mixkit/src/getopt.h
 
 post-patch:
-	@${REINPLACE_CMD} -e "s,\@XFORMS_LIBS\@,-lforms -lformsGL -lXpm,g" ${CONFIGURE_WRKSRC}/mix-config.in
+	@${REINPLACE_CMD} -e 's|\@XFORMS_LIBS\@|-lforms -lformsGL -lXpm|g' \
+		${CONFIGURE_WRKSRC}/mix-config.in
 
 post-build:
 	@(cd ${BUILD_WRKSRC}/../../tools/qslim ; ${GMAKE} all)
@@ -43,6 +50,5 @@
 	${INSTALL_PROGRAM} ${WRKSRC}/tools/qslim/qvis ${PREFIX}/bin
 	@${MKDIR} ${PREFIX}/include/mixkit
 	${INSTALL_DATA} ${WRKSRC}/mixkit/src/*.h ${PREFIX}/include/mixkit
-	@${RM} -f ${PREFIX}/include/mixkit/getopt.h
 
 .include <bsd.port.mk>
diff -ur /usr/ports/graphics/qslim/pkg-plist graphics/qslim/pkg-plist
--- /usr/ports/graphics/qslim/pkg-plist	Mon Jan  7 01:34:32 2002
+++ graphics/qslim/pkg-plist	Sun Sep 15 04:47:17 2002
@@ -1,6 +1,5 @@
 bin/qslim
 bin/qvis
-lib/libmix.a
 include/mixkit/MxArcball.h
 include/mixkit/MxAsp.h
 include/mixkit/MxBlock.h
@@ -46,4 +45,5 @@
 include/mixkit/mixmsg.h
 include/mixkit/mixvops.h
 include/mixkit/stdmix.h
+lib/libmix.a
 @dirrm include/mixkit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Fri Sep 20 00:10:12 PDT 2002 
State-Changed-Why:  
committed, thanks 

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