mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
o Support CFLAGS properly
o Conditionalize gnugetopt dependencies PR ports/47323 Submitted by: Ports Fury
This commit is contained in:
parent
31062000e0
commit
49e5d0eeb1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74472
@ -14,22 +14,32 @@ DISTNAME= ${PORTNAME}
|
||||
|
||||
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>
|
||||
|
10
graphics/qtutils/files/patch-configure
Normal file
10
graphics/qtutils/files/patch-configure
Normal file
@ -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'
|
Loading…
Reference in New Issue
Block a user