Improve previous patch: USE_SUBMAKE so that LIBA52_DEP_LIBS is dynamically defined

across make targets; notably from depends to configure
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2002-05-19 18:38:17 +00:00
parent 98bcb1a61e
commit 94c0c76aff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59475
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \
jpeg.9:${PORTSDIR}/graphics/jpeg \
xml2.5:${PORTSDIR}/textproc/libxml2
USE_SUBMAKE= yes
USE_XLIB= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
@ -62,7 +63,7 @@ post-install:
.if exists(${LOCALBASE}/lib/liba52.la)
LIBA52_DEP_LIBS!= ${GREP} dependency_libs ${LOCALBASE}/lib/liba52.la | ${CUT} -d \' -f 2
.else
LIBA52_DEP_LIBS= -L${LOCALBASE}/lib -ldjbfft -lm
LIBA52_DEP_LIBS=
.endif
.if ${ARCH} == "i386"

View File

@ -18,6 +18,7 @@ LIB_DEPENDS= a52.0:${PORTSDIR}/audio/liba52 \
jpeg.9:${PORTSDIR}/graphics/jpeg \
xml2.5:${PORTSDIR}/textproc/libxml2
USE_SUBMAKE= yes
USE_XLIB= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
@ -62,7 +63,7 @@ post-install:
.if exists(${LOCALBASE}/lib/liba52.la)
LIBA52_DEP_LIBS!= ${GREP} dependency_libs ${LOCALBASE}/lib/liba52.la | ${CUT} -d \' -f 2
.else
LIBA52_DEP_LIBS= -L${LOCALBASE}/lib -ldjbfft -lm
LIBA52_DEP_LIBS=
.endif
.if ${ARCH} == "i386"