audio/streamripper: USES+= ncurses, respect LDFLAGS
Also: * bring in dports patch to support DF * Modify build to avoid potential name clash with menu.h (the same file name exists on ncurses, common issue)
This commit is contained in:
parent
53228a5bb1
commit
88a5931a2a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408404
2 changed files with 19 additions and 3 deletions
|
@ -21,7 +21,7 @@ LIB_DEPENDS= libmad.so:${PORTSDIR}/audio/libmad \
|
|||
OPTIONS_DEFINE= FAAD VORBIS
|
||||
OPTIONS_DEFAULT=FAAD VORBIS
|
||||
|
||||
USES= iconv pkgconfig
|
||||
USES= iconv ncurses pkgconfig
|
||||
USE_GNOME= glib20
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --without-included-libmad \
|
||||
|
@ -47,12 +47,17 @@ VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
|
|||
post-extract:
|
||||
${MV} ${WRKDIR}/cdk-${CDK_VERSION} ${WRKSRC}
|
||||
|
||||
post-patch:
|
||||
xpost-patch:
|
||||
@${REINPLACE_CMD} -e '/if test/s|==|=|g' ${WRKSRC}/configure
|
||||
# avoid potential name conflict with ncurses
|
||||
@${LN} -sv ${WRKSRC}/cdk-5.0-20060507/include/menu.h \
|
||||
${WRKSRC}/cdk-5.0-20060507/include/cdkmenu.h
|
||||
@${REINPLACE_CMD} -e "s|<menu.h>|<cdkmenu.h>|g" \
|
||||
${WRKSRC}/cdk-5.0-20060507/include/cdk.h
|
||||
|
||||
pre-configure:
|
||||
(cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} CC="${CC}" \
|
||||
CFLAGS="${CFLAGS}" ${SH} ./configure)
|
||||
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${SH} ./configure)
|
||||
|
||||
pre-build:
|
||||
(cd ${WRKSRC}/cdk-${CDK_VERSION} && ${SETENV} ${MAKE_ENV} \
|
||||
|
|
11
audio/streamripper/files/patch-cdk-5.0-20060507_configure
Normal file
11
audio/streamripper/files/patch-cdk-5.0-20060507_configure
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- cdk-5.0-20060507/configure.orig 2005-12-28 22:41:24 UTC
|
||||
+++ cdk-5.0-20060507/configure
|
||||
@@ -1993,7 +1993,7 @@ case $host_os in #(vi
|
||||
aix[45]*) #(vi
|
||||
CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE"
|
||||
;;
|
||||
-freebsd*) #(vi
|
||||
+freebsd*|dragonfly*) #(vi
|
||||
# 5.x headers associate
|
||||
# _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
|
||||
# _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
|
Loading…
Reference in a new issue