Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 05:31:08 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47323: Update port: graphics/qtutils
Message-ID:  <20030122053108.306b5591.tkato@prontomail.com>

next in thread | raw e-mail | index | archive | help

>Number:         47323
>Category:       ports
>Synopsis:       Update port: graphics/qtutils
>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:   Tue Jan 21 12:40:04 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Support CFLAGS properly
- Conditionalize gnugetopt dependencies

New file:
files/patch-configure

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/qtutils/Makefile graphics/qtutils/Makefile
--- /usr/ports/graphics/qtutils/Makefile	Mon Nov 11 18:59:52 2002
+++ graphics/qtutils/Makefile	Wed Jan 22 00:54:15 2003
@@ -14,22 +14,32 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	vorbis:${PORTSDIR}/audio/libvorbis \
-		quicktime:${PORTSDIR}/graphics/libquicktime \
-		gnugetopt:${PORTSDIR}/devel/libgnugetopt
+LIB_DEPENDS=	vorbis.2:${PORTSDIR}/audio/libvorbis \
+		quicktime.0:${PORTSDIR}/graphics/libquicktime
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-USE_REINPLACE=	yes
 USE_GNOMENG=	yes
 USE_GNOME=	glib12
+USE_REINPLACE=	yes
 USE_LIBTOOL=	yes
-CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 
 MAN1=	qtconv.1 qtsg.1 qtsplit.1
 
+CPPFLAGS=	-I${LOCALBASE}/include `${GLIB_CONFIG} --cflags gthread`
+LDFLAGS=	-L${LOCALBASE}/lib `${GLIB_CONFIG} --libs gthread`
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+=	-lgnugetopt
+.endif
+
 post-patch:
-	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" \
-		-e "s,-lglib,-lglib12,g" -e "s,-ldl,,g" ${WRKSRC}/src/Makefile.in
+	@${REINPLACE_CMD} -e 's|-g -Wall|@CFLAGS@|g ; \
+		 s|-lglib||g ; \
+		 s|-lpthread||g ; \
+		 s|-ldl||g' ${WRKSRC}/src/Makefile.in
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/qtutils/files/patch-configure graphics/qtutils/files/patch-configure
--- /usr/ports/graphics/qtutils/files/patch-configure	Thu Jan  1 09:00:00 1970
+++ graphics/qtutils/files/patch-configure	Sun Sep 15 07:24:12 2002
@@ -0,0 +1,10 @@
+--- configure.orig	Sat Jun  8 19:34:22 2002
++++ configure	Sun Sep 15 07:24:00 2002
+@@ -6572,6 +6572,7 @@
+ 
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+ 
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030122053108.306b5591.tkato>